Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Threshold theorem for quantum computation

Open
ThresholdTheorem.quantum_threshold_theorem

by Lucas · Oct 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

fault-tolerancequantum-computingquantum-error-correction

Threshold theorem for quantum computation. There are a threshold pth>0p_{\mathrm{th}}>0pth​>0 and an exponent c∈Nc\in\mathbb Nc∈N such that for every physical fault rate 0≤p<pth0\le p<p_{\mathrm{th}}0≤p<pth​ there is a constant AAA with the following property.

For every number of logical qubits nnn, every depth DDD and every target accuracy 0<ε<10<\varepsilon<10<ε<1, there are a block size bbb and a block decoder dec:{0,1}b→{0,1}\mathrm{dec}:\{0,1\}^b\to\{0,1\}dec:{0,1}b→{0,1} such that every ideal circuit CCC on nnn qubits of depth DDD can be simulated by a physical circuit C′C'C′ on nnn blocks of bbb qubits satisfying

∣C′∣  ≤  A (log⁡∣C∣ε+1)c ∣C∣|C'|\;\le\;A\,\Big(\log\tfrac{|C|}{\varepsilon}+1\Big)^{c}\,|C|∣C′∣≤A(logε∣C∣​+1)c∣C∣

and, for every independent stochastic noise model with fault rate at most ppp,

dTV(dec∗ Pnoisy(C′),  Pideal(C))  ≤  ε.d_{\mathrm{TV}}\Big(\mathrm{dec}_*\,P_{\mathrm{noisy}}(C'),\;P_{\mathrm{ideal}}(C)\Big)\;\le\;\varepsilon .dTV​(dec∗​Pnoisy​(C′),Pideal​(C))≤ε.

Here ∣C∣|C|∣C∣ is the number of locations of CCC (gates, preparations and idle steps), Pideal(C)P_{\mathrm{ideal}}(C)Pideal​(C) is the outcome distribution of measuring all qubits of the noiseless run of CCC, and dec∗Pnoisy(C′)\mathrm{dec}_*P_{\mathrm{noisy}}(C')dec∗​Pnoisy​(C′) is the blockwise-decoded outcome distribution of the noisy run of C′C'C′.

This is the boxed statement of the source: a circuit with p(n)p(n)p(n) gates can be simulated with error probability at most ε\varepsilonε using O(poly(log⁡(p(n)/ε)) p(n))O(\mathrm{poly}(\log(p(n)/\varepsilon))\,p(n))O(poly(log(p(n)/ε))p(n)) gates on hardware whose components fail with probability at most ppp, provided ppp is below a constant threshold.

Formalization Note "Gates" of the source are counted as locations, idle steps included, as in the standard analyses where waiting qubits are also noisy. The source's O(log⁡c(p(n)/ε) p(n))O(\log^c(p(n)/\varepsilon)\,p(n))O(logc(p(n)/ε)p(n)) is written non-asymptotically as A(log⁡(∣C∣/ε)+1)c∣C∣A(\log(|C|/\varepsilon)+1)^c|C|A(log(∣C∣/ε)+1)c∣C∣. The block size and the decoder may depend on nnn, DDD, ε\varepsilonε and ppp but not on the circuit CCC, which rules out decoders that encode the answer. The "reasonable assumptions about the noise" of the source are fixed as independent faults with arbitrary local fault channels.

Preamble
import Mathlib
import Definitions.Def_threshold_theorem_noise_model

open ThresholdTheorem
Formal statement
namespace ThresholdTheorem
theorem quantum_threshold_theorem :
    ∃ pth : ℝ, 0 < pth ∧ ∃ c : ℕ, ∀ p : ℝ, 0 ≤ p → p < pth → ∃ A : ℝ,
      ∀ (n D : ℕ) (ε : ℝ), 0 < ε → ε < 1 →
        ∃ (b : ℕ) (dec : (Fin b → Fin 2) → Fin 2),
          ∀ C : Circuit (Fin n), C.length = D →
            ∃ C' : Circuit (Fin n × Fin b),
              (C'.size : ℝ) ≤ A * (Real.log (C.size / ε) + 1) ^ c * C.size ∧
              ∀ N : NoiseModel p,
                tvDist (decodeDist dec (outDist (noisyState N C'))) (outDist (idealState C))
                  ≤ ε := by sorry
end ThresholdTheorem
Source
Wikipedia, "Threshold theorem" (revision oldid=1360742213, https://en.wikipedia.org/w/index.php?title=Threshold_theorem&oldid=1360742213), section "Explanation"; the boxed statement is quoted there from M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th anniversary ed., Cambridge University Press, p. 481.
Human review
  • Endorsed by Shuze Chen · Oct 13, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 13, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me