Skip to main content

Section 5 — Use the sampler primitive

12% of the exam · ≈ 8 of 68 questions · 31 verified practice questions

What the exam expects

  • Set sampler primitive options such as resilience levels (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

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
Specify runtime optionsguide
Primitive inputs and outputs (PUBs)guide
qiskit-ibm-runtime API (SamplerV2)api

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…