Section 5 — Use the sampler primitive
12% of the exam · ≈ 8 of 68 questions · 34 verified practice questions
What the exam expects
- Set sampler primitive options such as dynamical decoupling (
s5o1) - Bypass runtime error mitigations and implement your own (
s5o2) - Understand the theoretical background behind the sampler primitive (
s5o3)
Scope notes — what to actually master
- SamplerV2: run([isa_circuit]), PUB structure, default_shots semantics
- Options: dynamical decoupling, twirling; sampler returns per-shot bitstrings (BitArray)
- Array broadcasting patterns for parameter sweeps
- Manual/custom mitigation when bypassing runtime defaults
Quick study: the cram sheet for this section condenses the key facts once you've drilled.
Learn — official resources
The exam is based on these official IBM materials. Study them first; the drills below tell you when you're done.
Drill — verified practice
Every code-bearing question below was executed against a pinned Qiskit 2.x stack at build time; explanations show the actual execution evidence.
Loading practice set…