primitives
Guides agents using StatevectorSampler, StatevectorEstimator, primitive jobs, PUBs, and primitive result containers.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- primitives
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guides agents using StatevectorSampler, StatevectorEstimator, primitive jobs, PUBs, and primitive result containers.
- disable-model-invocation
- true
02 资源文件 2
- 参考文档references/troubleshooting.md1.7 KB
- 参考文档references/workflows.md1.8 KB
03 SKILL.md 正文
Qiskit primitives workflows
Use this sub-skill when the task is about Qiskit's primitive interfaces: sampling circuits, estimating expectation values, binding parameter sweeps, and reading primitive result containers.
Read next
references/workflows.mdfor sampler/estimator recipes and result-access patterns.references/troubleshooting.mdfor data-shape mistakes, missing measurements, and result-indexing errors.../../references/module-map.mdfor the package map.../../scripts/check_qiskit_environment.py --sections primitivesfor a source-free primitive smoke check.
Include here
StatevectorSampler,StatevectorEstimator, PUBs, andrun()usage.- Primitive job/result container classes such as
PrimitiveResult,PubResult,SamplerPub,EstimatorPub,DataBin, andBitArray. - Parameter sweeps, shots, and precision settings for the reference implementations.
- Interpreting measured counts, expectation values, and metadata from primitive results.
Exclude or route elsewhere
- Backend classes, provider implementation, and fake backends belong in
../providers/SKILL.md. - Abstract circuit construction belongs in
../circuit/SKILL.md. - Serialization of circuits belongs in
../serialization/SKILL.md. - State/operator mathematics belongs in
../quantum-info/SKILL.md. - Output rendering belongs in
../visualization/SKILL.md.
Default route
Start here when the user wants to sample from a circuit, estimate an observable, or understand the nested data containers returned by a primitive job. If the problem starts with a backend class rather than a sampler or estimator, route to providers first.
What to remember
- Sampler results are organized around measured bit arrays; estimator results are organized around expectation values.
- PUBs may be provided directly or via the convenience tuples accepted by
run(). - The shape of the result container mirrors the shape of the observable and parameter sweeps.
- Measured circuits are usually required for sampling, while estimators work with unmeasured circuits and observables.
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.