计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
cirq【效率与协作】Use Cirq to build, simulate, transform, serialize, validate, and provider-package quantum circuits.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task is about Cirq, the Python framework for quantum
circuits and near-term quantum computing workflows. It covers the Cirq package
family: cirq/cirq-core, cirq-google, cirq-ionq, cirq-aqt,
cirq-pasqal, and cirq-web.
--help or --text.For ordinary package use, prefer public packages:
python -m pip install cirq # full Cirq family
python -m pip install cirq-core # core circuits/simulation only
python -m pip install cirq-google # add Google Quantum AI package
Cirq requires Python 3.11+. Local circuit construction and CPU simulation do not require CUDA, ROCm, MPS, TPU, cloud credentials, or live quantum hardware. Provider packages can be imported offline, but live service execution requires provider credentials and account/project/target access.
| User task | Read next |
|---|---|
| Build circuits, choose qubit classes, work with gates/operations/moments, debug measurement keys, parameters, diagrams, custom gates, JSON/QASM basics | core-circuits-and-ops |
| Run local simulations, sample measurements, sweep parameters, inspect results/histograms/state vectors/density matrices, add noise/channels | simulation-study-and-noise |
| Optimize, decompose, transform, route, or compile circuits to a gateset, topology, or provider constraint | transformers-and-compilation |
| Implement or validate algorithm examples, QFT/phase estimation/Grover/QAOA-like circuits, Pauli observables, expectation values | algorithms-and-observables |
Use cirq_google, IonQ, AQT, Pasqal, cirq_web, provider serializers, credentials, offline provider validation, or JSON custom resolvers | hardware-providers-and-serialization |
transformers-and-compilation to decompose, route, or target-gateset
optimize the circuit.