Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§V Eqs.(104)–(109): collective SU(2) generator twirling

Open
QAlgorithms.Papers.Independent.Extend50.P01.heisenberg_twirl

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

prove2quantum

Let N≥2N\ge2N≥2, and average conjugation by V⊗NV^{\otimes N}V⊗N over normalized Haar measure on SU(2)SU(2)SU(2). For distinct sites i,ji,ji,j and any Pauli axis a∈{X,Y,Z}a\in\{X,Y,Z\}a∈{X,Y,Z}, the integrand is integrable and

T(aiaj)=XiXj+YiYj+ZiZj3=−13I+23SWAPij.T(a_ia_j)=\frac{X_iX_j+Y_iY_j+Z_iZ_j}{3}=-\frac13I+\frac23\mathrm{SWAP}_{ij}.T(ai​aj​)=3Xi​Xj​+Yi​Yj​+Zi​Zj​​=−31​I+32​SWAPij​.

The identities act on all spectator wires. Each single-site YiY_iYi​ integrand is also integrable and T(Yi)=0T(Y_i)=0T(Yi​)=0. This gives the exact normalization behind the source's effective isotropic generator, which it states only up to scale and irrelevant scalar identity terms.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P01
Formal statement
noncomputable section

open scoped Matrix Kronecker ComplexConjugate Matrix.Norms.L2Operator Manifold ContDiff

open MeasureTheory

namespace QAlgorithms.Papers.Independent.Extend50.P01

attribute [local instance] Classical.propDecidable Classical.decEq

-- PDF pp.3,8: reuse the accepted operator type, exp(-itH), and A X A†.
-- Notation specializes the imported interfaces without introducing duplicate declarations.

local notation "Op" => (fun n : ℕ => QAlgorithms.Papers.Independent.Information100.P21.Op (Qubits n))

local notation "evolve" => QAlgorithms.Papers.Independent.Information100.P32.evolution

local notation "conjugate" => QAlgorithms.conjSuperop

-- PDF pp.3,10–11: the imported quadratic form is Re(psi† A psi).

local notation "expectation" => QAlgorithms.Papers.Independent.Information100.P21.quad

-- PDF pp.5,16–19: accepted active-wire operator, with identities on all spectators.

local notation "onWire" => QAlgorithms.Papers.Independent.Advance50.P49.onWire

-- PDF p.5: the imported phase-free Pauli tensor uses 0=I,1=X,2=Y,3=Z.

local notation "pauliWord" => QAlgorithms.Papers.Independent.Gap48.P33.pauliWord

local notation "parity" => (fun n : ℕ => QAlgorithms.Papers.Independent.Information100.P69.matrixPower pauliX n)

attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P01.su2MeasurableSpace

attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P01.su2BorelSpace

local notation "collective" => (fun (n : ℕ) (V : SU2) => QAlgorithms.Papers.Independent.Information100.P69.matrixPower (Subtype.val V) n)

/-- PDF p.18, Eqs.(104)–(109): exact normalized value is isotropic interaction divided by 3.
Spectator identities in Eq.(105) are restored, and the source's proportionality is not an equality. -/
theorem heisenberg_twirl (N : ℕ) (hN : 2 ≤ N) (mu : Measure SU2)
    [Measure.IsHaarMeasure mu] [IsProbabilityMeasure mu] :
    (∀ (i j : Fin N), i ≠ j → ∀ a : Fin 3,
      Integrable (fun V => conjugate (collective N V) (onWire i (axis a) * onWire j (axis a))) mu ∧
      collectiveTwirl N mu (onWire i (axis a) * onWire j (axis a)) =
        (1 / 3 : ℂ) • (∑ b : Fin 3, onWire i (axis b) * onWire j (axis b)) ∧
      collectiveTwirl N mu (onWire i (axis a) * onWire j (axis a)) =
        (-1 / 3 : ℂ) • (1 : Op N) + (2 / 3 : ℂ) • wireMatrix (Equiv.swap i j)) ∧
    (∀ i : Fin N,
      Integrable (fun V => conjugate (collective N V) (onWire i pauliY)) mu ∧
      collectiveTwirl N mu (onWire i pauliY) = 0) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P01

end
Source
Exploiting symmetry in variational quantum machine learning, arXiv:2205.06217v1, PDF p. 18, §V Eqs.(104)–(109): collective SU(2) generator twirling
Read-back

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

For every natural number N≥2N\ge2N≥2 and every measure μ\muμ on the Boolean-indexed 2×22\times22×2 complex special unitary group, assuming that μ\muμ is both a Haar measure and a probability measure, let UN(V)\mathcal U_N(V)UN​(V) denote collective N V, let C(V,A)\mathcal C(V,A)C(V,A) denote conjugate V A, and set T(A)=∫C(UN(V),A) dμ(V)\mathcal T(A)=\int\mathcal C(\mathcal U_N(V),A)\,d\mu(V)T(A)=∫C(UN​(V),A)dμ(V); the defining formulas for UN\mathcal U_NUN​ and C\mathcal CC are not supplied. For every pair of distinct wires i,j<Ni,j<Ni,j<N and every axis a∈{X,Y,Z}a\in\{X,Y,Z\}a∈{X,Y,Z}, the theorem asserts integrability of V↦C(UN(V),aiaj)V\mapsto\mathcal C(\mathcal U_N(V),a_i a_j)V↦C(UN​(V),ai​aj​) and

T(aiaj)=13(XiXj+YiYj+ZiZj)=−13I+23Sij,\mathcal T(a_i a_j) =\frac13(X_iX_j+Y_iY_j+Z_iZ_j) =-\frac13I+\frac23S_{ij},T(ai​aj​)=31​(Xi​Xj​+Yi​Yj​+Zi​Zj​)=−31​I+32​Sij​,

where the Pauli operators act as the identity elsewhere and SijS_{ij}Sij​ is the permutation matrix that exchanges bits iii and jjj. It further asserts, for every wire i<Ni<Ni<N, integrability of V↦C(UN(V),Yi)V\mapsto\mathcal C(\mathcal U_N(V),Y_i)V↦C(UN​(V),Yi​) and T(Yi)=0\mathcal T(Y_i)=0T(Yi​)=0.

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

    Confirmed by the moderator at approval.

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