Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Abstract / §III: generator symmetrization constructs equivariant ansatz circuits

Open
QAlgorithms.Papers.Independent.Extend50.P01.generator_symmetrization

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

prove2quantum

Let SSS be a finite group represented unitarily by UsU_sUs​ on nnn qubits. Let G1,…,GkG_1,\ldots,G_kG1​,…,Gk​ be Hermitian generators, with arbitrary real angles θj\theta_jθj​. Define T(G)=∣S∣−1∑sUsGUs†T(G)=|S|^{-1}\sum_s U_sGU_s^\daggerT(G)=∣S∣−1∑s​Us​GUs†​. Then each T(Gj)T(G_j)T(Gj​) is Hermitian, each e−iθjT(Gj)e^{-i\theta_jT(G_j)}e−iθj​T(Gj​) is unitary, and

[e−iθjT(Gj),Us]=0,[e−iθkT(Gk)⋯e−iθ1T(G1),Us]=0.[e^{-i\theta_jT(G_j)},U_s]=0,\qquad [e^{-i\theta_kT(G_k)}\cdots e^{-i\theta_1T(G_1)},U_s]=0.[e−iθj​T(Gj​),Us​]=0,[e−iθk​T(Gk​)⋯e−iθ1​T(G1​),Us​]=0.

The ordered product is also unitary. Zero twirls are retained and generate identity gates. This constructs the equivariant counterpart of the complete ansatz, without a universality or resource improvement claim.

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

/-- PDF pp.1,8–10, Eq.(54): equivariant gates and complete ordered ansatz products.
Zero twirls remain in the list. -/
theorem generator_symmetrization {S : Type*} [Group S] [Fintype S]
    (n k : ℕ) (U : S →* Op n) (hU : ∀ s, U s ∈ Matrix.unitaryGroup (Qubits n) ℂ)
    (G : Fin k → Op n) (hG : ∀ j, (G j).IsHermitian) (theta : Fin k → ℝ) :
    (∀ j, (finiteTwirl U (G j)).IsHermitian ∧
      evolve (finiteTwirl U (G j)) (theta j) ∈ Matrix.unitaryGroup (Qubits n) ℂ ∧
      ∀ s, Commute (evolve (finiteTwirl U (G j)) (theta j)) (U s)) ∧
    orderedProd (fun j => evolve (finiteTwirl U (G j)) (theta j)) ∈
      Matrix.unitaryGroup (Qubits n) ℂ ∧
    ∀ s, Commute (orderedProd (fun j => evolve (finiteTwirl U (G j)) (theta j))) (U s) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P01

end
Source
Exploiting symmetry in variational quantum machine learning, arXiv:2205.06217v1, PDF p. 1, Abstract / §III: generator symmetrization constructs equivariant ansatz circuits
Read-back

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

For every finite group SSS, including its specified group and finite enumeration structures, all natural numbers n,kn,kn,k, every multiplicative identity-preserving map U:S→Mat⁡{0,1}n(C)U:S\to\operatorname{Mat}_{\{0,1\}^n}(\mathbb C)U:S→Mat{0,1}n​(C) such that each UsU_sUs​ is unitary, every family of Hermitian matrices (Gj)j<k(G_j)_{j<k}(Gj​)j<k​ on those bit strings, and every family of real numbers (θj)j<k(\theta_j)_{j<k}(θj​)j<k​, define

G‾j=1∣S∣∑s∈SUsGjUs†,Vj=exp⁡(−iθjG‾j).\overline G_j=\frac1{|S|}\sum_{s\in S}U_sG_jU_s^\dagger, \qquad V_j=\exp(-\mathrm i\theta_j\overline G_j).Gj​=∣S∣1​s∈S∑​Us​Gj​Us†​,Vj​=exp(−iθj​Gj​).

Then each G‾j\overline G_jGj​ is Hermitian, each VjV_jVj​ is unitary, and VjUs=UsVjV_jU_s=U_sV_jVj​Us​=Us​Vj​ for every s∈Ss\in Ss∈S; moreover, the reversed product Vk−1⋯V0V_{k-1}\cdots V_0Vk−1​⋯V0​ is unitary and commutes with every UsU_sUs​. A group is nonempty, so ∣S∣>0|S|>0∣S∣>0; n=0n=0n=0 and k=0k=0k=0 are allowed, with the product for k=0k=0k=0 equal to the identity.

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