Qiskit Runtime

On this page 8

Qiskit Runtime is the cloud execution service and programming model that IBM uses to run quantum programs on its quantum processors, exposing hardware through standardized primitives rather than raw job submission. In quantum software, it sits between the Qiskit SDK on the developer’s machine and the physical qubits, handling scheduling, error suppression, error mitigation and result post-processing close to the hardware.

The service matters for quantum computing because useful near-term workloads are iterative and noise-sensitive. Variational algorithms, sampling experiments and utility-scale expectation-value studies submit many related circuits, and Qiskit Runtime is designed to reduce queue latency and return results that already account for part of the device noise.

How Qiskit Runtime executes a quantum workload

Qiskit Runtime executes a workload by accepting primitive unified blocs (PUBs), which bundle a circuit with parameter values and, for estimation, a set of observables. The client library qiskit-ibm-runtime serializes these blocs, the QiskitRuntimeService routes them to a chosen backend, and the service returns structured results rather than raw bitstring dumps.

A defining requirement is that submitted circuits must already be instruction set architecture (ISA) circuits. That means the developer transpiles locally, mapping virtual qubits to physical ones and rewriting gates into the backend’s native gate set, before submission. The runtime then applies optional dynamical decoupling, Pauli twirling and readout corrections on top of the ISA circuit.

The following table summarizes the main stages a job passes through and where each stage runs.

StageWhere it runsPurpose
Transpilation to ISAClient (Qiskit SDK)Match circuit to device topology and gates
Primitive submissionClient to IBM cloudSend PUBs with options to a backend
Error suppressionRuntime serviceInsert decoupling pulses and twirled gates
Circuit executionQuantum processorCollect shots on physical qubits
Error mitigationRuntime serviceCorrect readout and extrapolate noise
Result packagingRuntime serviceReturn counts or expectation values
Stages of a Qiskit Runtime job

The Sampler and Estimator primitives

Qiskit Runtime offers two core primitives, Sampler and Estimator, each answering a different kind of question. Sampler returns measurement outcomes as bitstring counts or per-shot data, while Estimator returns expectation values of observables together with standard errors.

The current interfaces, known as SamplerV2 and EstimatorV2, replaced the earlier versions and changed several defaults. Notably, the V2 interfaces take a precision target for Estimator and a shot count for Sampler, and they no longer transpile circuits on the server.

PropertySamplerEstimator
Main outputBitstring counts or memoryExpectation values with errors
Typical useSearch, sampling, distribution studiesEnergies, cost functions, observables
Accuracy controlNumber of shotsTarget precision
Mitigation depthSuppression and twirlingFull resilience options
Algorithm examplesQAOA sampling, GroverVQE, dynamics simulation
Comparison of the two primitives

Choosing between them is mostly a question of what the algorithm consumes. If the classical optimizer needs a single scalar such as an energy, Estimator is the correct primitive, because its mitigation pipeline is built around observables. If the output is a distribution or a candidate solution, Sampler is appropriate.

Execution modes: job, session and batch

Qiskit Runtime supports three execution modes that determine how a series of primitive calls is scheduled on shared hardware. The choice affects queue waiting time, cost accounting and whether the classical side can react to intermediate results.

ModeScheduling behaviorBest suited for
Job modeEach request queues independentlySingle experiments and quick tests
Session modeExclusive device window between callsIterative variational loops
Batch modeIndependent jobs grouped and run togetherParameter sweeps and many circuits
Execution modes and when to use them

Session mode keeps the processor reserved while the classical optimizer computes the next parameters, so each iteration avoids a fresh trip through the queue. The trade-off is that idle classical time inside the session is still counted, and sessions are not available on every access plan. Batch mode usually gives better throughput when circuits do not depend on each other.

Error suppression and mitigation options

Qiskit Runtime separates error suppression, which reduces errors during execution, from error mitigation, which corrects results afterward through additional circuits and classical processing. Both increase reliability, but mitigation also raises sampling overhead, sometimes by large factors.

For Estimator, a single resilience level setting selects a preset bundle of techniques, while advanced users can configure each technique individually.

TechniqueCategoryEffect and cost
Dynamical decouplingSuppressionReduces idle dephasing, little overhead
Pauli twirlingSuppressionConverts coherent noise into stochastic noise
TREXMitigationCorrects readout bias, modest overhead
Zero-noise extrapolationMitigationExtrapolates to zero noise, several times more shots
Probabilistic error amplificationMitigationLearned noise model for ZNE, higher cost
Probabilistic error cancellationMitigationUnbiased in theory, exponential sampling cost
Main techniques available through runtime options

Resilience level 0 applies no mitigation, level 1 adds readout correction, and level 2 adds zero-noise extrapolation with gate twirling. Higher levels usually yield less biased estimates with larger error bars, so the right setting depends on the circuit depth and the shot budget.

Qiskit Runtime is an execution layer, not a full SDK, and it is easy to confuse with neighboring tools. The Qiskit SDK builds and transpiles circuits, Qiskit Aer simulates them locally, and the IBM Quantum Platform provides accounts, backends and usage dashboards.

Unlike multi-vendor services such as Amazon Braket or Azure Quantum, Qiskit Runtime targets IBM hardware specifically, which allows deep integration of device calibration data into mitigation. A local testing mode lets developers run the same primitive code against fake backends or Aer before spending hardware time.

Limitations and common mistakes

Most failures with Qiskit Runtime come from migration gaps and unrealistic expectations about mitigation. The service cannot turn a deep, noisy circuit into a fault-tolerant computation, and mitigated values remain estimates with real uncertainty.

  • Submitting non-ISA circuits causes rejection, because server-side transpilation was removed.
  • Using V1 primitive code after the interface change leads to deprecated or broken calls.
  • Choosing session mode for independent circuits wastes reserved time that batch mode would avoid.
  • Treating mitigated results as exact ignores the wider error bars that extrapolation introduces.
  • Ignoring calibration drift between transpilation and execution can degrade layout quality.

In plain words

Qiskit Runtime is the service that actually runs a program on an IBM quantum computer. A developer writes the program on an ordinary laptop, and Qiskit Runtime takes it to the machine, runs it many times and sends back the answers.

Think of it like a professional photo lab. The lab does not only print the picture; it also removes some of the grain and color errors before handing it over. In the same way, Qiskit Runtime cleans up part of the noise in quantum results. The key point is simple: it makes noisy quantum hardware easier and faster to use, but it cannot make the hardware perfect.

A real-world example

A computational chemistry team wants to estimate the ground-state energy of a small molecule with a variational quantum eigensolver. They build a parameterized circuit of about 20 qubits, transpile it locally to an ISA circuit for a 127-qubit IBM processor, and express the molecular Hamiltonian as a sum of Pauli observables.

They open a session and call EstimatorV2 with resilience level 1 and a target precision of 0.01. A classical optimizer on their laptop proposes new parameters after each result, and because the session keeps the device reserved, each of roughly 150 iterations returns in seconds rather than after a new queue wait. The final energy lands within the team’s tolerance of a classical reference, and a follow-up run at resilience level 2 confirms the trend at a higher shot cost.