Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Minimal perfectly complete stabilizer projector

Open
QAlgorithms.Papers.Independent.Extend50.P30.minimalStabilizerTest

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

prove2quantum

Let ddd be prime and n,t≥1n,t\geq1n,t≥1. The average of the graph unitaries over the stochastic orthogonal group is the orthogonal projector onto the complex span of all stabilizer tensor powers. This identifies a subspace, not every individual tensor-power vector in it at small ttt.

Πtmin⁡=1∣Ot(d)∣∑O∈Ot(d)R(O)=Pspan⁡{∣S⟩⊗t:S∈Stab(n,d)}.\Pi_t^{\min}=\frac1{|O_t(d)|}\sum_{O\in O_t(d)}R(O)=P_{\operatorname{span}\{|S\rangle^{\otimes t}:S\in\mathrm{Stab}(n,d)\}}.Πtmin​=∣Ot​(d)∣1​O∈Ot​(d)∑​R(O)=Pspan{∣S⟩⊗t:S∈Stab(n,d)}​.

This gives the source's minimal perfectly complete stabilizer projector 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.48, Theorem 5.6: no identification of individual tensor powers is asserted for small t. -/
theorem minimalStabilizerTest (d n t : ℕ) [NeZero d] [Fact (Nat.Prime d)]
    (hn : 1 ≤ n) (ht : 1 ≤ t) :
    IsOrthogonalProjectionOnto (minimalTest d n t) (stabilizerSpan d n t) := 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. 48, theorem-5.6
Read-back

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

For every nonzero prime natural number ddd and natural numbers n,t≥1n,t\ge1n,t≥1, the matrix described below is Hermitian and idempotent, and its range is exactly the indicated complex linear span. Put Vd,r=(Z/dZ)rV_{d,r}=(\mathbb Z/d\mathbb Z)^rVd,r​=(Z/dZ)r, Dd=2dD_d=2dDd​=2d for even ddd and Dd=dD_d=dDd​=d otherwise, ωd=e2πi/d\omega_d=e^{2\pi i/d}ωd​=e2πi/d, and τd=(−1)deπi/d\tau_d=(-1)^de^{\pi i/d}τd​=(−1)deπi/d. Define Wa,b(u,w)W_{a,b}(u,w)Wa,b​(u,w) to be τd−∑ja^jb^jωd∑ja^ju^j\tau_d^{-\sum_j\widehat a_j\widehat b_j}\omega_d^{\sum_j\widehat a_j\widehat u_j}τd−∑j​aj​bj​​ωd∑j​aj​uj​​ when u=w+bu=w+bu=w+b, and 000 otherwise, using least nonnegative residue representatives. Let P={τdcWa,b:0≤c<Dd, a,b∈Vd,n}\mathcal P=\{\tau_d^cW_{a,b}:0\le c<D_d,\ a,b\in V_{d,n}\}P={τdc​Wa,b​:0≤c<Dd​, a,b∈Vd,n​}. For every subset G⊆PG\subseteq\mathcal PG⊆P containing III, closed under products and conjugate transpose, and containing no scalar matrix cIcIcI with c≠1c\ne1c=1, form PG=∣G∣−1∑A∈GAP_G=|G|^{-1}\sum_{A\in G}APG​=∣G∣−1∑A∈G​A and (tr⁡PG)−1PG(\operatorname{tr}P_G)^{-1}P_G(trPG​)−1PG​. Let S\mathcal SS be the set of these latter matrices that equal vv†vv^\daggervv† for a unit vector vvv. Define q(x)=∑i<tx^i2q(x)=\sum_{i<t}\widehat x_i^2q(x)=∑i<t​xi2​ in Z/DdZ\mathbb Z/D_d\mathbb ZZ/Dd​Z, and let O\mathcal OO be the finite set of t×tt\times tt×t matrices OOO over Z/dZ\mathbb Z/d\mathbb ZZ/dZ satisfying q(Ox)=q(x)q(Ox)=q(x)q(Ox)=q(x) for every x∈Vd,tx\in V_{d,t}x∈Vd,t​ and O1=1O\mathbf1=\mathbf1O1=1. No separate invertibility condition occurs in this definition. For ttt-tuples x,yx,yx,y of elements of Vd,nV_{d,n}Vd,n​, set

Kx,y=1∣O∣∑O∈O∏j<n1(xi(j))i<t=O(yi(j))i<t.K_{x,y}=\frac1{|\mathcal O|}\sum_{O\in\mathcal O} \prod_{j<n}\mathbf1_{(x_i(j))_{i<t}=O(y_i(j))_{i<t}}.Kx,y​=∣O∣1​O∈O∑​j<n∏​1(xi​(j))i<t​=O(yi​(j))i<t​​.

Then

K†=K,K2=K,range⁡K=span⁡C{ x⟼∏i<tv(xi):∥v∥=1, vv†∈S }.K^\dagger=K,\qquad K^2=K,\qquad \operatorname{range}K = \operatorname{span}_{\mathbb C} \left\{\,x\longmapsto\prod_{i<t}v(x_i): \|v\|=1,\ vv^\dagger\in\mathcal S\,\right\}.K†=K,K2=K,rangeK=spanC​{x⟼i<t∏​v(xi​):∥v∥=1, vv†∈S}.

Thus the asserted range concerns tensor powers of unit vectors whose rank-one matrices belong to the explicitly constructed finite set S\mathcal SS.

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