# staq を Homebrew でインストール

staq のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:staq
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install staq
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:staq
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/staq>
- **バージョン:** 3.5
- **ソース概要:** Full-stack quantum processing toolkit
- **ホームページ:** <https://iopscience.iop.org/article/10.1088/2058-9565/ab9359/pdf>
- **リポジトリ:** <https://github.com/softwareQinc/staq>
- **上流ドキュメント:** <https://iopscience.iop.org/article/10.1088/2058-9565/ab9359/pdf>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/softwareQinc/staq/archive/refs/tags/v3.5.tar.gz>
- **最終更新:** 2026-07-13T17:31:48+09:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- staq (cli)
- staq_circ (cli)
- staq_desugarer (cli)
- staq_device_generator (cli)
- staq_grid_synth (cli)
- staq_group_qregs (cli)
- staq_inliner (cli)
- staq_ionq (cli)
- staq_lattice_surgery (cli)
- staq_mapper (cli)
- staq_oracle_synthesizer (cli)
- staq_projectq (cli)
- staq_qasm_synth (cli)
- staq_qsharp (cli)
- staq_quil (cli)
- staq_resource_estimator (cli)
- staq_rotation_optimizer (cli)
- staq_simplifier (cli)
- 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 (エイリアス)

## 依存関係

- gmp

## ビルド依存関係

- cmake

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 3.5
- マネージャ更新日: 2026-07-13
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/softwareQinc/staq
- 検出された最新: v3.5 (最新)
## プロジェクトの歴史と使われ方

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.

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

- 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.

### ソース

- <https://arxiv.org/abs/1912.06070>
- <https://github.com/softwareQinc/staq#readme>
- <https://github.com/softwareQinc/staq/wiki/The-staq-tool-suite>
- source_facts.executables
- source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** staq
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/ja/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [cmake](https://pkg.so/ja/brew/cmake/) - Build dependency declared by Homebrew.
- [dcmtk](https://pkg.so/ja/brew/dcmtk/) - Shares pkgdb curated category or tags: cli, science, toolkit.
- [bedops](https://pkg.so/ja/brew/bedops/) - Shares pkgdb curated category or tags: cli, science, toolkit.
- [grt](https://pkg.so/ja/brew/grt/) - Shares pkgdb curated category or tags: cli, science, toolkit.
- [z3](https://pkg.so/ja/brew/z3/) - Shares pkgdb curated category or tags: cli, science.
- [numpy](https://pkg.so/ja/brew/numpy/) - Shares pkgdb curated category or tags: cli, science.
- [gts](https://pkg.so/ja/brew/gts/) - Shares pkgdb curated category or tags: cli, science.
- [jupyterlab](https://pkg.so/ja/brew/jupyterlab/) - Shares pkgdb curated category or tags: cli, science.
- [proj](https://pkg.so/ja/brew/proj/) - Shares pkgdb curated category or tags: cli, science.
- [cryptominisat](https://pkg.so/ja/brew/cryptominisat/) - Local package facts share a topical domain. Shared terms: cli, gmp, oracle, science.
- [fplll](https://pkg.so/ja/brew/fplll/) - Local package facts share a topical domain. Shared terms: cli, gmp, lattice, science.
- [gnuradio](https://pkg.so/ja/brew/gnuradio/) - Local package facts share a topical domain. Shared terms: cli, gmp, processing, science.

## Combined YAML source

View the package source record on GitHub. [combined/staq.yml](https://github.com/mxcl/pkgdb/blob/main/combined/staq.yml)


## ソース

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