Skip to main content

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.

ResourceType
Introduction to primitivesguide
Runtime options overviewguide
Sampler optionsguide
Primitive inputs and outputs (PUBs)guide
qiskit-ibm-runtime API (SamplerV2)api
Video: An Introduction to Qiskit Runtime Primitives Version 2 (Chris Wood, QGSS 2024)video

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…