Probabilistic Error Cancellation

A quantum computer is asked to run an ideal unitary U\mathcal{U}, but the hardware always delivers something slightly wrong: a noise channel N\mathcal{N} rides along, so the executed operation is the completely positive map U~=N∘U\tilde{\mathcal{U}}=\mathcal{N}\circ\mathcal{U}. The obvious repair — apply the inverse N−1\mathcal{N}^{-1} and undo the damage — is impossible. Undoing decoherence would run the second law backwards; formally N−1\mathcal{N}^{-1} is a perfectly good linear map on operators but it is not completely positive, so no dial on the machine implements it. Probabilistic error cancellation gets the effect of N−1\mathcal{N}^{-1} without ever performing it: it moves the inversion out of the hardware and into classical post-processing. The move rests on one algebraic fact. Although N−1\mathcal{N}^{-1} is not a channel, it is a real linear combination of channels — operations the device can run, such as Pauli or Clifford gates: N−1=∑ici Oi\mathcal{N}^{-1}=\sum_i c_i\,\mathcal{O}_i with ∑ici=1\sum_i c_i=1. Trace preservation forces the coefficients to sum to one, but irreversibility forces some negative. You cannot run a circuit "with probability −0.17-0.17", yet you can run it, measure, and attach a minus sign. Sampling each Oi\mathcal{O}_i with probability ∣ci∣/γ|c_i|/\gamma (where γ=∑i∣ci∣\gamma=\sum_i|c_i|) and re-weighting every shot by γ sgn(ci)\gamma\,\mathrm{sgn}(c_i) builds a signed Monte Carlo estimator whose average is the noise-free expectation value — exactly, with zero bias, provided the noise model is right. Nothing is free. The price is variance: each mitigated gate multiplies the shot budget by γ2\gamma^2, and the factors compound, so the cost climbs like e2nϵe^{2n\epsilon} in the number of noisy gates. That exponential is why PEC is the sharpest tool of the pre-fault-tolerant era for modest circuits and a wall for large ones — an unbiased estimator that error correction, not more sampling, must eventually replace.

Key takeaways
  • Probabilistic error cancellation (PEC) recovers a noise-free expectation value by writing a characterized noise channel's inverse as a real combination of gates the hardware can run.
  • Because the inverse of a noisy (non-unitary) channel is not completely positive, that combination carries negative coefficients — a quasiprobability whose absolute weights sum to γ>1\gamma>1.
  • You sample operations with probability ∣ci∣/γ|c_i|/\gamma, weight each shot by γ sgn(ci)\gamma\,\mathrm{sgn}(c_i), and average; the estimator is provably unbiased when the model is exact.
  • The cost is variance inflation by γ2\gamma^2 per gate, so the overhead γtot2=∏gγg2≈e2nϵ\gamma_{\mathrm{tot}}^2=\prod_g\gamma_g^2\approx e^{2n\epsilon} grows exponentially with depth and error rate.
  • PEC lives or dies by calibration: a wrong noise model leaves a residual bias no sampling removes — a mitigation, not a correction.
  • Key idea: the noise-inverse super-operator N−1\mathcal{N}^{-1}, though not a valid channel, is a real linear combination of valid channels; sampling those channels with sign-corrected weights converts an impossible deterministic inversion into an unbiased — but variance-amplified — Monte Carlo estimator of the ideal expectation value.

Where this lives today

PEC is now a standard entry in the near-term quantum toolbox. Its flagship demonstration came from IBM in 2023, where the noise of each entangling layer of a superconducting processor was characterized as a sparse Pauli–Lindblad model — a few hundred to a few thousand Pauli error rates per layer rather than a full, exponentially large channel — and its inverse sampled to cancel the dominant two-qubit-gate noise, recovering expectation values across dozens of qubits at non-trivial depth. In practice PEC is rarely run alone: hybrid pipelines invert only the worst noise with partial PEC and mop up the residual with zero-noise extrapolation. It also doubles as a diagnostic — failure to converge to a known calibration answer fingerprints model error, gate drift, or non-Markovian correlations. Qiskit and Mitiq ship PEC, and the frontier pushes the mitigation horizon outward with better noise learning to shrink γg\gamma_g and honest accounting of where the wall forces the handoff to error correction.

The physical picture

