Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Hermitian qudit testing involution

Open
QAlgorithms.Papers.Independent.Extend50.P30.quditInvolutionUnitary

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

prove2quantum

Let d≥2d\geq2d≥2, n≥0n\geq0n≥0, and let sss be a nonnegative tensor exponent coprime to ddd. Using the Weyl phases of the source, the operator VsV_sVs​ on 2s2s2s copies is Hermitian and unitary.

Vs=d−n∑x∈Vn(Wx⊗Wx†)⊗s,Vs†=Vs,Vs†Vs=I.V_s=d^{-n}\sum_{x\in\mathcal V_n}(W_x\otimes W_x^\dagger)^{\otimes s},\qquad V_s^\dagger=V_s,\quad V_s^\dagger V_s=I.Vs​=d−nx∈Vn​∑​(Wx​⊗Wx†​)⊗s,Vs†​=Vs​,Vs†​Vs​=I.

This gives the source's hermitian qudit testing involution in the fixed computational-basis and phase conventions.

Formalization Note Pure states carry norm one; stabilizer averages use density matrices to discard global phases. All finite tensor indices are explicitly ordered by copy, then physical qudit.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P30
Formal statement
noncomputable section

open scoped BigOperators ComplexConjugate Matrix

namespace QAlgorithms.Papers.Independent.Extend50.P30

open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)

open QAlgorithms.Papers.Independent.Gap20.P06 (ketBra)

attribute [local instance] Classical.propDecidable

/-- PDF p.24, Lemma 3.8: s is a natural tensor exponent, invertible modulo d. -/
theorem quditInvolutionUnitary (d n s : ℕ) [NeZero d] (hd : 2 ≤ d) (hs : Nat.Coprime s d) :
    (quditInvolution d n s).IsHermitian ∧
      quditInvolution d n s ∈ Matrix.unitaryGroup (QuditCopies d n (2 * s)) ℂ := by sorry

end QAlgorithms.Papers.Independent.Extend50.P30

end
Source
Schur-Weyl Duality for the Clifford Group with Applications: Property Testing, a Robust Hudson Theorem, and de Finetti Representations, arXiv:1712.08628v3, PDF p. 24, lemma-3.8
Read-back

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

For natural numbers d,n,sd,n,sd,n,s, assume d≠0d\ne0d=0, d≥2d\ge2d≥2, and gcd⁡(s,d)=1\gcd(s,d)=1gcd(s,d)=1. Put V=(Z/dZ)nV=(\mathbb Z/d\mathbb Z)^nV=(Z/dZ)n, ωd=e2πi/d\omega_d=e^{2\pi i/d}ωd​=e2πi/d, and τd=(−1)deπi/d\tau_d=(-1)^d e^{\pi i/d}τd​=(−1)deπi/d. For x=(p,q)∈V×Vx=(p,q)\in V\times Vx=(p,q)∈V×V, define the matrix WxW_xWx​, indexed by a,b∈Va,b\in Va,b∈V, by

Wx(a,b)={τd−∑j[pj][qj]ωd∑j[pj][aj],a=b+q,0,a≠b+q,W_x(a,b)= \begin{cases} \tau_d^{-\sum_j[p_j][q_j]}\omega_d^{\sum_j[p_j][a_j]},&a=b+q,\\ 0,&a\ne b+q, \end{cases}Wx​(a,b)={τd−∑j​[pj​][qj​]​ωd∑j​[pj​][aj​]​,0,​a=b+q,a=b+q,​

where brackets denote representatives in {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, and addition of register values is modulo ddd. Define a matrix JJJ, indexed by 2s2s2s-tuples u,v∈V2su,v\in V^{2s}u,v∈V2s, by

J(u,v)=d−n∑x∈V×V∏j=02s−1{Wx(uj,vj),j even,Wx†(uj,vj),j odd.J(u,v)=d^{-n}\sum_{x\in V\times V} \prod_{j=0}^{2s-1} \begin{cases} W_x(u_j,v_j),&j\text{ even},\\ W_x^\dagger(u_j,v_j),&j\text{ odd}. \end{cases}J(u,v)=d−nx∈V×V∑​j=0∏2s−1​{Wx​(uj​,vj​),Wx†​(uj​,vj​),​j even,j odd.​

Then JJJ is Hermitian and unitary: J†=JJ^\dagger=JJ†=J and J†J=JJ†=IJ^\dagger J=JJ^\dagger=IJ†J=JJ†=I. The quantifiers allow n=0n=0n=0, when register sets are singletons and JJJ is the one-dimensional identity; the assumptions exclude s=0s=0s=0.

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

    Confirmed by the moderator at approval.

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