Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Strong simulation of global Jordan–Wigner Gaussian circuits

Open
QAlgorithms.Papers.Independent.Intakethird100.P77.jordanWigner_strongSimulation

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

prove2quantum

Use the Jordan–Wigner generators c2k−1=Z1⋯Zk−1Xkc_{2k-1}=Z_1\cdots Z_{k-1}X_kc2k−1​=Z1​⋯Zk−1​Xk​ and c2k=Z1⋯Zk−1Ykc_{2k}=Z_1\cdots Z_{k-1}Y_kc2k​=Z1​⋯Zk−1​Yk​. Let a uniformly described polynomial-size circuit consist of arbitrary Gaussian gates eiHe^{iH}eiH, where H=i∑μ≠νhμνcμcνH=i\sum_{\mu\ne\nu}h_{\mu\nu}c_\mu c_\nuH=i∑μ=ν​hμν​cμ​cν​ and hhh is real antisymmetric. Let the input be any product of normalized one-qubit states. All quadratic coefficients and input amplitudes are given by effective polynomial-time bit descriptions. There is one deterministic polynomial-time simulator, selected before the input, wire kkk, outcome bbb, and precision mmm, whose dyadic output satisfies

∣q−pb∣≤2−m.|q-p_b|\le2^{-m}.∣q−pb​∣≤2−m.

Gate descriptions, circuit size, and requested precision are charged. These gates may act globally; no locality restriction or Gaussian/parity restriction on the product input is added. The result relies on the bounded-degree observable Zk=−ic2k−1c2kZ_k=-ic_{2k-1}c_{2k}Zk​=−ic2k−1​c2k​.

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 pp.10--11 unnumbered Gaussian simulation result. Product inputs need
not be Gaussian and need not have definite fermionic parity. -/
theorem jordanWigner_strongSimulation (F : JWFamily) (I : ProductInputs F.width)
    (hF : F.Effective) (hI : EffectiveNumbers I.data) :
    StrongSimulation F.width (fun s k b =>
      singleWireProbability (gaussianCircuit (jordanWigner (F.width s)) (F.gates s))
        (prodState (I.factor s)) k b) := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P77

end
Source
Matchgates and classical simulation of quantum circuits, arXiv:0804.4050v2, PDF p. 10, Section 5: arbitrary Jordan–Wigner Gaussian circuits are strongly simulatable
Read-back

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

For every JW family FFF, assigning each finite Boolean string sss a width nsn_sns​ and a finite ordered list h0,…,hLs−1h_0,\ldots,h_{L_s-1}h0​,…,hLs​−1​ of real skew-symmetric 2ns×2ns2n_s\times2n_s2ns​×2ns​ matrices, and every family of input vectors ϕs,k∈C2\phi_{s,k}\in\mathbb C^2ϕs,k​∈C2 satisfying ∥ϕs,k∥=1\|\phi_{s,k}\|=1∥ϕs,k​∥=1, assume that FFF’s structural encoding is polynomial-time computable and that its gate entries and the input-vector entries are polynomial-time approximable. Explicitly, let T(w1,…,wq)\mathcal T(w_1,\ldots,w_q)T(w1​,…,wq​) concatenate 1∣wr∣0wr1^{|w_r|}0w_r1∣wr​∣0wr​, with 1j1^j1j denoting jjj true bits; the structural encoding is T(1ns,1Ls)\mathcal T(1^{n_s},1^{L_s})T(1ns​,1Ls​). The gate data list contains every matrix entry, embedded into C\mathbb CC, in gate order and then increasing row and column order; the input data list contains ϕs,k(false),ϕs,k(true)\phi_{s,k}(\mathrm{false}),\phi_{s,k}(\mathrm{true})ϕs,k​(false),ϕs,k​(true) in increasing wire order. For each of these numerical lists DsD_sDs​, the approximation assumption means that there exists a polynomial-time Boolean-string function whose signed dyadic value on T(s,1j,1m,[b])\mathcal T(s,1^j,1^m,[b])T(s,1j,1m,[b]) differs by at most 2−m2^{-m}2−m from the real component of Ds[j]D_s[j]Ds​[j] when bbb is false and its imaginary component when bbb is true, for every valid jjj and natural mmm. Define c2q=Z⊗q⊗X⊗I⊗(ns−q−1)c_{2q}=Z^{\otimes q}\otimes X\otimes I^{\otimes(n_s-q-1)}c2q​=Z⊗q⊗X⊗I⊗(ns​−q−1) and c2q+1=Z⊗q⊗Y⊗I⊗(ns−q−1)c_{2q+1}=Z^{\otimes q}\otimes Y\otimes I^{\otimes(n_s-q-1)}c2q+1​=Z⊗q⊗Y⊗I⊗(ns​−q−1) for q<nsq<n_sq<ns​, where X=(0110)X=\left(\begin{smallmatrix}0&1\\1&0\end{smallmatrix}\right)X=(01​10​), Y=(0−ii0)Y=\left(\begin{smallmatrix}0&-\mathrm i\\\mathrm i&0\end{smallmatrix}\right)Y=(0i​−i0​), and Z=diag⁡(1,−1)Z=\operatorname{diag}(1,-1)Z=diag(1,−1) in Boolean order. Put

H(h)=i∑i≠jhijcicj,Us=exp⁡(iH(hLs−1))⋯exp⁡(iH(h0)),ψs(x)=∏k=0ns−1ϕs,k(xk).H(h)=\mathrm i\sum_{i\ne j}h_{ij}c_ic_j,\qquad U_s=\exp(\mathrm iH(h_{L_s-1}))\cdots\exp(\mathrm iH(h_0)),\qquad \psi_s(x)=\prod_{k=0}^{n_s-1}\phi_{s,k}(x_k).H(h)=ii=j∑​hij​ci​cj​,Us​=exp(iH(hLs​−1​))⋯exp(iH(h0​)),ψs​(x)=k=0∏ns​−1​ϕs,k​(xk​).

The assertion is that there exists a polynomial-time Boolean-string function fff such that, for every string sss, natural precision mmm, wire k<nsk<n_sk<ns​, and Boolean bbb,

∣dyad⁡m ⁣(f(T(s,1m,1k,[b])))−∑x:xk=b∣(Usψs)(x)∣2∣≤2−m.\left|\operatorname{dyad}_m\!\left(f(\mathcal T(s,1^m,1^k,[b]))\right) -\sum_{x:x_k=b}|(U_s\psi_s)(x)|^2\right|\le 2^{-m}.​dyadm​(f(T(s,1m,1k,[b])))−x:xk​=b∑​∣(Us​ψs​)(x)∣2​≤2−m.

A signed dyadic output uses the first bit as the sign, negative when true, the remaining bits as a most-significant-bit-first binary magnitude, and denominator 2m2^m2m, with an empty output representing zero. Empty gate lists use Us=IU_s=IUs​=I. Zero widths and precision zero are included; at zero width there is no output-wire index and hence no output approximation condition for that string.

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