Think of a noisy gate as a known smudge stamped on your data. You cannot physically un-smudge a quantum state — that is decoherence run in reverse, forbidden like unscrambling an egg. But an expectation value is an average over many runs, and averages can be repaired in software: run a small family of slightly different circuits, add some results and subtract others with carefully chosen frequencies, so the smudge cancels in the mean while the clean signal survives. The negative signs are the whole point — the software stand-in for an operation the hardware cannot perform. Concretely, the inverse is expanded over gates the machine can run, N−1=∑ici Oi\mathcal{N}^{-1}=\sum_i c_i\,\mathcal{O}_i, and the negative cic_i are unavoidable whenever the noise is lossy. The first figure shows this for a depolarized qubit: one tall positive weight on "do nothing" and three small negative weights on the Pauli corrections. The one-norm γ=∑i∣ci∣\gamma=\sum_i|c_i| measures how far outside the physical channels the inverse reaches — exactly the factor by which sampling costs inflate.

Figure
Quasiprobability decomposition of the depolarizing inverse at p = 0.4. One positive weight on the identity, three negative weights on the Pauli corrections X, Y, Z. The signed weights sum to Σᵢ cᵢ = 1 so trace is preserved, while their absolute values sum to the overhead γ = 2.0, the per-gate sampling cost
𝒩⁻¹ = 1.500 𝓘 − 0.167 (𝓧 + 𝓨 + 𝓩) at depolarizing p = 0.4 weight cᵢ +2 +1 0 𝓘 (identity) +1.500 𝓧 −0.167 𝓨 −0.167 𝓩 −0.167 Σᵢ cᵢ = 1.500 − 3(0.167) = 1 (trace preserved) γ = Σᵢ |cᵢ| = 1.500 + 3(0.167) = 2.0 → shot cost ×γ² = 4 sample 𝓘 with prob 0.75, each Pauli with prob 0.0833; sign −1 on the Paulis

The overhead γ\gamma is small for weak noise — a 1%1\% gate gives γ≈1.015\gamma\approx1.015 — so one gate is nearly free. But γ\gamma multiplies down the circuit, so the cost is exponential in size. The second figure plots this for the depolarizing channel: γ\gamma sits just above one for realistic error but curves sharply upward and diverges as the noise approaches the point where the channel erases its input. That divergence is the physical wall — where information is destroyed, no post-processing can retrieve it, and PEC has nothing to invert.

Figure
The per-gate sampling overhead γ = (1 + p/2)/(1 − p) for a single-qubit depolarizing channel of strength p. Manageable for small p (p = 0.1 gives γ = 1.17, p = 0.4 gives γ = 2.0) but diverging as p → 1, where the channel sends every state to the maximally mixed I/2 and becomes non-invertible
The punchline: overhead γ(p) diverges as noise erases the qubit 1 2 4 6 8 10 0 0.2 0.4 0.6 0.8 1.0 depolarizing strength p overhead γ = Σ |cᵢ| p → 1: γ → ∞ p = 0.1, γ = 1.17 p = 0.4, γ = 2.0 γ(p) = (1 + p/2)/(1 − p)

The core equations

Start from what the hardware does. Programming a gate U\mathcal{U} executes it followed by a characterized noise channel N\mathcal{N}; if N\mathcal{N} is invertible we can name — but not run — the operation that would undo it.

U~=N∘U,U=N−1∘U~(1)\tilde{\mathcal{U}} = \mathcal{N}\circ\mathcal{U},\qquad \mathcal{U} = \mathcal{N}^{-1}\circ\tilde{\mathcal{U}} \qquad (1)

where: U\mathcal{U} — ideal unitary super-operator, U(ρ)=UρU†\mathcal{U}(\rho)=U\rho U^\dagger; N\mathcal{N} — characterized CPTP noise channel; U~\tilde{\mathcal{U}} — the noisy operation the device runs; N−1\mathcal{N}^{-1} — linear inverse of the noise map, existing but not CPTP in general. Reading: the ideal circuit is one N−1\mathcal{N}^{-1} away from the noisy one — the method realizes that inverse without a device that implements it. The realization is a quasiprobability decomposition: expand N−1\mathcal{N}^{-1} over operations the machine can run, with the coefficients summing to one by trace preservation.

N−1=∑ici Oi,∑ici=1,ci∈R(2)\mathcal{N}^{-1} = \sum_i c_i\,\mathcal{O}_i,\qquad \sum_i c_i = 1,\qquad c_i\in\mathbb{R} \qquad (2)

where: Oi\mathcal{O}_i — implementable (CPTP) basis operations, typically Paulis or Cliffords; cic_i — real quasiprobability coefficients, at least one negative; ∑ici=1\sum_i c_i=1 is trace preservation. Reading: an honest equality of super-operators — the negativity is what stops the right-hand side from being a physical channel. Two derived quantities run the sampler: the one-norm γ\gamma is the total absolute weight, and dividing each ∣ci∣|c_i| by it gives a probability distribution.

