Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§II p.5: d+1 commuting features on d qubits

Open
QAlgorithms.Papers.Independent.Extend50.P01.additional_feature

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

prove2quantum

Let d≥2d\ge2d≥2, retain all local generators Z1,…,ZdZ_1,\ldots,Z_dZ1​,…,Zd​, and consider unsigned Pauli words that commute with every local ZiZ_iZi​ and are invariant under all wire permutations. Among words distinct from identity and all retained generators, the unique possibility is Zall=∏iZiZ_{\rm all}=\prod_i Z_iZall​=∏i​Zi​. For the resulting d+1d+1d+1-feature exponential embedding, put Ci=∏j≠iCNOTj→iC_i=\prod_{j\ne i}\mathrm{CNOT}_{j\to i}Ci​=∏j=i​CNOTj→i​. Then

CiZiCi†=Zall,CiZallCi†=Zi,C_iZ_iC_i^\dagger=Z_{\rm all},\qquad C_iZ_{\rm all}C_i^\dagger=Z_i,Ci​Zi​Ci†​=Zall​,Ci​Zall​Ci†​=Zi​,

while the other local ZjZ_jZj​ are fixed. These swaps and wire permutations give an ordinary unitary representation implementing all feature permutations. The embedding is equivariant for that representation.

Formalization Note The source reverses the CNOT controls and targets; the corrected direction above realizes the asserted exchange.

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 p.5: additional commuting feature. SOURCE CORRECTION: the printed CNOTs control i
and target all other wires, fixing Z_i. Reversing these controls exchanges Z_i and Z_all. -/
theorem additional_feature (d : ℕ) (hd : 2 ≤ d) :
    (∀ a : Fin d → Fin 4,
      ((∀ i, Commute (pauliWord a) (onWire i pauliZ)) ∧
       (∀ s : Equiv.Perm (Fin d), conjugate (wireMatrix s) (pauliWord a) = pauliWord a) ∧
       pauliWord a ≠ 1 ∧ (∀ i, pauliWord a ≠ onWire i pauliZ)) ↔ a = fun _ => 3) ∧
    (∀ i : Fin d, extraSwap i ∈ Matrix.unitaryGroup (Qubits d) ℂ ∧
      ∀ k : Fin (d + 1), conjugate (extraSwap i) (extraGenerator k) =
        extraGenerator ((Equiv.swap i.castSucc (Fin.last d)) k)) ∧
    (∀ (i : Fin d) (x : Fin (d + 1) → ℝ),
      extraEncoding (featurePullback (Equiv.swap i.castSucc (Fin.last d)) x) =
        conjugate (extraSwap i) (extraEncoding x)) ∧
    (∃ V : Equiv.Perm (Fin (d + 1)) →* Matrix.unitaryGroup (Qubits d) ℂ,
      ∀ s x, extraEncoding (featurePullback s x) = conjugate (V s).val (extraEncoding x)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P01

end
Source
Exploiting symmetry in variational quantum machine learning, arXiv:2205.06217v1, PDF p. 5, §II p.5: d+1 commuting features on d qubits
Read-back

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

For every natural number d≥2d\ge2d≥2, let ZiZ_iZi​ denote Pauli ZZZ on bit iii and identity on the other bits, let ZallZ_{\mathrm{all}}Zall​ be the diagonal matrix with entry ∏i<d(−1)bi\prod_{i<d}(-1)^{b_i}∏i<d​(−1)bi​ at bit string bbb, and put Hk=ZkH_k=Z_kHk​=Zk​ for k<dk<dk<d and Hd=ZallH_d=Z_{\mathrm{all}}Hd​=Zall​. For a word a:{0,…,d−1}→{0,1,2,3}a:\{0,\ldots,d-1\}\to\{0,1,2,3\}a:{0,…,d−1}→{0,1,2,3}, put Pa=⨂iσaiP_a=\bigotimes_i\sigma_{a_i}Pa​=⨂i​σai​​, where (σ0,σ1,σ2,σ3)=(I,X,Y,Z)(\sigma_0,\sigma_1,\sigma_2,\sigma_3)=(I,X,Y,Z)(σ0​,σ1​,σ2​,σ3​)=(I,X,Y,Z), and let WsW_sWs​ send ∣b⟩|b\rangle∣b⟩ to ∣b∘s−1⟩|b\circ s^{-1}\rangle∣b∘s−1⟩. The declaration asserts that, for every aaa, the conjunction that PaP_aPa​ commutes with every ZiZ_iZi​, satisfies WsPaWs†=PaW_sP_aW_s^\dagger=P_aWs​Pa​Ws†​=Pa​ for every wire permutation sss, differs from III, and differs from every ZiZ_iZi​, holds if and only if ai=3a_i=3ai​=3 for every iii. For each i<di<di<d, let TiT_iTi​ send ∣b⟩|b\rangle∣b⟩ to the basis vector whose bits other than iii equal those of bbb and whose bit iii is bi⊕⨁j≠ibjb_i\mathbin{\oplus}\bigoplus_{j\ne i}b_jbi​⊕⨁j=i​bj​; then TiT_iTi​ is unitary and

TiHkTi†=Hτi(k)(k=0,…,d),T_iH_kT_i^\dagger=H_{\tau_i(k)} \quad(k=0,\ldots,d),Ti​Hk​Ti†​=Hτi​(k)​(k=0,…,d),

where τi\tau_iτi​ swaps iii and ddd. Writing E(x)=exp⁡(−i∑k=0dxkHk/2)E(x)=\exp(-\mathrm i\sum_{k=0}^d x_kH_k/2)E(x)=exp(−i∑k=0d​xk​Hk​/2), it further asserts E(x∘τi−1)=TiE(x)Ti†E(x\circ\tau_i^{-1})=T_iE(x)T_i^\daggerE(x∘τi−1​)=Ti​E(x)Ti†​ for every i,xi,xi,x, and the existence of an identity-preserving multiplicative map VVV from permutations of {0,…,d}\{0,\ldots,d\}{0,…,d} to unitaries on ddd bits such that E(x∘s−1)=VsE(x)Vs†E(x\circ s^{-1})=V_sE(x)V_s^\daggerE(x∘s−1)=Vs​E(x)Vs†​ for every permutation sss and every real vector xxx.

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