qiskit
Routes agents across Qiskit's circuit, transpiler, primitives, serialization, quantum-info, visualization, provider, and C-API workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- qiskit
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes agents across Qiskit's circuit, transpiler, primitives, serialization, quantum-info, visualization, provider, and C-API workflows.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/installation.md1.8 KB
- 参考文档references/module-map.md2.5 KB
- 参考文档references/repo-provenance.md676 B
- 参考文档references/repo-routing-metadata.json317 B
- 参考文档references/troubleshooting.md4.5 KB
03 SKILL.md 正文
Qiskit
Use this repo skill when a task involves the Python package qiskit: building quantum circuits, transpiling to backend targets, running reference primitives or basic simulators, importing/exporting OpenQASM or QPY, using quantum-information objects, drawing circuits or results, working with provider interfaces, or consuming Qiskit's public C API.
Start here
- Read
references/module-map.mdfor the package modules, public entry points, and route boundaries. - Read
references/installation.mdbefore choosing extras such asqasm3-import,visualization,crosstalk-pass,csp-layout-pass, orqpy-compat. - Read
references/troubleshooting.mdfor mixed-package imports, missing Rust-backed_accelerate, optional-dependency failures, QPY compatibility, and visualization system-tool issues. - Read
references/repo-provenance.mdbefore deciding whether this skill is stale for a newer Qiskit checkout or release. - Run
python scripts/check_qiskit_environment.py --helpto see source-free smoke checks for the active Python environment.
Minimal install and smoke check
For normal package use:
python -m pip install qiskit
python -c 'import qiskit; print(qiskit.__version__)'
Add targeted extras only for the workflows you need:
python -m pip install 'qiskit[qasm3-import]'
python -m pip install 'qiskit[visualization]'
Then run the bundled smoke helper from this skill directory:
python scripts/check_qiskit_environment.py --sections core transpiler primitives serialization quantum-info
Route by task
| User task | Read |
|---|---|
Build, edit, compose, parameterize, or inspect QuantumCircuit objects, registers, bits, gates, control-flow operations, or circuit-library gates |
sub-skills/circuit/SKILL.md |
Compile circuits to a backend, Target, basis gate set, or coupling map; use preset pass managers; debug layout, routing, translation, scheduling, seeds, or pass plugins |
sub-skills/transpiler/SKILL.md |
Use StatevectorSampler, StatevectorEstimator, PUBs, PrimitiveResult, DataBin, BitArray, expectation values, shots, precision, or primitive result access patterns |
sub-skills/primitives/SKILL.md |
| Import/export OpenQASM 2, OpenQASM 3, or QPY; choose between text interchange and full-fidelity binary serialization; handle parser/exporter/version errors | sub-skills/serialization/SKILL.md |
Work with Statevector, DensityMatrix, Operator, SparsePauliOp, Pauli, Clifford, random operators/states/channels, fidelities, entropy, or matrix predicates |
sub-skills/quantum-info/SKILL.md |
Draw circuits, histograms, distributions, states, backend maps, timelines, pass managers, or diagnose matplotlib, Graphviz, Pillow, pylatexenc, seaborn, or LaTeX output |
sub-skills/visualization/SKILL.md |
Use or implement backend/provider abstractions, BackendV2, Options, Job, BasicProvider, BasicSimulator, or GenericBackendV2 fake backends |
sub-skills/providers/SKILL.md |
Locate Qiskit C headers/library, use qiskit.capi ctypes bindings, build or consume the public C API, or diagnose Rust/C-extension build failures |
sub-skills/c-api/SKILL.md |
Common routing decisions
- Start with
circuitbeforetranspilerwhen the user has not yet built a valid abstract circuit. - Start with
transpilerwhen the problem involves basis gates, coupling maps,Target,Layout,PassManager, or hardware constraints, even if a fake provider appears in the example. - Start with
primitivesfor sampler/estimator jobs and result containers; start withprovidersfor backend classes,BasicSimulator.run,GenericBackendV2, or provider implementation surfaces. - Start with
serializationfor QASM/QPY even when the circuit construction is also involved; route back tocircuitonly if the circuit itself is invalid before serialization. - Start with
quantum-infowhen the task is mathematical analysis of states, operators, observables, channels, or fidelities rather than execution on a backend. - Start with
visualizationwhenever output format, style, image generation, or optional drawing dependencies are the main concern. - Start with
c-apiforqiskit.capi.get_include(),get_lib(), native headers, ctypes functions, or standalone C-library build questions.
Bundled helper
scripts/check_qiskit_environment.py performs quick, source-free checks for imports, a small circuit, transpilation with GenericBackendV2, StatevectorSampler/StatevectorEstimator, QASM/QPY round-trips, quantum-info objects, visualization, providers, and C-API paths. Use --sections to narrow the checks and --json for machine-readable output.
What this skill does not cover
- It does not replace domain packages such as Qiskit Aer, Qiskit IBM Runtime, Qiskit Nature, or hardware-vendor provider packages when their package-specific APIs are the main subject.
- It does not teach quantum-computing theory beyond the Qiskit object and workflow contracts needed to complete software tasks.
- It does not require the original Qiskit source checkout for runtime use; all necessary operating guidance is distilled into this skill tree.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.