γ=∑i∣ci∣  ≥  1,pi=∣ci∣γ(3)\gamma = \sum_i |c_i| \;\ge\; 1,\qquad p_i = \frac{|c_i|}{\gamma} \qquad (3)

where: γ\gamma — one-norm of the quasiprobability, the sampling cost (the decomposition's negativity); pip_i — normalized probability of drawing Oi\mathcal{O}_i. Reading: γ≥1\gamma\ge1 always, equal to one precisely when N−1\mathcal{N}^{-1} is already a physical channel; every unit above is irreversibility paid for in variance. Each shot draws an Oi\mathcal{O}_i, measures the observable, and multiplies by the sign-and-scale factor; in expectation it is the ideal value — PEC's central promise.

O^PEC=γ sgn(ci) oi,E ⁣[O^PEC]=⟨O⟩ideal(4)\hat{O}_{\mathrm{PEC}} = \gamma\,\mathrm{sgn}(c_i)\,o_i,\qquad \mathbb{E}\!\left[\hat{O}_{\mathrm{PEC}}\right] = \langle O\rangle_{\mathrm{ideal}} \qquad (4)

where: O^PEC\hat{O}_{\mathrm{PEC}} — single-shot mitigated estimator for OO; oio_i — value of OO on the run using Oi\mathcal{O}_i; sgn(ci)\mathrm{sgn}(c_i) — sign correction restoring the quasiprobability weight. Reading: the machine only runs physical circuits; the impossible part lives in the classical factor γ sgn(ci)\gamma\,\mathrm{sgn}(c_i). The catch is the spread: each shot is inflated by γ\gamma, so its variance is inflated by γ2\gamma^2.

Var ⁣[O^PEC]  ≤  γ2 Omax⁡2(5)\mathrm{Var}\!\left[\hat{O}_{\mathrm{PEC}}\right] \;\le\; \gamma^2\,O_{\max}^2 \qquad (5)

where: Omax⁡O_{\max} — largest magnitude eigenvalue of OO, bounding a single shot's range; γ2\gamma^2 — variance amplification relative to unmitigated sampling. Reading: reaching a target error needs about γ2\gamma^2 times as many shots — the exponential wall lives here once γ\gamma compounds. Across a circuit the inverses of independent layers multiply, so do their one-norms, and the shot budget scales as the product squared.

γtot=∏g=1nγg,Nshots∼γtot2δ2(6)\gamma_{\mathrm{tot}} = \prod_{g=1}^{n}\gamma_g,\qquad N_{\mathrm{shots}} \sim \frac{\gamma_{\mathrm{tot}}^2}{\delta^2} \qquad (6)

where: nn — number of noisy gates each carrying an independent inverse; γg\gamma_g — per-gate overhead ≥1\ge1; δ\delta — target standard error. Reading: for weak noise γg=1+O(ϵ)\gamma_g=1+O(\epsilon), so γtot2≈e2nϵ\gamma_{\mathrm{tot}}^2\approx e^{2n\epsilon} — tame while nϵ≲1n\epsilon\lesssim1, exponential after. Finally, the workhorse: the inverse of a single-qubit depolarizing channel over identity and Pauli operations (convention Dp(ρ)=(1−p)ρ+p I2\mathcal{D}_p(\rho)=(1-p)\rho+p\,\tfrac{I}{2}, pp the full-depolarization probability).

Dp−1=4−p4(1−p) I  −  p4(1−p)(X+Y+Z)(7)\mathcal{D}_p^{-1} = \frac{4-p}{4(1-p)}\,\mathcal{I} \;-\; \frac{p}{4(1-p)}\big(\mathcal{X}+\mathcal{Y}+\mathcal{Z}\big) \qquad (7)

where: Dp\mathcal{D}_p — depolarizing channel ρ↦(1−p)ρ+p I2\rho\mapsto(1-p)\rho+p\,\tfrac{I}{2}; I,X,Y,Z\mathcal{I},\mathcal{X},\mathcal{Y},\mathcal{Z} — Pauli super-operations ρ↦PρP\rho\mapsto P\rho P. Reading: coefficients sum to one, absolute values to γDp=(1+p/2)/(1−p)\gamma_{\mathcal{D}_p}=(1+p/2)/(1-p) — the curve above. Over MM circuits, ⟨O⟩ideal≈1M∑mγtot(∏gsgn cig(m))om\langle O\rangle_{\mathrm{ideal}}\approx\tfrac{1}{M}\sum_m \gamma_{\mathrm{tot}}\big(\prod_g\mathrm{sgn}\,c_{i_g^{(m)}}\big)o_m. The three derivations below establish why the weights go negative, why the signed average is unbiased, and how much it costs.

Derivation AWhy the noise inverse must carry negative weight

The goal is to prove that the negativity in the quasiprobability decomposition is not a modeling choice but a theorem: whenever N\mathcal{N} is a genuinely noisy (non-unitary) channel, its inverse can never be written with all coefficients non-negative, so at least one ci<0c_i<0 and γ>1\gamma>1 strictly. The argument needs no calculation, only that a convex mixture of channels is again a channel.

Step 1. Suppose, for contradiction, that N−1=∑iciOi\mathcal{N}^{-1}=\sum_i c_i\mathcal{O}_i with every Oi\mathcal{O}_i CPTP, every ci≥0c_i\ge0, and ∑ici=1\sum_i c_i=1. Then N−1\mathcal{N}^{-1} is a convex combination of channels, hence itself CPTP. Why: the set of CPTP maps is convex, so a probability-weighted average of channels is a legitimate channel.

Step 2. If N−1\mathcal{N}^{-1} is CPTP, then N\mathcal{N} is a channel with a CPTP inverse — reversible within the physical operations. But a reversible CPTP map is necessarily a unitary conjugation ρ↦UρU†\rho\mapsto U\rho U^\dagger. Why: reversibility forbids leakage to an environment, since a non-trivial dilation would lose distinguishability no channel can restore (data-processing inequality).

Step 3. By assumption N\mathcal{N} is noisy, hence not a unitary conjugation — a contradiction. So Step 1 fails: at least one ci<0c_i<0, and γ=∑i∣ci∣>∣∑ici∣=1\gamma=\sum_i|c_i|>|\sum_i c_i|=1. Why: the triangle inequality is saturated only when all terms share a sign, so any negative weight pushes γ\gamma above one, measuring how far the inverse sits outside the physical set.

Go deeper · Derivation B · 1 minUnbiasedness of the signed Monte Carlo estimator
Derivation BUnbiasedness of the signed Monte Carlo estimator

The goal is to show that the sampling recipe — draw Oi\mathcal{O}_i with probability pi=∣ci∣/γp_i=|c_i|/\gamma, insert it, measure OO, report γ sgn(ci)\gamma\,\mathrm{sgn}(c_i) times the outcome — has expectation equal to the ideal, noise-free value exactly, with no bias, so long as the characterized channel matches the true one. The proof is a short chain of identities whose one non-trivial move is that the sampling weight and sign correction conspire to rebuild the true coefficient cic_i.

Step 1. Condition on the drawn index ii. The device runs Oi\mathcal{O}_i after the noisy gate, so the conditional mean is E[o∣i]=Tr ⁣[O (Oi∘U~)(ρ)]\mathbb{E}[o\mid i]=\mathrm{Tr}\!\left[O\,(\mathcal{O}_i\circ\tilde{\mathcal{U}})(\rho)\right] and the reported value is O^=γ sgn(ci) o\hat O=\gamma\,\mathrm{sgn}(c_i)\,o. Why: the hardware executes only the physical operation Oi∘U~\mathcal{O}_i\circ\tilde{\mathcal{U}}; the sign and γ\gamma are applied afterward in software.

Step 2. Average over the sampling: E[O^]=∑ipi γ sgn(ci) Tr ⁣[O (Oi∘U~)(ρ)]\mathbb{E}[\hat O]=\sum_i p_i\,\gamma\,\mathrm{sgn}(c_i)\,\mathrm{Tr}\!\left[O\,(\mathcal{O}_i\circ\tilde{\mathcal{U}})(\rho)\right]. Why: the total expectation is the weighted sum of the conditional means.

Step 3. Collapse the weights: pi γ sgn(ci)=∣ci∣γ γ sgn(ci)=cip_i\,\gamma\,\mathrm{sgn}(c_i)=\tfrac{|c_i|}{\gamma}\,\gamma\,\mathrm{sgn}(c_i)=c_i. Why: the engine of the method — the probability cancels γ\gamma and the sign turns ∣ci∣|c_i| back into the signed quasiprobability, recovering the exact coefficient a deterministic inversion would use.

Step 4. Reassemble by linearity: E[O^]=Tr ⁣[O (∑iciOi)∘U~(ρ)]=Tr ⁣[O (N−1∘U~)(ρ)]\mathbb{E}[\hat O]=\mathrm{Tr}\!\left[O\,\big(\sum_i c_i\mathcal{O}_i\big)\circ\tilde{\mathcal{U}}(\rho)\right]=\mathrm{Tr}\!\left[O\,(\mathcal{N}^{-1}\circ\tilde{\mathcal{U}})(\rho)\right]. Why: the sum ∑iciOi\sum_i c_i\mathcal{O}_i is, by (2), exactly N−1\mathcal{N}^{-1} — the average has rebuilt it.

Step 5. Cancel the noise: since U~=N∘U\tilde{\mathcal{U}}=\mathcal{N}\circ\mathcal{U} and N−1∘N=id\mathcal{N}^{-1}\circ\mathcal{N}=\mathrm{id}, E[O^]=Tr ⁣[O U(ρ)]=⟨O⟩ideal\mathbb{E}[\hat O]=\mathrm{Tr}\!\left[O\,\mathcal{U}(\rho)\right]=\langle O\rangle_{\mathrm{ideal}}. Why: the inverse annihilates the noise — holding only if the modeled N\mathcal{N} equals the true noise, the estimator's single assumption.

Go deeper · Derivation C · 1 minSampling cost of inverting the depolarizing channel
Derivation CSampling cost of inverting the depolarizing channel

The goal is to compute the quasiprobability coefficients and overhead γ\gamma for the single-qubit depolarizing channel from scratch, verify the coefficients preserve trace, and locate the noise strength at which the inverse ceases to exist. The Pauli-transfer basis makes the channel diagonal, so inversion just reciprocates eigenvalues; the only care is to fix one parametrization, since the literature carries two with different-looking γ\gamma.

Step 1. Fix Dp(ρ)=(1−p)ρ+p I2 Trρ\mathcal{D}_p(\rho)=(1-p)\rho+p\,\tfrac{I}{2}\,\mathrm{Tr}\rho; since I2Trρ=14(ρ+XρX+YρY+ZρZ)\tfrac{I}{2}\mathrm{Tr}\rho=\tfrac14(\rho+X\rho X+Y\rho Y+Z\rho Z), the completely depolarizing map is D∗=14(I+X+Y+Z)\mathcal{D}_*=\tfrac14(\mathcal{I}+\mathcal{X}+\mathcal{Y}+\mathcal{Z}), and Dp=(1−p) id+p D∗\mathcal{D}_p=(1-p)\,\mathrm{id}+p\,\mathcal{D}_* has eigenvalue 11 on II, 1−p1-p on X,Y,ZX,Y,Z. Why: on Paulis both id\mathrm{id} and D∗\mathcal{D}_* are diagonal, so the channel inverts eigenvalue-by-eigenvalue.

Step 2. Invert on the diagonal: Dp−1=α id+β D∗\mathcal{D}_p^{-1}=\alpha\,\mathrm{id}+\beta\,\mathcal{D}_* needs eigenvalue 1/(1−p)1/(1-p) on the Paulis (where D∗\mathcal{D}_* vanishes), so α=1/(1−p)\alpha=1/(1-p); and 11 on II, so α+β=1\alpha+\beta=1, β=−p/(1−p)\beta=-p/(1-p). Why: the {id,D∗}\{\mathrm{id},\mathcal{D}_*\} basis that diagonalizes the channel turns operator inversion into two scalar equations.

Step 3. Expand D∗=14(I+X+Y+Z)\mathcal{D}_*=\tfrac14(\mathcal{I}+\mathcal{X}+\mathcal{Y}+\mathcal{Z}): cI=α+β4=4−p4(1−p)c_{\mathcal{I}}=\alpha+\tfrac{\beta}{4}=\tfrac{4-p}{4(1-p)} and cX=cY=cZ=β4=−p4(1−p)c_X=c_Y=c_Z=\tfrac{\beta}{4}=-\tfrac{p}{4(1-p)}. Trace check: ∑ici=4−p−3p4(1−p)=1\sum_i c_i=\tfrac{4-p-3p}{4(1-p)}=1. Why: the coefficients must sum to one since Dp−1\mathcal{D}_p^{-1} inverts a trace-preserving map — an independent check on the algebra.

Step 4. One-norm and limits: γ=∣cI∣+3∣cX∣=4−p+3p4(1−p)=1+p/21−p\gamma=|c_{\mathcal{I}}|+3|c_X|=\tfrac{4-p+3p}{4(1-p)}=\tfrac{1+p/2}{1-p}. As p→0p\to0, γ→1\gamma\to1; as p→1p\to1, γ→∞\gamma\to\infty. Why: at p=1p=1 the channel sends every input to I/2I/2, its eigenvalue 1−p1-p hits zero, the map is singular, and no finite-weight inverse exists — the information-destroyed wall.

Limiting cases

How γ\gamma and PEC's feasibility depend on the noise structure:

CaseResultMeaning
Weak local noiseγ=1+O(ϵ),    γtot2≈e2nϵ\gamma=1+O(\epsilon),\;\; \gamma_{\mathrm{tot}}^2\approx e^{2n\epsilon}For per-gate error ϵ≪1\epsilon\ll1 across nn gates, the cost is tame while nϵ≲1n\epsilon\lesssim1 — this is PEC's practical operating regime.
Depolarizing channelγ=1+p/21−p\gamma=\dfrac{1+p/2}{1-p} (single qubit)Closed form in the depolarizing strength pp; diverges as p→1p\to1, where the channel is non-invertible and information is irretrievably lost.
Amplitude dampingNAD−1\mathcal{N}_{\mathrm{AD}}^{-1} not a Pauli mixtureNon-unital noise needs a richer basis (Paulis plus resets), so the decomposition is less compact and γ\gamma larger for the same average error.
Deep / high-error circuitsγtot2=∏gγg2→∞\gamma_{\mathrm{tot}}^2=\prod_g\gamma_g^2\to\inftyThe multiplicative blow-up makes PEC infeasible past a depth set by the error budget — the wall that motivates fault-tolerant error correction.

Worked examples

1 · The quasiprobability of a single depolarized qubit (fully worked)

A single-qubit gate is followed by a depolarizing channel of strength p=0.4p=0.4 (convention Dp(ρ)=(1−p)ρ+p I/2\mathcal{D}_p(\rho)=(1-p)\rho+p\,I/2). Build the quasiprobability decomposition, find the sampling distribution and signs, compute γ\gamma, and state the shot cost.

Step 1. Coefficients from equation (7): cI=4−p4(1−p)=3.62.4=1.500c_{\mathcal{I}}=\dfrac{4-p}{4(1-p)}=\dfrac{3.6}{2.4}=\mathbf{1.500}, and each Pauli weight cX=cY=cZ=−p4(1−p)=−0.42.4=−0.1667c_X=c_Y=c_Z=-\dfrac{p}{4(1-p)}=-\dfrac{0.4}{2.4}=\mathbf{-0.1667}. Trace check: 1.500−3(0.1667)=11.500-3(0.1667)=\mathbf{1}.

Step 2. Overhead. γ=∣cI∣+3∣cX∣=1.500+3(0.1667)=2.0\gamma=|c_{\mathcal{I}}|+3|c_X|=1.500+3(0.1667)=\mathbf{2.0}, matching (1+p/2)/(1−p)=1.2/0.6(1+p/2)/(1-p)=1.2/0.6 — the amber marker on the second figure.

Step 3. Sampling and signs. Draw the identity with probability pI=1.500/2.0=0.75p_{\mathcal{I}}=1.500/2.0=\mathbf{0.75}; each of X,Y,ZX,Y,Z with probability 0.1667/2.0=0.08330.1667/2.0=\mathbf{0.0833} (summing to 0.250.25). Identity draws take sign +1+1, Pauli draws −1-1; every outcome is multiplied by γ sgn=±2.0\gamma\,\mathrm{sgn}=\pm2.0.

Step 4. Shot cost. Variance is inflated by γ2=4\gamma^2=\mathbf{4}, so matching an unmitigated run's error needs about four times as many shots for this gate. Decomposition D0.4−1=1.5 I−0.1667(X+Y+Z)\mathcal{D}_{0.4}^{-1}=1.5\,\mathcal{I}-0.1667(\mathcal{X}+\mathcal{Y}+\mathcal{Z}), γ=2.0\gamma=2.0, sampling (0.75, 0.0833×3)(0.75,\,0.0833\times3) with sign −1-1 on the Paulis, shot cost ×4\times4.

2 · Overhead of a hundred-gate circuit

A circuit contains 100100 two-qubit gates, each with per-gate overhead γg=1.02\gamma_g=1.02. Estimate the total overhead and shot budget, and read off the "mitigation horizon".

Step 1. Overhead multiplies (eq. 6): γtot=1.02100=e100ln⁡1.02=e1.9803≈7.24\gamma_{\mathrm{tot}}=1.02^{100}=e^{100\ln1.02}=e^{1.9803}\approx\mathbf{7.24}.

Step 2. Shot budget scales as the square: γtot2≈52\gamma_{\mathrm{tot}}^2\approx\mathbf{52}, roughly 50 times more shots than unmitigated for the same error — expensive but feasible.

Step 3. Push the depth. At 500500 such gates γtot2≈e19.8≈4×108\gamma_{\mathrm{tot}}^2\approx e^{19.8}\approx4\times10^{8}. The exponential e2nϵe^{2n\epsilon} is gentle until nϵ∼1n\epsilon\sim1 then brutal — solving e2nϵ≲Nδ2e^{2n\epsilon}\lesssim N\delta^2 gives the largest rescuable circuit. γtot≈7.2\gamma_{\mathrm{tot}}\approx7.2 and a ∼50×\sim50\times shot cost at 100100 gates; the same 2%2\% noise makes 500500 gates cost ∼108×\sim10^{8}\times — the wall where mitigation must yield to correction.

Physics of the portrait

Probabilistic error cancellation is barely a decade old, born from a specific realization about quasiprobabilities that a small group of theorists turned into working hardware protocols. It belongs to quantum error mitigation — squeezing accurate answers from imperfect, uncorrected devices — which crystallized around 2017 and now sits between raw NISQ hardware and the still-distant fault-tolerant machine.

Origins · 1 minquantum error mitigation and how this was discovered
QE
quantum error mitigation
the quasiprobability toolkit for pre-fault-tolerant devices · near-term quantum computing

Quantum error mitigation is the youngest idea in this chapter and the most pragmatic: unlike error correction, it accepts uncorrected qubits and asks only for accurate expectation values, paid for in extra runs rather than extra qubits. PEC was introduced in 2017 by Kristan Temme, Sergey Bravyi, and Jay Gambetta, who expanded the non-physical inverse of a characterized noise channel as a quasiprobability over physical gates and estimated it by signed sampling — an unbiased estimator with a controllable, if exponential, cost. The next year Suguru Endo, Simon Benjamin, and Ying Li generalized it to realistic gate sets, making it a practical recipe rather than a theorem. Its mathematics is inherited: quasiprobability representations of completely positive maps (the negativity that powers PEC is the same that marks non-classicality in Wigner functions), and Monte Carlo estimation of signed integrals from the fermionic sign problem, where γ\gamma plays the role of sign-problem severity. By 2023 Ewout van den Berg, Zlatko Minev, Abhinav Kandala, and Temme had scaled PEC to superconducting processors via sparse Pauli–Lindblad noise learning, and the review by Zhenyu Cai and collaborators placed it alongside zero-noise extrapolation as one of the two rigorously grounded mitigation methods — the exact, expensive one against the cheap, biased one.

History
2017
— Temme, Bravyi and Gambetta introduce probabilistic error cancellation via quasiprobability sampling
2018
— Endo, Benjamin and Li build a practical gate-set quasiprobability construction and hybrid schemes
2019
— Kandala and collaborators extend the computational reach of a noisy superconducting processor with error mitigation
2023
— van den Berg, Minev, Kandala and Temme scale PEC using learned sparse Pauli–Lindblad noise models
2023
— Cai and collaborators publish a comprehensive review of quantum error mitigation

Going further

References. Temme, Bravyi and Gambetta, "Error mitigation for short-depth quantum circuits", Phys. Rev. Lett. 119, 180509 (2017) · Endo, Benjamin and Li, "Practical quantum error mitigation for near-future applications", Phys. Rev. X 8, 031027 (2018) · van den Berg, Minev, Kandala and Temme, "Probabilistic error cancellation with sparse Pauli–Lindblad models", Nat. Phys. 19, 1116 (2023) · Cai et al., "Quantum error mitigation", Rev. Mod. Phys. 95, 045005 (2023) · Nielsen and Chuang, Quantum Computation and Quantum Information (2010), Ch. 8 · Watrous, The Theory of Quantum Information (2018), Ch. 2.

Provenance. The unbiasedness proof and the identity pi γ sgn(ci)=cip_i\,\gamma\,\mathrm{sgn}(c_i)=c_i follow Temme–Bravyi–Gambetta (2017) and Endo–Benjamin–Li (2018). The depolarizing coefficients and overhead are derived here from scratch in the Nielsen–Chuang convention Dp(ρ)=(1−p)ρ+p I/2\mathcal{D}_p(\rho)=(1-p)\rho+p\,I/2: eigenvalue 1−p1-p on the Paulis, cI=(4−p)/[4(1−p)]c_{\mathcal{I}}=(4-p)/[4(1-p)], cX,Y,Z=−p/[4(1−p)]c_{X,Y,Z}=-p/[4(1-p)], ∑ici=1\sum_i c_i=1, γ=(1+p/2)/(1−p)\gamma=(1+p/2)/(1-p) diverging at p=1p=1. The alternative Dp(ρ)=(1−p)ρ+p3∑P≠IPρP\mathcal{D}_p(\rho)=(1-p)\rho+\tfrac{p}{3}\sum_{P\neq I}P\rho P has eigenvalue 1−4p31-\tfrac{4p}{3} and diverges at p=3/4p=3/4; the two must not be mixed. A verifier should confirm the CP/unitarity argument forcing at least one ci<0c_i<0 (Watrous Ch. 2, Nielsen–Chuang Ch. 8), the coefficients giving γ=2.0\gamma=2.0 at p=0.4p=0.4, and 1.02100≈7.241.02^{100}\approx7.24 with γtot2≈52\gamma_{\mathrm{tot}}^2\approx52.

Prerequisites. CPTP Maps and Quantum Operations · Kraus Representation · Pauli and Bit/Phase-Flip Channels · Depolarizing Channel · Lindblad / GKSL Master Equation. Leads to. Zero-Noise Extrapolation · Quantum Error Correction · Markovian vs Non-Markovian Dynamics.

Ask the tutor: Ask me to walk through building the quasiprobability decomposition for your own noise channel, or to work out exactly where the exponential sampling wall stops your circuit.

If the inverse of the noise cannot be run on the machine, what exactly does the hardware do?

The hardware only ever runs physically legal circuits — the noisy gate followed by one implementable operation Oi\mathcal{O}_i (a Pauli, a Clifford, sometimes a reset). The impossible part, the inversion, lives entirely in software: after each run you look up which Oi\mathcal{O}_i was inserted, multiply the outcome by γ sgn(ci)\gamma\,\mathrm{sgn}(c_i), and add it to a running average. The negative signs and the factor γ>1\gamma>1 are numbers in a spreadsheet, not settings on the device — an operation forbidden as a channel is perfectly legal as a post-processing rule on already-collected data.

Is PEC a form of quantum error correction?

No, and the distinction matters. Error correction protects a quantum state in real time using redundant qubits and syndrome measurements, so a corrected computation runs to arbitrary depth. PEC touches no state and adds no qubits; it recovers only expectation values, as a statistical average over many runs, and pays a cost exponential in circuit size — whereas fault-tolerant correction costs only polynomially once below threshold. PEC is a near-term mitigation that stretches what uncorrected hardware can measure accurately; correction is the long-term architecture that removes the depth limit altogether.

Why is PEC called unbiased when its results are so noisy?

"Unbiased" and "low-variance" are different virtues. Unbiased means the estimator's expected value is exactly the ideal answer — average enough runs and you converge with no systematic offset. High-variance means any finite sample scatters widely around that truth. PEC deliberately trades one for the other: it removes the systematic bias of the noise channel and pays in variance, inflating the shot count by γ2\gamma^2 per gate. That is a good trade when you can afford the shots, since variance shrinks as 1/M1/M while bias would never shrink — provided the noise model is correct.

Where do the negative quasiprobabilities come from, physically?

They are the fingerprint of irreversibility. A noisy channel loses information to its environment, and no physical operation can pull it back — the data-processing inequality forbids it. So the map that would undo the noise cannot itself be a channel, and the only way to write a non-channel as a combination of channels is to allow negative weights. Their size, γ−1\gamma-1, measures how much information was scrambled: weak noise gives tiny negatives and γ≈1\gamma\approx1, while a channel that erases the qubit drives γ\gamma to infinity. The same negativity marks non-classicality in Wigner functions and the fermionic sign problem.

Why does the reported overhead formula differ between textbooks?

Because the depolarizing channel has two common parametrizations that define pp differently. Here, Dp(ρ)=(1−p)ρ+p I/2\mathcal{D}_p(\rho)=(1-p)\rho+p\,I/2: pp is the probability of full depolarization, the Pauli eigenvalue is 1−p1-p, and γ=(1+p/2)/(1−p)\gamma=(1+p/2)/(1-p) diverges at p=1p=1. In the alternative Dp(ρ)=(1−p)ρ+p3∑P≠IPρP\mathcal{D}_p(\rho)=(1-p)\rho+\tfrac{p}{3}\sum_{P\neq I}P\rho P, the eigenvalue is 1−4p31-\tfrac{4p}{3} and the channel is singular already at p=3/4p=3/4. Both are correct, related by a rescaling of pp. The one fatal mistake — which careful sources still make — is to write the channel in one convention and quote the overhead from the other.

Can PEC be combined with zero-noise extrapolation, and why would you?

Yes, and the combination often beats either alone. Their weaknesses are complementary: PEC is unbiased but its cost γtot2\gamma_{\mathrm{tot}}^2 explodes with depth, while zero-noise extrapolation is cheap but biased by its extrapolation model. A hybrid pipeline uses partial PEC to invert only the most damaging noise — the two-qubit-gate errors — lowering the effective error rate, then extrapolates the residual. Because only part of the noise was inverted, γ\gamma stays small and the shot budget manageable — a deliberate slide along the bias–variance–cost trade-off, tuned to the machine at hand.

Before this

Where this leads