serialization
Guides agents importing, exporting, and troubleshooting Qiskit OpenQASM 2, OpenQASM 3, and QPY serialization workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- serialization
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guides agents importing, exporting, and troubleshooting Qiskit OpenQASM 2, OpenQASM 3, and QPY serialization workflows.
- disable-model-invocation
- true
02 资源文件 2
- 参考文档references/troubleshooting.md1.7 KB
- 参考文档references/workflows.md1.6 KB
03 SKILL.md 正文
Qiskit serialization workflows
Use this sub-skill when the task involves qiskit.qasm2, qiskit.qasm3, or qiskit.qpy: reading or writing circuits, choosing interchange formats, preserving circuit structure, or debugging parser/exporter/version errors.
Read next
references/workflows.mdfor QASM2, QASM3, and QPY recipes.references/troubleshooting.mdfor missingqiskit_qasm3_import, parse/export errors, unsupported features, and legacy QPY compatibility.../../references/installation.mdfor theqasm3-importandqpy-compatextras.../../scripts/check_qiskit_environment.py --sections serializationfor a source-free serialization smoke check.
Include here
qiskit.qasm2.load,loads,dump,dumps, custom instructions, custom classical functions, and strict mode.qiskit.qasm3.load,loads,dump,dumps,Exporter, experimental features, and native experimental parser entry points.qiskit.qpy.dump,load,get_qpy_version, QPY target versions, and compatibility limitations.- Choosing between text interchange and full-fidelity binary circuit persistence.
Exclude or route elsewhere
- Constructing the circuit before serialization belongs in
../circuit/SKILL.md. - Running or sampling the circuit belongs in
../primitives/SKILL.mdor../providers/SKILL.md. - Matrix/state equivalence after deserialization belongs in
../quantum-info/SKILL.md. - Rendering a circuit to an image belongs in
../visualization/SKILL.md.
Default route
Start here when the user names QASM, OpenQASM, QPY, load, loads, dump, dumps, QASM2ParseError, QASM3ImporterError, QASM3ExporterError, QpyError, or UnsupportedFeatureForVersion.
What to remember
- OpenQASM 2 is useful but cannot represent the full Qiskit circuit model.
- OpenQASM 3 is the modern text path; import via
qasm3.load()/loads()needs the optional importer for the compatibility path. - QPY is the highest-fidelity Qiskit circuit persistence format, but version compatibility and legacy
symenginechoices matter.
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.