Skip to main content
KetQat

Appearance

Theorem · intermediate

Probabilistic error cancellation

If the ideal circuit's map is a real linear combination of implementable noisy maps with total weight gamma, sampling those maps with probabilities proportional to the weights and reweighting by gamma times the sign gives an unbiased estimator; about 2 gamma squared ln(2/δ)/ε² shots suffice for accuracy ε.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Suppose the ideal operation U\mathcal{U} (a gate, a layer or a whole circuit, including the final measurement of OO) can be written as

U=∑iqi Bi,qi∈R,γ=∑i∣qi∣≥1,\mathcal{U} = \sum_i q_i\, \mathcal{B}_i, \qquad q_i \in \R, \qquad \gamma = \sum_i \abs{q_i} \ge 1,

where each Bi\mathcal{B}_i is a noisy operation the device can run. Sample ii with probability pi=∣qi∣/γp_i = \abs{q_i}/\gamma, run Bi\mathcal{B}_i on the input, measure OO to get x∈[−1,1]x \in [-1, 1], and output e^=γ sgn⁡(qi) x\hat e = \gamma\, \operatorname{sgn}(q_i)\, x. Then:

  1. E[e^]=Tr⁡(O U(ρ0))\mathbb{E}[\hat e] = \tr\big(O\, \mathcal{U}(\rho_0)\big): the estimator is unbiased;
  2. e^∈[−γ,γ]\hat e \in [-\gamma, \gamma], so the mean of NN independent samples is within ε\varepsilon of the ideal value with probability at least 1−δ1 - \delta whenever
N  ≥  2γ2ε2ln⁡2δ.N \;\ge\; \frac{2\gamma^2}{\varepsilon^2} \ln\frac{2}{\delta} .

For a circuit of layers U1,…,UL\mathcal{U}_1, \dots, \mathcal{U}_L decomposed separately with costs γ1,…,γL\gamma_1, \dots, \gamma_L, the product decomposition has cost γ=∏ℓγℓ\gamma = \prod_\ell \gamma_\ell, so the sampling overhead γ2\gamma^2 grows exponentially in the number of layers. The method is due to Temme, Bravyi and Gambetta; Endo, Benjamin and Li developed it for gate sets of Clifford operations and measurements and for imperfectly known noise.

Holds when

  • The noisy implementable operations Bi\mathcal{B}_i are known exactly (in practice they are learned, and model error becomes bias).
  • Measured observable with ∥O∥≤1\norm{O} \le 1, so single-shot outcomes lie in [−1,1][-1, 1].

Proof

Proof of the probabilistic error cancellation guaranteesMachine-checked

Unbiasedness. Conditioned on index ii, the measured value xx has mean Tr⁡(O Bi(ρ0))\tr(O\, \mathcal{B}_i(\rho_0)). Averaging over ii,

E[e^]=∑i∣qi∣γ γ sgn⁡(qi) Tr⁡(O Bi(ρ0))=Tr⁡(O∑iqiBi(ρ0))=Tr⁡(O U(ρ0)).\mathbb{E}[\hat e] = \sum_i \frac{\abs{q_i}}{\gamma}\, \gamma\, \operatorname{sgn}(q_i)\, \tr\big(O\,\mathcal{B}_i(\rho_0)\big) = \tr\Big(O \sum_i q_i \mathcal{B}_i(\rho_0)\Big) = \tr\big(O\, \mathcal{U}(\rho_0)\big).

Sample bound. The samples e^1,…,e^N\hat e_1, \dots, \hat e_N are independent and lie in [−γ,γ][-\gamma, \gamma], an interval of width 2γ2\gamma. Hoeffding's inequality (Hoeffding) gives, for the mean eˉ\bar e,

Pr⁡[∣eˉ−Eeˉ∣≥ε]≤2exp⁡ ⁣(−2Nε2(2γ)2)=2exp⁡ ⁣(−Nε22γ2),\Pr\big[\abs{\bar e - \mathbb{E}\bar e} \ge \varepsilon\big] \le 2 \exp\!\Big( -\frac{2 N \varepsilon^2}{(2\gamma)^2} \Big) = 2 \exp\!\Big( -\frac{N\varepsilon^2}{2\gamma^2} \Big),

which is at most δ\delta when N≥2γ2ln⁡(2/δ)/ε2N \ge 2\gamma^2 \ln(2/\delta)/\varepsilon^2. For comparison, the ideal device needs N≥2ln⁡(2/δ)/ε2N \ge 2\ln(2/\delta)/\varepsilon^2 by the same inequality, so the overhead factor is γ2\gamma^2.

Products. If Uℓ=∑iqi(ℓ)Bi(ℓ)\mathcal{U}_\ell = \sum_{i} q^{(\ell)}_{i} \mathcal{B}^{(\ell)}_{i} for each layer, then UL∘⋯∘U1=∑i1,…,iL(∏ℓqiℓ(ℓ)) BiL(L)∘⋯∘Bi1(1)\mathcal{U}_L \circ \dots \circ \mathcal{U}_1 = \sum_{i_1, \dots, i_L} \big(\prod_\ell q^{(\ell)}_{i_\ell}\big)\, \mathcal{B}^{(L)}_{i_L} \circ \dots \circ \mathcal{B}^{(1)}_{i_1}, and the total weight is ∑i1..iL∏ℓ∣qiℓ(ℓ)∣=∏ℓγℓ\sum_{i_1..i_L} \prod_\ell \abs{q^{(\ell)}_{i_\ell}} = \prod_\ell \gamma_\ell. Sampling the product distribution is the same as sampling each layer's index independently, so the procedure runs one randomly modified circuit per shot.

Builds on

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Kristan Temme, Sergey Bravyi, Jay M. Gambetta (2017). Error mitigation for short-depth quantum circuits. Physical Review Letters 119, 180509. doi:10.1103/PhysRevLett.119.180509arXiv:1612.02058
  2. Suguru Endo, Simon C. Benjamin, Ying Li (2018). Practical quantum error mitigation for near-future applications. Physical Review X 8, 031027. doi:10.1103/PhysRevX.8.031027arXiv:1712.09271
  3. Wassily Hoeffding (1963). Probability Inequalities for Sums of Bounded Random Variables. Journal of the American Statistical Association 58, 13-30. doi:10.1080/01621459.1963.10500830

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Unbiasedness and the Hoeffding sample bound N >= 2 gamma^2 ln(2/delta)/eps^2 for outcomes in [-gamma, gamma] re-derived; multiplicativity of gamma over layers checked. Compared with Cai et al. arXiv:2210.00921 Sec. III.B, Eqs. (12)-(16) (quasi-probability decomposition, sampling overhead gamma^2, introduced by Temme et al. 2017, basis sets in Endo et al. 2018) and Endo-Benjamin-Li arXiv:1712.09271 abstract (imperfectly known errors; single-qubit Clifford gates and measurements). Reference metadata compared with Crossref.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision 25893ae20b005fb3. Source file knowledge/records/theorem/probabilistic-error-cancellation.md in the content repository (readable there once it is public).