Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1 — a (K, d)-clustered network is estimated to precision ε with probability ≥ 2/3 from N = ⌈4·2^{4K}/ε²⌉ samples, each running r d-qubit pieces

Proved
ClusterSim.EdgeCut.theorem_1

by mikedeng1 · Oct 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

circuit-cuttingmonte-carlop2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-simulation

Let (G,A)(G,\mathcal A)(G,A) be a tensor network with a (K,d)(K,d)(K,d)-clustering into rrr clusters: exactly KKK edges join different clusters (edges into the final observable OfO_fOf​ not counted) and every cluster needs at most ddd qubits. For s∈[8]Ecuts\in[8]^{E_{\mathrm{cut}}}s∈[8]Ecut​ let (G′,As)(G',\mathcal A_s)(G′,As​) be the network obtained by cutting every edge of EcutE_{\mathrm{cut}}Ecut​ according to sss and cs=∏ecsec_s=\prod_{e}c_{s_e}cs​=∏e​cse​​. Model one run of the pieces of (G′,As)(G',\mathcal A_s)(G′,As​) on the quantum device by its outcome tst_sts​, whose law run(s)\mathrm{run}(s)run(s) is any probability law on [−1,1][-1,1][−1,1] with mean T(G′,As)T(G',\mathcal A_s)T(G′,As​). Let ε>0\varepsilon>0ε>0 and

N=⌈4⋅24Kε2⌉.N=\Big\lceil\frac{4\cdot 2^{4K}}{\varepsilon^2}\Big\rceil .N=⌈ε24⋅24K​⌉.
  1. Precision ε\varepsilonε with probability 2/32/32/3. Let x1,…,xNx_1,\dots,x_Nx1​,…,xN​ be i.i.d. samples of 8Kcsts8^K c_s t_s8Kcs​ts​, where sss is uniform on [8]Ecut[8]^{E_{\mathrm{cut}}}[8]Ecut​ and ts∼run(s)t_s\sim\mathrm{run}(s)ts​∼run(s). Then
Pr⁡[ ∣1N∑i=1Nxi−T(G,A)∣<ε ] ≥ 23.\Pr\Big[\,\Big|\frac1N\sum_{i=1}^N x_i-T(G,\mathcal A)\Big|<\varepsilon\,\Big]\ \ge\ \frac23 .Pr[​N1​i=1∑N​xi​−T(G,A)​<ε] ≥ 32​.
  1. ddd-qubit pieces. For every sss, the induced clustering of (G′,As)(G',\mathcal A_s)(G′,As​) has no edge between different clusters, and each of its rrr clusters needs at most ddd qubits.

Hence the value T(G,A)T(G,\mathcal A)T(G,A), which equals the expected output of the quantum-classical algorithm represented by the network, is approximated to precision ε\varepsilonε with probability at least 2/32/32/3 by N⋅r=O(24Kr/ε2)N\cdot r=O(2^{4K}r/\varepsilon^2)N⋅r=O(24Kr/ε2) runs of a ddd-qubit device. This is the paper's first main theorem.

Formalization Note The paper's O(24Kr/ε2)O(2^{4K}r/\varepsilon^2)O(24Kr/ε2) is pinned to the proof's own sample count N=⌈4a2/ε2⌉N=\lceil4a^2/\varepsilon^2\rceilN=⌈4a2/ε2⌉ with a=22Ka=2^{2K}a=22K (eqs. (36)–(37)), each sample running the rrr pieces once (eq. (38)). The run-time clause O(24K(n+m)/ε2)O(2^{4K}(n+m)/\varepsilon^2)O(24K(n+m)/ε2) is not formalized (there is no cost model), nor is eq. (10), T(G,A)=Eyf(y)T(G,\mathcal A)=\mathbb E_yf(y)T(G,A)=Ey​f(y): the device runs enter only through the laws run(s)\mathrm{run}(s)run(s), exactly as in the paper's "Note that, for each sss, ts∈[−1,1]t_s\in[-1,1]ts​∈[−1,1] is a random variable with expectation T(G′,As)T(G',\mathcal A_s)T(G′,As​)". The NNN samples are the coordinates of the NNN-fold product of the one-sample law. The estimate is real and T(G,A)T(G,\mathcal A)T(G,A) complex; they are compared in C\mathbb CC.

Preamble
import Mathlib
import Definitions.Def_ClusterSim_EdgeCut_Estimator
Formal statement
namespace ClusterSim.EdgeCut

open MeasureTheory

/-- Theorem 1, p. 9 (stated in the Letter on p. 3), proof pp. 9–10. Let `G` be a tensor network with a
`(K, d)`-clustering into `r` clusters, and suppose that for every `s ∈ [8]^{E_cut}` running the pieces
of the cut network `(G′, A_s)` on the device yields an outcome `t_s` whose law `run s` is a
probability law on `[−1, 1]` with mean `T(G′, A_s)`. Let `0 < ε`, `N = ⌈4·2^{4K}/ε²⌉`.

(a) The average of `N` independent samples of `8^K c_s t_s` (`s` uniform on `[8]^{E_cut}`) is within
`ε` of `T(G, A)` with probability at least `2/3`.

(b) For every `s`, the induced clustering of `(G′, A_s)` has no edge between different clusters, and
each of its `r` clusters needs at most `d` qubits; so each sample runs `r` pieces on a `d`-qubit
device, `N · r` runs in total. -/
theorem theorem_1 {G : TensorNetwork} {r K d : ℕ} (P : Clustering G r) (hP : P.IsClustered K d)
    (run : (P.Ecut → Fin 8) → Measure ℝ) [∀ s, IsProbabilityMeasure (run s)]
    (hrange : ∀ s, ∀ᵐ t ∂(run s), t ∈ Set.Icc (-1 : ℝ) 1)
    (hmean : ∀ s, ((∫ t, t ∂(run s) : ℝ) : ℂ) = value (cut G P.Ecut s))
    {ε : ℝ} (hε : 0 < ε) :
    (2 / 3 : ENNReal) ≤
        Measure.pi (fun _ : Fin (numSamples K ε) => sampleLaw P run)
          {x | ‖((average x : ℝ) : ℂ) - value G‖ < ε} ∧
      ∀ s : P.Ecut → Fin 8,
        (P.cutClustering s).Ecut = ∅ ∧ ∀ i, (P.cutClustering s).qubits i ≤ d := by sorry

end ClusterSim.EdgeCut
Source
Peng, Harrow, Ozols & Wu, Simulating Large Quantum Circuits on a Small Quantum Computer, arXiv:1904.00102v2, p. 9, Theorem 1 (Supplemental Material §IV; stated in the Letter on p. 3), proof pp. 9–10, eqs. (31)–(38)
Human review
  • Endorsed by Shuze Chen · Oct 20, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 20, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me