Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Canonical decomposition into commuting signed elementary maps

Open
QAlgorithms.Papers.Independent.Intake100.P22.bistochastic_diagonal_decomposition

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

prove2quantum

Fix a finite number n≥0n\ge0n≥0 of fermionic modes. Let C2n=End⁡(C2n)\mathcal C_{2n}=\operatorname{End}(\mathbb C^{2^n})C2n​=End(C2n) have Hermitian Majorana generators cac_aca​ satisfying cacb+cbca=2δabIc_ac_b+c_bc_a=2\delta_{ab}Ica​cb​+cb​ca​=2δab​I. The symbol map ω\omegaω sends each ordered Majorana monomial linearly to the corresponding ordered Grassmann monomial; it is not multiplicative. Gaussian states, operators, and maps have the meanings of Definitions 1–3 of the paper. All maps act on the full complex operator algebra, including its odd sector.

Let EEE be a bistochastic completely positive Gaussian map. There are canonical unitaries Vl,VrV_l,V_rVl​,Vr​ and real numbers bab_aba​ with ∣ba∣≤1|b_a|\le1∣ba​∣≤1 such that

E=Ad⁡Vl∘E~∘Ad⁡Vr,E~(ca1⋯cak)=(∏j=1kbaj)ca1⋯cakE=\operatorname{Ad}_{V_l}\circ\widetilde E\circ\operatorname{Ad}_{V_r},\qquad \widetilde E(c_{a_1}\cdots c_{a_k})=\left(\prod_{j=1}^k b_{a_j}\right)c_{a_1}\cdots c_{a_k}E=AdVl​​∘E∘AdVr​​,E(ca1​​⋯cak​​)=(j=1∏k​baj​​)ca1​​⋯cak​​

for every ordered monomial, including the identity. Here Ad⁡V(X)=VXV†\operatorname{Ad}_V(X)=VXV^\daggerAdV​(X)=VXV†. The map E~\widetilde EE is the composition of elementary linear maps, one per aaa, which multiply a monomial containing cac_aca​ by bab_aba​ and leave every other monomial fixed; these maps pairwise commute. Signed bab_aba​ are allowed because both canonical rotations lie in SO(2n)SO(2n)SO(2n). This is the fermionic diagonal contraction decomposition.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P22
Formal statement
noncomputable section

open scoped BigOperators Matrix ComplexConjugate ComplexOrder

namespace QAlgorithms.Papers.Independent.Intake100.P22

open QAlgorithms.Papers.Independent.Advance50.P19
  (CARSystem Major monomial wick totalFermionParity)

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

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF pp.10-11: SO canonical maps on both sides of a signed diagonal
contraction. Elementary maps are specified on all monomials and commute;
they are linear maps, not CAR algebra homomorphisms. -/
theorem bistochastic_diagonal_decomposition {n : ℕ} (s : CARSystem n)
    (E : Superop (Qubits n) (Qubits n)) (hE : GaussianMap s E)
    (hbi : Bistochastic E) (hcp : LinearCompletelyPositive E) :
    ∃ (Vl Vr : Op (Qubits n)) (b : Major n → ℝ), IsCanonicalFLO s Vl ∧ IsCanonicalFLO s Vr ∧
      (∀ a, |b a| ≤ 1) ∧
      E = conjSuperop Vl ∘ diagonalMap s b ∘ conjSuperop Vr ∧
      (∀ A : Finset (Major n), diagonalMap s b (basisOp s A) =
        (∏ a ∈ A, (b a : ℂ)) • basisOp s A) ∧
      diagonalMap s b = elementaryComposition s b ∧
      (∀ a c, elementaryMap s a (b a) ∘ elementaryMap s c (b c) =
        elementaryMap s c (b c) ∘ elementaryMap s a (b a)) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P22

end
Source
Lagrangian representation for fermionic linear optics, arXiv:quant-ph/0404180v2, PDF p. 10, §VII: canonical diagonal decomposition of bistochastic CP Gaussian maps
Read-back

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

For every natural number nnn, including 000, let Q={0,1}nQ=\{0,1\}^nQ={0,1}n, J={0,…,2n−1}J=\{0,\ldots,2n-1\}J={0,…,2n−1}, and let s=(ca)s=(c_a)s=(ca​) consist of Hermitian matrices on CQ\mathbb C^QCQ satisfying cacb+cbca=2δabIc_ac_b+c_bc_a=2\delta_{ab}Ica​cb​+cb​ca​=2δab​I. Define cS=∏a∈Sincreasingcac_S=\prod_{a\in S}^{\mathrm{increasing}}c_acS​=∏a∈Sincreasing​ca​, with c∅=Ic_\varnothing=Ic∅​=I, and X^S=2−ntr⁡(cS†X)\widehat X_S=2^{-n}\operatorname{tr}(c_S^\dagger X)XS​=2−ntr(cS†​X). Let EEE be a map on complex Q×QQ\times QQ×Q matrices admitting the following kernel representation: there exist complex J×JJ\times JJ×J matrices AK,BK,DKA_K,B_K,D_KAK​,BK​,DK​, with AKT=−AKA_K^{\mathsf T}=-A_KAKT​=−AK​, DKT=−DKD_K^{\mathsf T}=-D_KDKT​=−DK​, and CK∈CC_K\in\mathbb CCK​∈C, such that EEE is complex linear and

E(X)^(θ)=CK[ηJξJ][exp⁡∧,6n ⁣(i2∑a,b(AK)abθaθb+i∑a,b(BK)abθaηb+i2∑a,b(DK)abηaηb+i∑aηaξa)X^(ξ)]\widehat{E(X)}(\theta) =C_K[\eta_J\xi_J]\left[ \exp_{\wedge,6n}\!\left( \frac{i}{2}\sum_{a,b}(A_K)_{ab}\theta_a\theta_b +i\sum_{a,b}(B_K)_{ab}\theta_a\eta_b +\frac{i}{2}\sum_{a,b}(D_K)_{ab}\eta_a\eta_b +i\sum_a\eta_a\xi_a\right)\widehat X(\xi)\right]E(X)​(θ)=CK​[ηJ​ξJ​]​exp∧,6n​​2i​a,b∑​(AK​)ab​θa​θb​+ia,b∑​(BK​)ab​θa​ηb​+2i​a,b∑​(DK​)ab​ηa​ηb​+ia∑​ηa​ξa​​X(ξ)​

for every XXX, where X^(θ)=∑SX^SθS\widehat X(\theta)=\sum_S\widehat X_S\theta_SX(θ)=∑S​XS​θS​, exterior generators anticommute and square to zero, exp⁡∧,r(q)=∑k=0rqk/k!\exp_{\wedge,r}(q)=\sum_{k=0}^{r}q^k/k!exp∧,r​(q)=∑k=0r​qk/k!, and the bracket extracts the full last two blocks in the order θ,η,ξ\theta,\eta,\xiθ,η,ξ. Assume further that tr⁡E(X)=tr⁡X\operatorname{tr}E(X)=\operatorname{tr}XtrE(X)=trX for every XXX, E(I)=IE(I)=IE(I)=I, and the ordinary extension OE(Z)(x,r),(y,t)=E((Z(u,r),(v,t))u,v)x,y\mathcal O_E(Z)_{(x,r),(y,t)}=E((Z_{(u,r),(v,t)})_{u,v})_{x,y}OE​(Z)(x,r),(y,t)​=E((Z(u,r),(v,t)​)u,v​)x,y​ is positive semidefinite whenever Z⪰0Z\succeq0Z⪰0. Then there exist matrices Vl,VrV_l,V_rVl​,Vr​ on CQ\mathbb C^QCQ and real numbers bab_aba​, a∈Ja\in Ja∈J, with ∣ba∣≤1|b_a|\le1∣ba​∣≤1, such that each VνV_\nuVν​, ν=l,r\nu=l,rν=l,r, has the form

Vν=exp⁡ ⁣(i i4∑a,b(Hν)abcacb)for some real Hν satisfying HνT=−Hν,V_\nu=\exp\!\left(i\,\frac{i}{4} \sum_{a,b}(H_\nu)_{ab}c_ac_b\right) \quad\text{for some real }H_\nu \text{ satisfying }H_\nu^{\mathsf T}=-H_\nu,Vν​=exp​i4i​a,b∑​(Hν​)ab​ca​cb​​for some real Hν​ satisfying HνT​=−Hν​,

and, writing Ad⁡V(X)=VXV†\operatorname{Ad}_V(X)=VXV^\daggerAdV​(X)=VXV† and

Db(X)=∑S⊆JX^S(∏a∈Sba)cS,\mathcal D_b(X)=\sum_{S\subseteq J} \widehat X_S\left(\prod_{a\in S}b_a\right)c_S,Db​(X)=S⊆J∑​XS​(a∈S∏​ba​)cS​,

one has E=Ad⁡Vl∘Db∘Ad⁡VrE=\operatorname{Ad}_{V_l}\circ\mathcal D_b\circ\operatorname{Ad}_{V_r}E=AdVl​​∘Db​∘AdVr​​. For every subset S⊆JS\subseteq JS⊆J, Db(cS)=(∏a∈Sba)cS\mathcal D_b(c_S)=(\prod_{a\in S}b_a)c_SDb​(cS​)=(∏a∈S​ba​)cS​. Moreover, if Da\mathcal D_aDa​ denotes the same sum with multiplier bab_aba​ at coordinate aaa and multiplier 111 at every other coordinate, then

Db=D0∘D1∘⋯∘D2n−1,Da∘Dc=Dc∘Da(a,c∈J).\mathcal D_b=\mathcal D_0\circ\mathcal D_1\circ\cdots\circ\mathcal D_{2n-1}, \qquad \mathcal D_a\circ\mathcal D_c=\mathcal D_c\circ\mathcal D_a \quad(a,c\in J).Db​=D0​∘D1​∘⋯∘D2n−1​,Da​∘Dc​=Dc​∘Da​(a,c∈J).

The composition over no coordinates is the identity map, and all empty products equal 111, so the statement includes n=0n=0n=0.

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