Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§IV Eqs.(68)–(87): invariant re-uploading blueprint

Open
QAlgorithms.Papers.Independent.Extend50.P01.reupload_invariance

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

prove2quantum

Let a group SSS act on data x∈Xx\in\mathcal Xx∈X, with a unitary representation UsU_sUs​ on nnn qubits. Let E(x)E(x)E(x) be a unitary embedding with E(sx)=UsE(x)Us†E(sx)=U_sE(x)U_s^\daggerE(sx)=Us​E(x)Us†​. For arbitrary parameters θ\thetaθ, choose data-independent unitary blocks W0(θ),…,WL(θ)W_0(\theta),\ldots,W_L(\theta)W0​(θ),…,WL​(θ) commuting with every UsU_sUs​, where L≥0L\ge0L≥0. Let ψ0\psi_0ψ0​ be a unit vector fixed exactly by every UsU_sUs​, and OOO a Hermitian observable with UsOUs†=OU_sOU_s^\dagger=OUs​OUs†​=O. Put C(θ,x)=WLE(x)⋯W1E(x)W0C(\theta,x)=W_LE(x)\cdots W_1E(x)W_0C(θ,x)=WL​E(x)⋯W1​E(x)W0​, ψ=Cψ0\psi=C\psi_0ψ=Cψ0​, and y=Re⁡⟨ψ,Oψ⟩y=\operatorname{Re}\langle\psi,O\psi\rangley=Re⟨ψ,Oψ⟩. Then

C(θ,sx)=UsC(θ,x)Us†,ψ(θ,sx)=Usψ(θ,x),y(θ,sx)=y(θ,x).C(\theta,sx)=U_sC(\theta,x)U_s^\dagger,\quad\psi(\theta,sx)=U_s\psi(\theta,x),\quad y(\theta,sx)=y(\theta,x).C(θ,sx)=Us​C(θ,x)Us†​,ψ(θ,sx)=Us​ψ(θ,x),y(θ,sx)=y(θ,x).

