smartyfy.mrindigi.com

Quantum Computing Master Course — 159. Error Mitigation

Lesson 159: Error Mitigation

Smartyfy Quantum Computing Master Course

Objectives and prerequisites

Explain what error mitigation estimates, invert a small readout model, and calculate the bias and variance tradeoff of a simple zero-noise extrapolation. Prerequisites are probabilities, linear algebra, expectation values, and independent-sample variance. The examples are exact classical noise models. They are not reports of execution on a quantum device.

Mitigation targets an estimate

Error mitigation uses additional measurements, calibrated models, circuit variants, or classical postprocessing to reduce error in estimated properties. Error correction encodes information and uses syndrome information to protect logical computation under an appropriate fault-tolerant scheme. Mitigation generally does not produce a freely usable, corrected quantum state. An improved estimate of an observable should not be described as a repaired state unless a specific state-producing procedure supports that claim.

Both systematic bias and statistical variance matter. For an estimator T of a fixed ideal value μ, its mean squared error is Var(T) + [E(T) − μ]². A procedure can reduce bias while increasing variance enough to worsen total error at the available budget. Calibration uncertainty, drift, model mismatch, and extra circuit execution belong in the comparison.

What several mitigation approaches require
Approach Basic idea Important cost or assumption
Readout correction Invert an assignment model Stable, identifiable calibration
Zero-noise extrapolation Fit or cancel noise dependence Controlled noise scaling and added variance
Probabilistic error cancellation Reweight implementable noisy operations Accurate noise model and sampling overhead
Symmetry verification Discard or flag forbidden outcomes Correct symmetry and reduced acceptance

Worked asymmetric readout correction

Let e0 = P(report 1 | prepared 0) and e1 = P(report 0 | prepared 1). With true population p = P(1), the reported one probability is q = e0(1 − p) + (1 − e1)p = e0 + (1 − e0 − e1)p. Define d = 1 − e0 − e1. If d is nonzero, the model gives p = (q − e0)/d.

Take e0 = 0.05, e1 = 0.10, and true p = 0.40. Then d = 0.85 and q = 0.39. Inverting q recovers 0.40 exactly when the model and probabilities are exact. If N independent reported bits estimate q, and the calibration parameters are treated as known, the corrected estimator has variance q(1 − q)/(Nd²). Calibration errors add further uncertainty and can create bias.

For N = 1000, the corrected standard error is approximately 0.018146. The raw reported-bit standard error is about 0.015424, but the raw estimator targets q rather than p. Comparing standard errors without considering this different target would be misleading. In this example, the raw probability also has a bias of −0.01 relative to p.

When d is small, inversion is ill-conditioned: small data or calibration errors are greatly amplified. When d = 0, q is independent of p and this readout model contains no population information. Finite-data inversions can yield values outside [0,1]. Clipping such values restores a probability range but changes the estimator and can introduce bias; it is not a free statistical repair.

Worked zero-noise extrapolation

Suppose a dimensionless noise scale λ parametrizes an expectation as f(λ) = f0 + aλ + bλ² + higher terms near zero. Assume an experiment can produce comparable circuits at scales λ and 2λ while preserving their ideal target. The linear extrapolator T = 2f̂(λ) − f̂(2λ) cancels the term proportional to a. Its expectation is f0 − 2bλ² plus higher terms.

For the illustrative polynomial f(λ) = 0.8 − 0.1λ + 0.02λ², the two values at λ = 1 and 2 are 0.72 and 0.68. The extrapolated value is 0.76. The bias relative to f0 = 0.8 falls from −0.08 for the unmitigated value to −0.04, but does not vanish because curvature remains.

If the two estimates are independent, Var(T) = 4Var(f̂(λ)) + Var(f̂(2λ)). With equal variance 1/N at each point, the result is 5/N. A fair fixed-total-shot comparison must also account for the two sets of N shots. For a general weighted sum Σwi f̂i, independent variance is Σwi²vi/Ni; negative extrapolation weights can strongly amplify uncertainty.

