pkg.soopen package index

brew / rank 12632

Install staq with Homebrew

Full-stack quantum processing toolkit. Version 3.5 via Homebrew; verified 2026-07-13.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install staq

local Homebrew formula metadata

overview

Package summary

Full-stack quantum processing toolkit

Commands and aliases

  • staq
  • staq_circ
  • staq_desugarer
  • staq_device_generator
  • staq_grid_synth
  • staq_group_qregs
  • staq_inliner
  • staq_ionq
  • staq_lattice_surgery
  • staq_mapper
  • staq_oracle_synthesizer
  • staq_projectq
  • staq_qasm_synth
  • staq_qsharp
  • staq_quil
  • staq_resource_estimator
  • staq_rotation_optimizer
  • staq_simplifier

history

Project history and usage

staq is a C++ quantum-circuit toolkit distributed as both a library and a collection of command-line tools for OpenQASM-centered circuit synthesis, transformation, optimization, mapping, and translation.

Project history

The project is maintained by softwareQ Inc. Its README describes a modern C++17 library with low external dependencies, usable through binary tools or as a header-only library for parsing and manipulating OpenQASM 2.0 circuits. The linked paper, first posted as an arXiv preprint in December 2019 and later published in Quantum Science and Technology in 2020, frames staq as a full-stack quantum processing toolkit.

staq's design is explicitly source-oriented: the README says it manipulates OpenQASM syntax trees directly, taking inspiration from Clang, rather than lowering immediately to an intermediate representation. That made it useful for source-to-source transformations and translations where preserving the structure of QASM input mattered.

Adoption history

For package-manager users, staq shows up as a Homebrew formula with many small executables rather than a single monolithic binary. The input package facts list the main `staq` tool alongside specialist tools such as simplifiers, inliners, mappers, resource estimators, and language/library translators.

The project did not become a general-purpose developer utility like a formatter or shell tool; its adoption is concentrated in quantum software workflows, especially scripts and experiments built around OpenQASM.

How it is used

The official tool-suite wiki documents a Unix-style workflow where OpenQASM source is passed through individual tools using standard input, standard output, and shell pipes. That style encourages users to compose exactly the circuit passes they need.

Common usage includes desugaring, inlining, simplifying, optimizing rotations, mapping circuits to device constraints, estimating resources, and translating OpenQASM into targets such as Quil, ProjectQ, Q#, and Cirq.

Why package nerds care

staq is interesting to package maintainers because it turns a specialized research compiler into a set of ordinary command-line programs. The package exposes many narrowly scoped binaries, which fits the Unix-pipeline culture better than a large GUI or cloud-only quantum SDK.

Its low-dependency C++17 implementation and MIT license also make it relatively straightforward for a package manager to build and ship compared with quantum stacks that pull in larger runtime ecosystems.

Timeline

  • 2019: arXiv preprint describes staq as a full-stack quantum processing toolkit.
  • 2020: Paper published in Quantum Science and Technology.
  • 2021: Official wiki page documents the separate command-line tools and pipe-based workflow.
  • 2024: README lists version 3.5 dated March 8, 2024.

Related projects

  • staq is tied to OpenQASM 2.0 and interoperates conceptually with quantum toolchains such as Quil, ProjectQ, Q#, and Cirq through its translator tools.
  • The README credits EPFL logic-synthesis libraries and notes that the OpenQASM parser was adapted from tweedledum.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
staqcliglobal executable
staq_circcliglobal executable
staq_desugarercliglobal executable
staq_device_generatorcliglobal executable
staq_grid_synthcliglobal executable
staq_group_qregscliglobal executable
staq_inlinercliglobal executable
staq_ionqcliglobal executable
staq_lattice_surgerycliglobal executable
staq_mappercliglobal executable
staq_oracle_synthesizercliglobal executable
staq_projectqcliglobal executable
staq_qasm_synthcliglobal executable
staq_qsharpcliglobal executable
staq_quilcliglobal executable
staq_resource_estimatorcliglobal executable
staq_rotation_optimizercliglobal executable
staq_simplifiercliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-08-04
manager version3.5
manager updated2026-07-13
local dataok
upstreamcurrent
latest detectedv3.5

https://github.com/softwareQinc/staq

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:staq
Version3.5
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/staq
Homepagehttps://iopscience.iop.org/article/10.1088/2058-9565/ab9359/pdf
Repositoryhttps://github.com/softwareQinc/staq
Upstream docshttps://iopscience.iop.org/article/10.1088/2058-9565/ab9359/pdf
LicenseMIT
Source archivehttps://github.com/softwareQinc/staq/archive/refs/tags/v3.5.tar.gz
Last updated2026-07-13T17:31:48+09:00
Pulseupdated
Dependenciesgmp
Build dependenciescmake
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namestaq
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation