Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix C: stabilizer/nullifier construction from passive optics

Open
QAlgorithms.Papers.Independent.Intake100.P30.passive_optics_nullifier_parametrization

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let rjr_jrj​ be real squeezing parameters, D=diag⁡(e−2rj)D=\operatorname{diag}(e^{-2r_j})D=diag(e−2rj​), and let L=X+iYL=X+iYL=X+iY be a complex unitary matrix with real X,YX,YX,Y. In the passive stabilizer conjugation convention of Appendix C, put

A=X+iDY,B=iDX−Y,Z=A−1B.A=X+iDY,\qquad B=iDX-Y,\qquad Z=A^{-1}B.A=X+iDY,B=iDX−Y,Z=A−1B.

Then AAA is invertible, ZZZ is a valid Gaussian graph, and the corresponding actual Gaussian wavefunction is annihilated by Ap−BqAp-BqAp−Bq. Conversely, every valid nnn-mode graph has such parameters. Multiplication by DDD is on the left. The passive conjugation is the inverse of the forward Heisenberg convention used for state evolution; no uniqueness of the parameters is asserted.

There exists an actual Gaussian unitary with forward Heisenberg matrix \begin{psmallmatrix}X^T&Y^T\\-Y^T&X^T\end{psmallmatrix}, the inverse of (C12), which sends every normalized squeezed-input state with graph iDiDiD to a state represented by ZZZ. This ties the coefficient calculation to the prepared state.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P30
Formal statement
noncomputable section

open MeasureTheory Filter

open scoped BigOperators ENNReal ComplexOrder Matrix.Norms.Frobenius Topology

open QAlgorithms.Papers.Independent.Dependency50.P10 (Phase complexify sigma)

namespace QAlgorithms.Papers.Independent.Intake100.P30

open QAlgorithms.Papers.Independent.Claimed50.P41
  (Schrodinger gaussianWave IsCenteredGaussianFunction quadratureFunction waveMean waveCovariance displacedFunction IsImplementer)

/-- PDF pp.23–24, (C13)–(C17): left-row squeezing and passive
stabilizer conjugation give Z=A^{-1}B; the inverse conjugation convention is
retained rather than replaced by the forward state-evolution convention.
The passive Gaussian unitary is asserted to exist and sends every squeezed-input
representative to the graph A^{-1}B. Its Heisenberg matrix is the inverse of
(C12), namely [[X^T,Y^T],[-Y^T,X^T]], since (C11) conjugates operators by U.
Every allowed graph is covered; parameters need not be independent or unique. -/
theorem passive_optics_nullifier_parametrization (n : ℕ) :
    (∀ (r : Fin n → ℝ) (X Y : Matrix (Fin n) (Fin n) ℝ),
      (complexify X + Complex.I • complexify Y).conjTranspose *
        (complexify X + Complex.I • complexify Y) = 1 →
      let A := passiveA r X Y
      let B := passiveB r X Y
      let Z := A⁻¹ * B
      IsUnit A.det ∧ ValidGraph Z ∧
      (∃ Uop : Schrodinger n ≃ₗᵢ[ℂ] Schrodinger n,
        IsImplementer (Matrix.fromBlocks X.transpose Y.transpose (-Y.transpose) X.transpose) Uop ∧
        ∀ psi : Schrodinger n,
          GaussianGraphRepresents
            (Complex.I • complexify (Matrix.diagonal (fun j => Real.exp (-2*r j)))) psi →
          GaussianGraphRepresents Z (Uop psi)) ∧
      (∀ j q,
        let f := gaussianWave (imagPart Z) (-realPart Z)
        (∑ k, A j k * quadratureFunction (Sum.inr k) f q) -
          (∑ k, B j k * quadratureFunction (Sum.inl k) f q) = 0)) ∧
    (∀ Z : Matrix (Fin n) (Fin n) ℂ, ValidGraph Z →
      ∃ (r : Fin n → ℝ) (X Y : Matrix (Fin n) (Fin n) ℝ),
        (complexify X + Complex.I • complexify Y).conjTranspose *
          (complexify X + Complex.I • complexify Y) = 1 ∧
        Z = (passiveA r X Y)⁻¹ * passiveB r X Y) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P30