Noise scaling is a physical assumption, not merely an x-axis label. Repeating or stretching operations may change different error mechanisms differently. A high-order fit through many points can become unstable, especially when extrapolating outside the observed interval. Report the scaling method, fit model, residuals, uncertainty, and sensitivity to model choices.

Cancellation weights and postselection

In probabilistic error cancellation, an ideal operation is represented using a signed combination of implementable noisy operations under a model. Signed weights are not ordinary probabilities. One samples using normalized absolute weights and restores signs through outcome reweighting. If the sum of absolute coefficients is Γ, a common variance-overhead scale is Γ², with detailed performance depending on the observable and model.

For coefficients 1.2 and −0.2, Γ = 1.4. Sample the corresponding terms with probabilities 6/7 and 1/7, and multiply their outcomes by +1.4 or −1.4 respectively. This implements the signed average statistically. It does not physically apply a negative probability channel. Products of such overhead factors across many operations can become costly.

Symmetry verification accepts outcomes compatible with a known conserved quantity. At acceptance probability a, collecting approximately N accepted samples requires N/a attempts on average. Errors that remain inside the accepted sector can survive. If the wrong sector is assumed, valid physics can be discarded. Postselection should therefore state both the physical justification and the acceptance rate.

Four worked exercises

  1. Invert the readout model with e0 = 0.05, e1 = 0.10, and measured q = 0.56.

    Solution. Use p̂ = (0.56 − 0.05)/0.85 = 0.60. This assumes the calibration describes the measured experiment.

  2. For independent estimates with variances 0.0001 and 0.0004, find the variance of twice the first minus the second.

    Solution. The variance is 4 × 0.0001 + 0.0004 = 0.0008. The minus sign does not subtract variance because the estimates are independent.

  3. Calculate the extrapolation residual when b = 0.02 and λ = 0.5 in the quadratic model.

    Solution. The residual bias is −2bλ² = −0.01. Linear cancellation removes the first-order term, not the quadratic term.

  4. A symmetry check accepts 40 percent of shots. Estimate the attempts needed for 2000 accepted results.

    Solution. The expected number is 2000/0.4 = 5000 attempts under independent, stable acceptance. Report the rejected attempts too; accepted-only counts hide resource overhead.

Five explained multiple-choice questions

  1. What does readout inversion require in this binary model? A. A nonzero value of 1 − e0 − e1. B. Equal values of e0 and e1. C. Exactly zero measurement noise. D. A pure input state.

    Answer: A. The coefficient linking true and observed populations must be invertible; a mixed input population is allowed.

  2. Which term remains after the stated linear extrapolation? A. The original first-order term aλ. B. No error term of any order. C. A leading quadratic bias −2bλ². D. A leading quadratic bias +2bλ².

    Answer: C. Substituting the two scales gives 2bλ² − 4bλ² = −2bλ².

  3. How do independent variances combine in 2f̂1 − f̂2? A. They cancel if both means agree. B. As four times the first variance plus the second. C. As twice the first variance minus the second. D. As the first variance divided by four plus the second.

    Answer: B. Variance weights are squared, and independence removes covariance terms.

  4. What does Γ = 1.4 suggest in the signed-sampling example? A. An acceptance probability greater than one. B. A physical negative-probability operation. C. Zero sampling overhead. D. A variance-overhead scale of 1.96.

    Answer: D. The usual overhead scale squares the absolute coefficient sum; the signed terms are implemented by classical reweighting.

  5. Which outcome best establishes useful mitigation at a fixed budget? A. Reduced bias with no variance accounting. B. Lower error including both bias and variance under a stated target. C. A smaller reported standard error for an estimator of a different target. D. An estimate constrained to the physical range regardless of bias.

    Answer: B. The relevant comparison considers the target, uncertainty, model assumptions, and complete measurement cost.

Pitfalls and summary

Mitigation relies on assumptions and spends statistical resources. Corrected ranges, smaller apparent biases, and more elaborate fits do not independently certify accuracy. Validate models, quantify overhead, and keep mitigated estimates distinct from fault-tolerantly protected quantum states.

Primary sources and further study

These sources support the definitions and context. The numerical examples, exercises, and explanations here were prepared for this lesson. Research papers are optional advanced reading.