Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Strong simulation for fixed-degree observables in product-operator CAR representations

Open
QAlgorithms.Papers.Independent.Intakethird100.P77.boundedDegree_strongSimulation

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Fix a degree bound ddd independently of the instance. For each effectively described circuit instance sss, select an existing output wire ksk_sks​. Supply Hermitian CAR generators as products of one-qubit operators, a product of normalized one-qubit input states, and a list of real antisymmetric quadratic Gaussian coefficients. Supply a canonical ordered square-free polynomial PsP_sPs​ representing ZksZ_{k_s}Zks​​ with degree at most ddd. Structure, the selected wire, generator factors, gate coefficients, input amplitudes and PsP_sPs​ have polynomial-time finite descriptions to requested precision. A single deterministic polynomial-time machine, selected before sss, precision mmm and outcome bbb, approximates the selected one-wire probability to error 2−m2^{-m}2−m.

For each length-rrr word in PsP_sPs​, with UsU_sUs​ the circuit and RsR_sRs​ its Heisenberg rotation,

Us†ci1⋯cirUs=∑j1,…,jr(∏a=1r(Rs)iaja)cj1⋯cjr,#tuples=(2ns)r≤(2ns)d.U_s^\dagger c_{i_1}\cdots c_{i_r}U_s=\sum_{j_1,\ldots,j_r}\left(\prod_{a=1}^r(R_s)_{i_a j_a}\right)c_{j_1}\cdots c_{j_r},\qquad \#\text{tuples}=(2n_s)^r\le(2n_s)^d.Us†​ci1​​⋯cir​​Us​=j1​,…,jr​∑​(a=1∏r​(Rs​)ia​ja​​)cj1​​⋯cjr​​,#tuples=(2ns​)r≤(2ns​)d.

The expansion includes repeated indices and the empty word. The supplied polynomial has at most ∑r=0d(2nsr)\sum_{r=0}^d\binom{2n_s}{r}∑r=0d​(r2ns​​) terms. This is a per-monomial count; runtime also charges circuit size, descriptions and precision. Other output wires need no bounded-degree or effective polynomial representation.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P77
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intakethird100.P77

open QAlgorithms

open QAlgorithms.Complexity (Str)

open QAlgorithms.Papers.Independent.Advance50.P19 (Major CARSystem)

open QAlgorithms.Papers.Independent.Information100.P32 (Op)

open scoped BigOperators Matrix ComplexConjugate

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF p.10 Theorem 4: fixed-degree observables on product-operator CAR
representations, for the selected measured wire only. Other Z observables
need not have bounded degree. The tuple bound is per monomial. The total runtime also
includes circuit length, all representation/coefficient descriptions, and m.
The canonical polynomial may have up to the displayed sum of binomial counts. -/
theorem boundedDegree_strongSimulation (d : ℕ) (F : GaussianFamily)
    (I : ProductInputs F.width) (hF : F.Effective)
    (hI : EffectiveNumbers I.data)
    (hdegree : ∀ s, (F.observable s).DegreeLE d) :
    SelectedStrongSimulation (fun s b =>
      singleWireProbability (gaussianCircuit (F.system s).majorana (F.gates s))
        (prodState (I.factor s)) (F.measured s) b) ∧
    (∀ s,
      (F.observable s).terms.length ≤
        ∑ r ∈ Finset.range (d + 1), Nat.choose (2 * F.width s) r) ∧
    (∀ s t, t ∈ (F.observable s).terms →
      Fintype.card (Fin t.1.length → Major (F.width s)) =
        (2 * F.width s) ^ t.1.length ∧
      Fintype.card (Fin t.1.length → Major (F.width s)) ≤ (2 * F.width s) ^ d ∧
      star (gaussianCircuit (F.system s).majorana (F.gates s)) *
          majoranaWord (F.system s).majorana t.1 *
          gaussianCircuit (F.system s).majorana (F.gates s) =
        expandedWord (F.system s).majorana (circuitRotation (F.gates s)) t.1) := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P77

end
Source
Matchgates and classical simulation of quantum circuits, arXiv:0804.4050v2, PDF p. 10, Theorem 4: bounded-degree observable simulation for product-operator CAR representations
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For every natural number ddd, every Gaussian family FFF, and every family of single-qubit vectors ϕs,k∈C2\phi_{s,k}\in\mathbb C^2ϕs,k​∈C2 with ∥ϕs,k∥=1\|\phi_{s,k}\|=1∥ϕs,k​∥=1, indexed by finite Boolean strings sss and wires k<n(s)k<n(s)k<n(s), assume the following effectiveness and degree conditions. The family’s structural code is polynomial-time computable, and its numerical data is effectively approximable; the same numerical approximation condition holds for the input list [ϕs,0(false),ϕs,0(true),…][\phi_{s,0}(\mathrm{false}),\phi_{s,0}(\mathrm{true}),\ldots][ϕs,0​(false),ϕs,0​(true),…]. The structural code encodes, in order, the unary width, unary gate count, unary measured-wire index, and the nested list of unary indices in the observable words. The numerical data lists all four entries of each generator factor, then all real gate-matrix entries as complex numbers, then the observable coefficients, in their respective stored orders. Precisely, for each numerical-data list D(s)D(s)D(s) there is a polynomial-time string function aaa such that, for all valid positions j<∣D(s)∣j<|D(s)|j<∣D(s)∣, natural precisions mmm, and Booleans bbb,