end
Source
Graphical calculus for Gaussian pure states, arXiv:1007.0725v3, PDF p. 23, Appendix C: stabilizer/nullifier construction from passive optics
Read-back

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

For every natural number nnn, write J={0,…,n−1}J=\{0,\ldots,n-1\}J={0,…,n−1}, regard real matrices as complex matrices by entrywise inclusion, and let H=L2(RJ,C)\mathcal H=L^2(\mathbb R^J,\mathbb C)H=L2(RJ,C) with Lebesgue measure. For a function f:RJ→Cf:\mathbb R^J\to\mathbb Cf:RJ→C, define Qjf(q)=qjf(q)Q_jf(q)=q_jf(q)Qj​f(q)=qj​f(q) and Pjf(q)=−i Df(q)[ej]P_jf(q)=-i\,Df(q)[e_j]Pj​f(q)=−iDf(q)[ej​], using the real Fréchet derivative, and define the complex matrices

M(f)jk=∫RJQjf(q)‾ Qkf(q) dq,N(f)jk=∫RJQjf(q)‾ Pkf(q) dq.M(f)_{jk}=\int_{\mathbb R^J}\overline{Q_jf(q)}\,Q_kf(q)\,dq, \qquad N(f)_{jk}=\int_{\mathbb R^J}\overline{Q_jf(q)}\,P_kf(q)\,dq.M(f)jk​=∫RJ​Qj​f(q)​Qk​f(q)dq,N(f)jk​=∫RJ​Qj​f(q)​Pk​f(q)dq.

Say that a complex matrix WWW represents ψ∈H\psi\in\mathcal Hψ∈H if there exist real n×nn\times nn×n matrices u,vu,vu,v, a nonzero c∈Cc\in\mathbb Cc∈C, and a function fff such that uuu is positive definite, vT=vv^T=vvT=v,

f(q)=cexp⁡ ⁣(−12∑j,k∈Jqj(ujk+ivjk)qk)for every q,f∈L2,∫RJ∣f(q)∣2 dq=1,f(q)=c\exp\!\left(-\frac12\sum_{j,k\in J}q_j(u_{jk}+iv_{jk})q_k\right) \quad\text{for every }q,\qquad f\in L^2,\qquad \int_{\mathbb R^J}|f(q)|^2\,dq=1,f(q)=cexp​−21​j,k∈J∑​qj​(ujk​+ivjk​)qk​​for every q,f∈L2,∫RJ​∣f(q)∣2dq=1,

the representative of ψ\psiψ equals fff almost everywhere, and W=M(f)−1N(f)W=M(f)^{-1}N(f)W=M(f)−1N(f). The assertion is the conjunction of the following two statements. First, for every r:J→Rr:J\to\mathbb Rr:J→R and all real n×nn\times nn×n matrices X,YX,YX,Y satisfying (X+iY)∗(X+iY)=In(X+iY)^*(X+iY)=I_n(X+iY)∗(X+iY)=In​, put

D=diag⁡(e−2rj),A=X+iDY,B=iDX−Y,Z=A−1B.D=\operatorname{diag}(e^{-2r_j}),\qquad A=X+iDY,\qquad B=iDX-Y,\qquad Z=A^{-1}B.D=diag(e−2rj​),A=X+iDY,B=iDX−Y,Z=A−1B.

Then det⁡A≠0\det A\ne0detA=0, ZT=ZZ^T=ZZT=Z, and the entrywise imaginary part Im⁡Z\operatorname{Im}ZImZ is positive definite. Moreover, there exists a surjective complex linear isometry Uop:H→HU_{\mathrm{op}}:\mathcal H\to\mathcal HUop​:H→H with the following displacement property: setting

