Quantum error mitigation can make noisy-circuit results more useful, but no method improves every experiment. This practical checklist explains how to compare readout error mitigation, zero-noise extrapolation, and probabilistic error cancellation, then measure whether the extra work actually helps.
Overview
Near-term quantum processors produce results affected by several forms of noise. Readout errors can turn a measured zero into a one, or the reverse. Gate and decoherence errors accumulate during circuit execution. Sampling noise adds uncertainty because a quantum program returns a distribution of outcomes rather than one deterministic answer.
Error mitigation does not repair a computation in the same way that quantum error correction aims to do. Instead, it uses additional measurements, altered circuits, calibration data, or classical post-processing to estimate what a lower-noise result might have been. The estimate can be useful, but it may also have greater variance, require more circuit executions, or become unstable when the original circuit is too noisy.
A sound quantum error mitigation tutorial therefore needs more than a before-and-after expectation value. Run a baseline, apply one method at a time, and record the result, uncertainty, number of circuits, shots, wall-clock time, and any calibration assumptions. For broader workload planning, pair this process with a quantum circuit resource estimation checklist and a guide to benchmarking circuits on simulators and real hardware.
The three methods at a glance
- Readout error mitigation: Characterizes how a device reports prepared states, then uses a correction model to adjust measured probabilities. It is most directly relevant when the circuit is reasonable but the final measurement is unreliable.
- Zero-noise extrapolation, or ZNE: Executes related versions of a circuit at several effective noise levels, then extrapolates an observable toward a lower-noise limit. It can address some gate noise, but it increases circuit and sampling overhead.
- Probabilistic error cancellation, or PEC: Represents ideal operations using a weighted combination of noisy operations and combines many sampled executions. It can target gate errors, but the sampling cost and estimator variance can grow substantially.
These methods are not interchangeable. Readout mitigation changes how results are interpreted. ZNE changes the circuits being sampled. PEC changes the sampling procedure and combines signed or weighted contributions. The correct choice depends on the noise source, observable, available calibration information, and acceptable overhead.
Checklist by scenario
Scenario 1: The main concern is measurement bias
- Start with a baseline. Run the target circuit without correction using a fixed shot count. Save raw counts, probabilities, expectation values, and execution metadata.
- Characterize the measurement process. Use the framework or provider’s supported readout-calibration workflow, or a small set of prepared reference states when building the model yourself. Keep the calibration circuits separate from the target circuit.
- Apply the correction conservatively. Check whether corrected probabilities remain physically sensible. Depending on the method, mitigation can produce small negative quasi-probabilities or values outside the usual probability range; if so, document the post-processing rule rather than silently hiding it.
- Compare observables, not only counts. For a variational algorithm, compare the energy or cost function that drives optimization. For a sampling task, compare selected probabilities, marginal distributions, or a task-specific distance.
Readout correction is a sensible first experiment because it is often easier to isolate than gate-noise mitigation. It does not, however, compensate for errors that occurred throughout the circuit.
Scenario 2: The circuit has moderate depth and you can afford extra executions
- Choose a noise-scaling plan. Select several scale factors and state how each factor is produced. Common approaches alter gate scheduling or insert identity-equivalent gate sequences, but the implementation must preserve the intended ideal operation.
- Keep the observable fixed. Measure the same expectation value at each noise level. Do not compare unrelated output metrics and call the difference an extrapolation.
- Fit an extrapolation model. Use a simple model appropriate to the amount of data. Record the scale factors, fit order, weights, and the extrapolated intercept. Higher-order fits may follow the sampled points closely while amplifying statistical fluctuations.
- Repeat the estimate when possible. A single extrapolated value can look better by chance. Use repeated batches, bootstrap resampling, or another uncertainty method supported by your workflow.
ZNE is especially useful as an experiment for small circuits and carefully chosen observables. It is less attractive when circuit folding creates excessive depth or when the noise changes in ways that the scaling model does not represent.
Scenario 3: You have a calibrated noise model and need a stronger gate-error test
- Define the operation-level model. Identify which gates, channels, or error processes are represented and how calibration data was obtained. A model based only on an ideal simulator is not evidence that PEC will work on hardware.
- Track the sampling overhead. Record the number of sampled circuit variants, the weights applied to outcomes, and the resulting estimator variance.
- Set a stopping rule. Decide in advance how much variance or runtime is acceptable. An unbiased-looking estimate is not automatically useful if its confidence interval is too wide for the application.
- Validate on a small circuit first. Compare PEC against the unmitigated result and, where available, a trusted simulator or classically calculable reference.
PEC can be technically demanding and sensitive to model quality. Treat it as a targeted experiment rather than a default setting for every quantum program.
Scenario 4: You are building a Qiskit or PennyLane workflow
Keep the circuit definition, backend selection, transpilation or compilation settings, mitigation configuration, and result analysis in separate steps. SDK features and provider integrations change over time, so prefer the currently supported mitigation interface for the selected backend instead of copying an old example unchanged. The same separation makes it easier to port an experiment between Qiskit, PennyLane, a simulator, and hardware. Review the Qiskit transpilation guide before attributing an improvement to mitigation: reducing depth or changing qubit mapping can affect the result independently.
What to double-check
Use a reference when one exists
For small circuits, compare hardware results with an ideal statevector or exact calculation. For larger circuits, use a shot-based simulator, tensor-network approximation, symmetry check, conservation law, or another independently justified reference. A mitigated value that moves toward an expected answer is encouraging, but it is not proof of accuracy unless the reference is appropriate.
Measure uncertainty and variance
Store standard errors, confidence intervals, or repeated-run variability alongside every expectation value. Mitigation can reduce bias while increasing variance. Report both. If the application depends on selecting the lowest energy or highest-probability candidate, evaluate whether the ranking is stable, not only whether one scalar moved closer to a reference.
Count the complete overhead
Include calibration circuits, folded or rescaled circuits, repeated batches, shots per circuit, queue or execution time, classical fitting time, and memory used for correction. The quantum simulator comparison framework is useful when deciding whether part of this testing belongs on a simulator before hardware execution.
Control the circuit version
Record the SDK version, backend identifier, compilation settings, qubit mapping, shot count, random seeds where relevant, calibration timestamp, and mitigation parameters. A backend’s noise can vary, and a transpiler update can change the physical circuit. Without this metadata, a later rerun may not be comparable.
Common mistakes
- Calling a noiseless simulator a mitigation result. An ideal simulation is a reference, not evidence that a hardware estimator was corrected.
- Changing several variables at once. If you alter the backend, transpilation level, circuit layout, shot count, and mitigation method together, you cannot identify what caused the difference.
- Optimizing for one lucky run. Repeated executions are needed when the expected improvement is similar to ordinary sampling variation.
- Ignoring physical constraints. A mitigation workflow can produce mathematically adjusted probabilities that require normalization, clipping, or another declared treatment. Each choice changes the analysis.
- Using ZNE without checking the scaled circuits. Noise scaling can increase depth, introduce cancellation-sensitive behavior, or move the circuit outside the regime where extrapolation is informative.
- Assuming readout mitigation fixes gate errors. Measurement correction cannot generally recover information lost earlier in the circuit.
- Reporting only the improved metric. Include unmitigated results, uncertainty, execution cost, and the reference used for validation.
When to revisit
Revisit the experiment whenever the underlying inputs change. That includes a new backend, a different qubit layout, a transpiler or SDK update, changed calibration data, a new circuit depth, or a shift from a simulator to hardware. Also revisit before a recurring planning or benchmarking cycle so that old overhead and accuracy claims do not become default assumptions.
Use this action list for the next run:
- Freeze and save the exact circuit and compilation configuration.
- Run an unmitigated baseline with recorded counts and uncertainty.
- Choose the method that matches the suspected error source: readout correction for measurement bias, ZNE for a controlled noise-scaling test, or PEC for a calibrated gate-error experiment.
- Run a reference case and at least one repeated batch.
- Report accuracy, variance, circuit count, shots, runtime, and calibration assumptions in one comparison table.
- Keep the method only if it improves the task-specific result at an acceptable cost.
For follow-up work, connect the mitigation test to a complete algorithm rather than treating it as an isolated number. A VQE workflow or QAOA experiment makes the trade-off concrete: the relevant question is not whether mitigation changes an expectation value, but whether it produces a more reliable decision, estimate, or optimization result.