The conjugation channels of each WjW_jWj​ also commute with the symmetry conjugation on every operator. These are sufficient conditions for invariant re-uploading predictions.

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.10–11, Eqs.(68)–(87), recap p.20: sufficient conditions for all parameters and
inputs. The state is exactly fixed and normalized, and the observable is Hermitian. -/
theorem reupload_invariance {S X Theta : Type*} [Group S] [MulAction S X]
    (n L : ℕ) (U : S →* Op n) (hU : ∀ s, U s ∈ Matrix.unitaryGroup (Qubits n) ℂ)
    (E : X → Op n) (hE : ∀ x, E x ∈ Matrix.unitaryGroup (Qubits n) ℂ)
    (hequiv : ∀ s x, E (s • x) = conjugate (U s) (E x))
    (W : Theta → Fin (L + 1) → Op n)
    (hW : ∀ theta j, W theta j ∈ Matrix.unitaryGroup (Qubits n) ℂ)
    (hcomm : ∀ theta j s, Commute (W theta j) (U s))
    (psi0 : EuclideanSpace ℂ (Qubits n)) (hpsi : IsState psi0)
    (hfixed : ∀ s, act (U s) psi0 = psi0)
    (O : Op n) (hO : O.IsHermitian) (hinv : ∀ s, conjugate (U s) O = O) :
    (∀ theta x s,
      reupload (E (s • x)) (List.ofFn (W theta)) = conjugate (U s) (reupload (E x) (List.ofFn (W theta))) ∧
      act (reupload (E (s • x)) (List.ofFn (W theta))) psi0 =
        act (U s) (act (reupload (E x) (List.ofFn (W theta))) psi0) ∧
      expectation O (act (reupload (E (s • x)) (List.ofFn (W theta))) psi0) =
        expectation O (act (reupload (E x) (List.ofFn (W theta))) psi0)) ∧
    (∀ theta j s rho, conjugate (W theta j) (conjugate (U s) rho) =
      conjugate (U s) (conjugate (W theta j) rho)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P01

end
Source
Exploiting symmetry in variational quantum machine learning, arXiv:2205.06217v1, PDF p. 20, §IV Eqs.(68)–(87): invariant re-uploading blueprint
Read-back

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

Let SSS be a group acting on a type XXX, let Θ\ThetaΘ be any parameter type, and let n,Ln,Ln,L be natural numbers. Suppose U:S→M{0,1}n(C)U:S\to M_{\{0,1\}^n}(\mathbb C)U:S→M{0,1}n​(C) satisfies U(1)=IU(1)=IU(1)=I, U(st)=U(s)U(t)U(st)=U(s)U(t)U(st)=U(s)U(t), and unitarity of all its values; suppose E:X→M{0,1}n(C)E:X\to M_{\{0,1\}^n}(\mathbb C)E:X→M{0,1}n​(C) has unitary values and satisfies E(s⋅x)=U(s)E(x)U(s)†E(s\cdot x)=U(s)E(x)U(s)^\daggerE(s⋅x)=U(s)E(x)U(s)† for every s,xs,xs,x; and suppose matrices Wθ,jW_{\theta,j}Wθ,j​, for θ∈Θ\theta\in\Thetaθ∈Θ and j=0,…,Lj=0,\ldots,Lj=0,…,L, are unitary and commute with every U(s)U(s)U(s). Let ψ0∈C{0,1}n\psi_0\in\mathbb C^{\{0,1\}^n}ψ0​∈C{0,1}n satisfy ∥ψ0∥=1\|\psi_0\|=1∥ψ0​∥=1 and U(s)ψ0=ψ0U(s)\psi_0=\psi_0U(s)ψ0​=ψ0​ for every sss, and let OOO be Hermitian with U(s)OU(s)†=OU(s)OU(s)^\dagger=OU(s)OU(s)†=O for every sss. Define Cθ(x)=Wθ,LE(x)⋯Wθ,1E(x)Wθ,0C_\theta(x)=W_{\theta,L}E(x)\cdots W_{\theta,1}E(x)W_{\theta,0}Cθ​(x)=Wθ,L​E(x)⋯Wθ,1​E(x)Wθ,0​, with Cθ(x)=Wθ,0C_\theta(x)=W_{\theta,0}Cθ​(x)=Wθ,0​ when L=0L=0L=0, and define the expectation of OOO in a vector vvv as Re⁡⟨v,Ov⟩\operatorname{Re}\langle v,Ov\rangleRe⟨v,Ov⟩. Then for every θ,x,s\theta,x,sθ,x,s,

Cθ(s⋅x)=U(s)Cθ(x)U(s)†,Cθ(s⋅x)ψ0=U(s)Cθ(x)ψ0,C_\theta(s\cdot x)=U(s)C_\theta(x)U(s)^\dagger,\qquad C_\theta(s\cdot x)\psi_0=U(s)C_\theta(x)\psi_0,Cθ​(s⋅x)=U(s)Cθ​(x)U(s)†,Cθ​(s⋅x)ψ0​=U(s)Cθ​(x)ψ0​, Re⁡⟨Cθ(s⋅x)ψ0, OCθ(s⋅x)ψ0⟩=Re⁡⟨Cθ(x)ψ0, OCθ(x)ψ0⟩.\operatorname{Re}\langle C_\theta(s\cdot x)\psi_0,\, OC_\theta(s\cdot x)\psi_0\rangle = \operatorname{Re}\langle C_\theta(x)\psi_0,\, OC_\theta(x)\psi_0\rangle.Re⟨Cθ​(s⋅x)ψ0​,OCθ​(s⋅x)ψ0​⟩=Re⟨Cθ​(x)ψ0​,OCθ​(x)ψ0​⟩.

Also, for every θ,j,s\theta,j,sθ,j,s and every complex matrix ρ\rhoρ indexed by nnn-bit strings,

Wθ,j(U(s)ρU(s)†)Wθ,j†=U(s)(Wθ,jρWθ,j†)U(s)†.W_{\theta,j}\bigl(U(s)\rho U(s)^\dagger\bigr)W_{\theta,j}^\dagger = U(s)\bigl(W_{\theta,j}\rho W_{\theta,j}^\dagger\bigr)U(s)^\dagger.Wθ,j​(U(s)ρU(s)†)Wθ,j†​=U(s)(Wθ,j​ρWθ,j†​)U(s)†.

The matrix ρ\rhoρ need not be a density matrix; n=0n=0n=0 and L=0L=0L=0 are included, and XXX or Θ\ThetaΘ may be empty.

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