S=(XTYT−YTXT),(Wzg)(q)=exp⁡ ⁣(i∑j∈Jzp,j(qj−zq,j2))g(q−zq)(z=(zq,zp)∈RJ⊕RJ),S=\begin{pmatrix}X^T&Y^T\\-Y^T&X^T\end{pmatrix}, \qquad (\mathcal W_zg)(q)= \exp\!\left(i\sum_{j\in J}z_{p,j}\left(q_j-\frac{z_{q,j}}2\right)\right) g(q-z_q) \quad(z=(z_q,z_p)\in\mathbb R^J\oplus\mathbb R^J),S=(XT−YT​YTXT​),(Wz​g)(q)=exp​ij∈J∑​zp,j​(qj​−2zq,j​​)​g(q−zq​)(z=(zq​,zp​)∈RJ⊕RJ),

for every zzz and every ψ∈H\psi\in\mathcal Hψ∈H, there exists ϕ∈H\phi\in\mathcal Hϕ∈H whose representative equals Wzψ\mathcal W_z\psiWz​ψ almost everywhere and whose image UopϕU_{\mathrm{op}}\phiUop​ϕ equals WSz(Uopψ)\mathcal W_{Sz}(U_{\mathrm{op}}\psi)WSz​(Uop​ψ) almost everywhere. This same UopU_{\mathrm{op}}Uop​ satisfies, for every ψ∈H\psi\in\mathcal Hψ∈H, that if iDiDiD represents ψ\psiψ in the sense just defined, then ZZZ represents UopψU_{\mathrm{op}}\psiUop​ψ. In addition, writing H=Im⁡ZH=\operatorname{Im}ZH=ImZ, V=Re⁡ZV=\operatorname{Re}ZV=ReZ, and

fZ(q)=π−n/4(det⁡H)1/4exp⁡ ⁣(−12∑j,k∈Jqj(Hjk−iVjk)qk),f_Z(q)=\pi^{-n/4}(\det H)^{1/4} \exp\!\left(-\frac12\sum_{j,k\in J}q_j(H_{jk}-iV_{jk})q_k\right),fZ​(q)=π−n/4(detH)1/4exp​−21​j,k∈J∑​qj​(Hjk​−iVjk​)qk​​,

one has, for every j∈Jj\in Jj∈J and every q∈RJq\in\mathbb R^Jq∈RJ,

∑k∈JAjkPkfZ(q)−∑k∈JBjkQkfZ(q)=0.\sum_{k\in J}A_{jk}P_kf_Z(q)-\sum_{k\in J}B_{jk}Q_kf_Z(q)=0.k∈J∑​Ajk​Pk​fZ​(q)−k∈J∑​Bjk​Qk​fZ​(q)=0.

Second, for every complex n×nn\times nn×n matrix ZZZ satisfying ZT=ZZ^T=ZZT=Z and Im⁡Z>0\operatorname{Im}Z>0ImZ>0, there exist r:J→Rr:J\to\mathbb Rr:J→R and real matrices X,YX,YX,Y such that

(X+iY)∗(X+iY)=In,Z=(X+iDY)−1(iDX−Y),D=diag⁡(e−2rj).(X+iY)^*(X+iY)=I_n,\qquad Z=(X+iDY)^{-1}(iDX-Y), \qquad D=\operatorname{diag}(e^{-2r_j}).(X+iY)∗(X+iY)=In​,Z=(X+iDY)−1(iDX−Y),D=diag(e−2rj​).

The matrix inverses used here are the total matrix inverse operation, also defined on singular matrices; the first statement explicitly asserts that AAA is invertible. No positivity restriction is imposed on the values of rrr, and n=0n=0n=0 is included: the coordinate index set is then empty, sums are empty, determinants of the empty matrices are 111, and the pointwise identities quantified over jjj are vacuous.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 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