∣dyad⁡m ⁣(a ⁣(tuple⁡[s,1j,1m,[b]]))−{Im⁡D(s)j,b=true,Re⁡D(s)j,b=false∣≤2−m.\left|\operatorname{dyad}_m\!\left(a\!\left(\operatorname{tuple}[s,1^j,1^m,[b]]\right)\right) -\begin{cases}\operatorname{Im}D(s)_j,&b=\mathrm{true},\\ \operatorname{Re}D(s)_j,&b=\mathrm{false} \end{cases}\right|\le2^{-m}.​dyadm​(a(tuple[s,1j,1m,[b]]))−{ImD(s)j​,ReD(s)j​,​b=true,b=false​​≤2−m.

Here tuple encoding prefixes every constituent string by its unary length and a false bit, and dyad⁡m\operatorname{dyad}_mdyadm​ reads the output’s first bit as a negative-sign flag and its remaining bits as a binary magnitude divided by 2m2^m2m, with empty strings representing zero. Assume also that every stored observable word has length at most ddd. To specify the conclusion, fix sss, put n=n(s)n=n(s)n=n(s), and let cic_ici​, i<2ni<2ni<2n, be the family’s Hermitian matrices satisfying cicj+cjci=2δijIc_ic_j+c_jc_i=2\delta_{ij}Ici​cj​+cj​ci​=2δij​I; their entries factor as (ci)x,y=∏k<n(Fi,k)xk,yk(c_i)_{x,y}=\prod_{k<n}(F_{i,k})_{x_k,y_k}(ci​)x,y​=∏k<n​(Fi,k​)xk​,yk​​. The stored observable is a sum ∑(w,α)αcw1⋯cw∣w∣=Zq\sum_{(w,\alpha)}\alpha c_{w_1}\cdots c_{w_{|w|}}=Z_q∑(w,α)​αcw1​​⋯cw∣w∣​​=Zq​, where its words are distinct and strictly increasing, q<nq<nq<n is the measured wire, and ZqZ_qZq​ acts by diag⁡(1,−1)\operatorname{diag}(1,-1)diag(1,−1) on wire qqq and identity elsewhere. For each stored skew-symmetric real matrix hhh, define

Hh=i∑i,j<2ni≠jhijcicj,Gh=eiHh.H_h=\mathrm i\sum_{\substack{i,j<2n\\i\ne j}}h_{ij}c_ic_j,\qquad G_h=e^{\mathrm iH_h}.Hh​=ii,j<2ni=j​∑​hij​ci​cj​,Gh​=eiHh​.

If the gate list is h1,…,hLh_1,\ldots,h_Lh1​,…,hL​, set

Us=GhL⋯Gh1,Rs=e−4hL⋯e−4h1,Ψs(x)=∏k<nϕs,k(xk).U_s=G_{h_L}\cdots G_{h_1},\qquad R_s=e^{-4h_L}\cdots e^{-4h_1},\qquad \Psi_s(x)=\prod_{k<n}\phi_{s,k}(x_k).Us​=GhL​​⋯Gh1​​,Rs​=e−4hL​⋯e−4h1​,Ψs​(x)=k<n∏​ϕs,k​(xk​).

Then there exists a polynomial-time string function fff such that, for every sss, every m∈Nm\in\mathbb Nm∈N, and both Booleans bbb,

∣dyad⁡m ⁣(f(tuple⁡[s,1m,[b]]))−∑x∈{0,1}n(s)xq=b∣(UsΨs)(x)∣2∣≤2−m.\left|\operatorname{dyad}_m\!\left(f(\operatorname{tuple}[s,1^m,[b]])\right) -\sum_{\substack{x\in\{0,1\}^{n(s)}\\x_q=b}}|(U_s\Psi_s)(x)|^2\right|\le2^{-m}.​dyadm​(f(tuple[s,1m,[b]]))−x∈{0,1}n(s)xq​=b​∑​∣(Us​Ψs​)(x)∣2​≤2−m.

Furthermore, for every sss, the number of stored observable terms, including any with zero coefficient, is at most

∑r=0d(2n(s)r).\sum_{r=0}^{d}\binom{2n(s)}r.r=0∑d​(r2n(s)​).

Finally, for every stored term (w,α)(w,\alpha)(w,α), writing r=∣w∣r=|w|r=∣w∣, the set of all functions from {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1} to {0,…,2n−1}\{0,\ldots,2n-1\}{0,…,2n−1} has cardinality (2n)r≤(2n)d(2n)^r\le(2n)^d(2n)r≤(2n)d, and

Us†cw1⋯cwrUs=∑j:{0,…,r−1}→{0,…,2n−1}(∏a=0r−1(Rs)wa+1,j(a))cj(0)⋯cj(r−1).U_s^\dagger c_{w_1}\cdots c_{w_r}U_s = \sum_{j:\{0,\ldots,r-1\}\to\{0,\ldots,2n-1\}} \left(\prod_{a=0}^{r-1}(R_s)_{w_{a+1},j(a)}\right) c_{j(0)}\cdots c_{j(r-1)}.Us†​cw1​​⋯cwr​​Us​=j:{0,…,r−1}→{0,…,2n−1}∑​(a=0∏r−1​(Rs​)wa+1​,j(a)​)cj(0)​⋯cj(r−1)​.

The conclusions include d=0d=0d=0, empty words, empty gate lists, and precision m=0m=0m=0; empty matrix products are identities and empty scalar products are 111. The measured-wire field ensures n(s)>0n(s)>0n(s)>0.

Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 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