transpiler
Guides agents compiling circuits with transpile, Target, CouplingMap, Layout, PassManager, preset pass managers, and backend-specific pass routing.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- transpiler
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guides agents compiling circuits with transpile, Target, CouplingMap, Layout, PassManager, preset pass managers, and backend-specific pass routing.
- disable-model-invocation
- true
02 资源文件 2
- 参考文档references/troubleshooting.md1.8 KB
- 参考文档references/workflows.md1.8 KB
03 SKILL.md 正文
Qiskit transpiler workflows
Use this sub-skill when the task is about compiling a circuit to a backend target or hardware topology with qiskit.transpiler or qiskit.compiler.transpile.
Read next
references/workflows.mdfor preset pass managers, targets, routing, and backend-driven recipes.references/troubleshooting.mdforTranspilerError, basis-gate mismatches, layout/routing surprises, and missing optional pass dependencies.../../references/module-map.mdfor the package-level module map.../../scripts/check_qiskit_environment.py --sections transpiler providersfor a source-free backend-transpile smoke check.
Include here
transpile()andgenerate_preset_pass_manager().Target,CouplingMap,Layout,PassManager,StagedPassManager,PropertySet, and pass-plugin routing.- Layout, routing, translation, optimization, scheduling, and seed/optimization-level selection.
- Hardware-driven compilation from a backend or fake backend.
- Basic control of backend-specific defaults, backend targets, and stage-method overrides.
Exclude or route elsewhere
- Building the abstract circuit itself belongs in
../circuit/SKILL.md. - Sampler/estimator jobs and result access belong in
../primitives/SKILL.md. - Serialization to QASM/QPY belongs in
../serialization/SKILL.md. - State/operator analysis belongs in
../quantum-info/SKILL.md. - Visualization of the compiled output belongs in
../visualization/SKILL.md.
Default route
If the user mentions basis gates, coupling maps, backend targets, routing, or preset optimization levels, start here even if the input circuit was already valid. This sub-skill is also the right place to interpret a fake backend or Target object used as transpilation input.
What to remember
targettakes precedence over loose backend constraints, and explicit loose constraints take precedence over backend defaults.optimization_levelchanges the preset stage mix;0is minimal runnable compilation and3is the most aggressive preset.- Seed stochastic stages when the user wants reproducible output.
- Optional pass dependencies are part of the workflow surface. Check them before suggesting a pass that depends on
z3-solver,python-constraint, or similar extras.
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.