Quantum error mitigation can make noisy quantum circuit results more useful, but it cannot turn an unreliable experiment into a reliable one automatically. This practical quantum error mitigation tutorial gives developers a repeatable workflow: establish an ideal reference, inspect hardware and measurement conditions, repeat the experiment, apply the least invasive correction that fits the evidence, and report ideal, noisy, and mitigated results separately.
Overview
Current quantum processors are affected by several error sources, including imperfect gates, relaxation, dephasing, crosstalk, leakage, and measurement errors. A circuit can therefore produce a distribution that differs from its ideal simulator result even when the code is correct.
Error mitigation is a family of techniques that estimates or reduces the effect of these errors without fully correcting every error during execution. It is different from quantum error correction: mitigation generally uses additional circuit executions, calibration data, post-processing, or extrapolation, while error correction aims to encode information into protected logical qubits.
The first question is not “Which mitigation method gives the best answer?” It is “What evidence would show that this answer is trustworthy enough for the purpose of the experiment?” A useful workflow keeps three outputs distinct:
- Ideal output: the result from a noiseless simulator or analytical calculation, when available.
- Noisy output: the direct hardware or noise-model result before mitigation.
- Mitigated output: the result after applying a defined correction method.
For a broader view of experiment design, see our guide to Qiskit primitives. For hardware-oriented circuit preparation, pair this workflow with Qiskit circuit transpilation guidance.
What to track
1. Establish an ideal reference
Run the smallest useful version of the experiment on a noiseless simulator, or calculate its expected result for a simple circuit. The reference does not need to be available for every production-sized circuit. Even a reduced circuit can reveal whether an unexpected hardware result comes from a coding mistake, an incorrect observable, or physical noise.
Record the circuit’s qubit count, depth, two-qubit gate count, measurement basis, observable definition, and shot count. These details matter because mitigation results are not meaningful if the circuit changes between comparisons. A resource log based on qubit, depth, gate, and shot estimates makes later comparisons easier.
2. Repeat the baseline
Run the same circuit more than once when possible. Use the same transpiled circuit, backend configuration, measurement settings, and shot budget for the baseline comparison. A single run can hide ordinary sampling variation.
For a probability distribution, compare the noisy counts with the ideal distribution using an appropriate distance or error measure. For an expectation value, record the estimate and its uncertainty. Do not treat a change in one prominent bitstring as proof of improvement; the full distribution or target observable should drive the comparison.
3. Check calibration and execution conditions
Before selecting a method, record the conditions that can influence the result:
- Backend or simulator name and execution date.
- Transpiled circuit depth and physical-qubit mapping.
- Number of shots and whether shots were divided among mitigation circuits.
- Measurement basis and observable grouping.
- Available readout calibration data and when it was collected.
- Queue, batching, or execution settings that could affect timing.
Calibration data is not a permanent property of a device. Readout behavior and gate performance can vary, so a correction matrix measured at one time may be a poor description of a later run. Treat calibration as experimental metadata, not as a universal constant.
4. Apply readout mitigation first when measurement error dominates
Readout error mitigation estimates how likely each measured bitstring is to be reported incorrectly. A common workflow prepares known computational-basis states, measures them, builds an assignment model, and uses that model to correct observed counts or expectation values.
This is often a sensible first test because it targets the final measurement stage without changing the logical circuit. However, it relies on assumptions about the stability and structure of the readout errors. Correlated readout errors, calibration drift, and statistical amplification can limit the result. Check whether corrected probabilities remain physically valid and whether the correction substantially increases uncertainty.
5. Try zero-noise extrapolation for circuit-level effects
Zero-noise extrapolation, or ZNE, runs equivalent circuits at several deliberately increased noise levels and estimates what the result might approach as noise tends toward zero. Noise scaling can be implemented in different ways, such as stretching or folding portions of a circuit, depending on the software stack and hardware constraints.
ZNE is not a direct measurement of the noiseless answer. It is an extrapolation based on a chosen noise-scaling model and a limited set of data points. It can be sensitive to the scaling range, fit model, circuit depth, shot noise, and changes introduced by transpilation. Use it when the circuit can be executed at multiple controlled noise levels and when the added execution cost is justified.
6. Use a simple decision tree
- Does the circuit fail on a noiseless simulator? Fix the circuit, observable, or classical post-processing before mitigation.
- Is the main discrepancy concentrated in measurement outcomes? Test readout mitigation and compare it with the uncorrected distribution.
- Does the discrepancy grow with circuit depth or entangling gates? Investigate transpilation, mapping, and gate noise; consider ZNE if the platform supports a controlled implementation.
- Are there too few shots for stable estimates? Increase the shot budget or simplify the mitigation method before drawing conclusions.
- Do methods disagree substantially? Report the disagreement. It is evidence of sensitivity, not a reason to select the most favorable result.
Cadence and checkpoints
Use a checkpoint at every meaningful hardware run, then review the accumulated record monthly or quarterly for recurring experiments. The goal is not to monitor a device abstractly; it is to detect whether the assumptions behind your workflow are still reasonable.
| Checkpoint | Record | Why it matters |
|---|---|---|
| Before execution | Circuit version, observable, mapping, depth, gates, shots | Defines a reproducible baseline |
| During baseline testing | Ideal, noisy, and repeated noisy outputs | Separates implementation errors from variation |
| During mitigation | Calibration age, method, parameters, extra circuits, shots per circuit | Exposes assumptions and resource costs |
| After analysis | Error metric, uncertainty, physicality checks, method disagreement | Prevents a favorable value from being mistaken for validation |
| Monthly or quarterly review | Trend by circuit family and backend conditions | Shows whether results are stable enough to compare |
Keep the ideal, noisy, and mitigated values in separate columns. A compact experiment record might contain the circuit identifier, software version, backend, execution date, transpiled resource counts, shot count, raw counts, calibration identifier, mitigation method, correction parameters, final estimate, and uncertainty.
How to interpret changes
A mitigated result moving closer to the ideal reference is encouraging, but it is not sufficient evidence that the method worked generally. Look for improvement across several related circuits, observables, or random seeds. Also check whether the correction produces negative probabilities, probabilities above one, unusually large variance, or an estimate that changes sharply when shots or fit choices change.
Compare methods using a predefined metric. For distributions, use a distance selected before inspecting the results. For expectation values, compare absolute error against the reference and include uncertainty. If no trusted ideal reference exists, compare stability across repeated runs and circuit variants, while clearly labeling that stability is not proof of correctness.
Separate three kinds of change:
- Statistical change: movement expected from finite shots.
- Hardware change: movement associated with calibration, mapping, drift, or execution conditions.
- Method change: movement caused by the mitigation model, fit, or post-processing.
Do not compare a mitigated result from one circuit version with a raw result from another and call the difference an improvement. Keep the comparison controlled. For claims about practical benefit, use the evidence discipline described in this developer benchmarking checklist.
When to revisit
Revisit the workflow before every new hardware campaign, whenever the circuit is transpiled differently, and whenever the backend, qubit mapping, measurement basis, or shot budget changes materially. Refresh readout calibration when its age no longer matches the assumptions of the experiment or when repeated baseline results shift.
Schedule a monthly or quarterly review for recurring workloads. Look for changes in raw error, mitigation gain, uncertainty, runtime, and the number of additional circuits required. A method that helped a shallow circuit may become too costly or unstable as depth increases. Conversely, a simplified readout correction may be enough for a small measurement experiment even when a more elaborate method is available.
Before your next run, use this checklist:
- Run or retrieve an appropriate ideal reference.
- Freeze and record the circuit version and transpiled resources.
- Collect repeated noisy results with a documented shot count.
- Check calibration timing and measurement conditions.
- Start with readout mitigation when measurement error is the main suspect.
- Consider ZNE only when its noise-scaling assumptions and execution cost are acceptable.
- Report ideal, noisy, and mitigated outputs separately, with uncertainty and method parameters.
- Save enough metadata to reproduce the comparison after the next calibration or software update.
Error mitigation is most useful as a disciplined measurement workflow, not as a final polishing step. By tracking assumptions and revisiting them on a regular cadence, developers can tell the difference between a genuinely more informative result and a number that merely looks closer to expectation.