Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Near orthogonality of stabilizer tensor powers

Open
QAlgorithms.Papers.Independent.Extend50.P30.stabilizerGramEstimate

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

prove2quantum

Let ddd be prime and n,t≥1n,t\geq1n,t≥1. Choose one normalized vector for each phase-free stabilizer density matrix and construct GS,S′=⟨S∣S′⟩tG_{S,S^\prime}=\langle S|S^\prime\rangle^tGS,S′​=⟨S∣S′⟩t and Q=∑S∣S⟩⊗t⟨S∣⊗tQ=\sum_S|S\rangle^{\otimes t}\langle S|^{\otimes t}Q=∑S​∣S⟩⊗t⟨S∣⊗t. If ϵ=d((n+2)2−t)/2<1/2\epsilon=d^{((n+2)^2-t)/2}<1/2ϵ=d((n+2)2−t)/2<1/2, then GGG is within ϵ\epsilonϵ of the identity in operator norm, the tensor-power vectors are linearly independent, every nonzero eigenvalue of QQQ and Q+Q^+Q+ lies in [1−2ϵ,1+2ϵ][1-2\epsilon,1+2\epsilon][1−2ϵ,1+2ϵ], and the vectors (Q+)1/2∣S⟩⊗t(Q^+)^{1/2}|S\rangle^{\otimes t}(Q+)1/2∣S⟩⊗t are orthonormal. These conclusions are independent of representative phases.

∥G−I∥∞≤ϵ,spec⁡≠0(Q),spec⁡≠0(Q+)⊆[1−2ϵ,1+2ϵ].\|G-I\|_\infty\leq\epsilon,\qquad\operatorname{spec}_{\ne0}(Q),\operatorname{spec}_{\ne0}(Q^+)\subseteq[1-2\epsilon,1+2\epsilon].∥G−I∥∞​≤ϵ,spec=0​(Q),spec=0​(Q+)⊆[1−2ϵ,1+2ϵ].

This gives the source's near orthogonality of stabilizer tensor powers 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 pp.53--54, Lemma 7.1: constructed Gram/frame operators, nonzero spectra, and orthonormalization. -/
theorem stabilizerGramEstimate (d n t : ℕ) [NeZero d] [Fact (Nat.Prime d)]
    (hn : 1 ≤ n) (ht : 1 ≤ t)
    (he : Real.rpow (d : ℝ) ((((n : ℝ) + 2) ^ 2 - t) / 2) < 1 / 2) :
    let epsilon := Real.rpow (d : ℝ) ((((n : ℝ) + 2) ^ 2 - t) / 2)
    let Q := stabilizerFrame d n t
    let P := positivePseudoInverse Q
    QAlgorithms.specNorm (stabilizerGram d n t - 1) ≤ epsilon ∧
    LinearIndependent ℂ (fun S : {S // S ∈ stabilizers d n} => QAlgorithms.tensorPow t (stabilizerVector S.val)) ∧
    (∀ k, QAlgorithms.ascEigenvalues Q k ≠ 0 →
      QAlgorithms.ascEigenvalues Q k ∈ Set.Icc (1 - 2 * epsilon) (1 + 2 * epsilon)) ∧
    (∀ k, QAlgorithms.ascEigenvalues P k ≠ 0 →
      QAlgorithms.ascEigenvalues P k ∈ Set.Icc (1 - 2 * epsilon) (1 + 2 * epsilon)) ∧
    Orthonormal ℂ (fun S : {S // S ∈ stabilizers d n} =>
      QAlgorithms.act (cfc Real.sqrt P) (QAlgorithms.tensorPow t (stabilizerVector S.val))) := 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. 53, lemma-7.1
Read-back

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

For every nonzero prime natural number ddd, natural numbers n,t≥1n,t\ge1n,t≥1, and

ϵ=d((n+2)2−t)/2<12,\epsilon=d^{((n+2)^2-t)/2}<\tfrac12,ϵ=d((n+2)2−t)/2<21​,

where the exponent and power are real, the following assertions hold. Put V=(Z/dZ)nV=(\mathbb Z/d\mathbb Z)^nV=(Z/dZ)n, Dd=2dD_d=2dDd​=2d for even ddd and Dd=dD_d=dDd​=d otherwise, ω=e2πi/d\omega=e^{2\pi i/d}ω=e2πi/d, and τ=(−1)deπi/d\tau=(-1)^de^{\pi i/d}τ=(−1)deπi/d. Define Wa,b(u,w)=τ−∑ja^jb^jω∑ja^ju^jW_{a,b}(u,w)=\tau^{-\sum_j\widehat a_j\widehat b_j}\omega^{\sum_j\widehat a_j\widehat u_j}Wa,b​(u,w)=τ−∑j​aj​bj​ω∑j​aj​uj​ if u=w+bu=w+bu=w+b, and 000 otherwise, and set P={τcWa,b:0≤c<Dd, a,b∈V}\mathcal P=\{\tau^cW_{a,b}:0\le c<D_d,\ a,b\in V\}P={τcWa,b​:0≤c<Dd​, a,b∈V}. For subsets G⊆PG\subseteq\mathcal PG⊆P containing III, closed under multiplication and conjugate transpose, and satisfying A=cIA=cIA=cI, A∈G⇒c=1A\in G\Rightarrow c=1A∈G⇒c=1, put PG=∣G∣−1∑A∈GAP_G=|G|^{-1}\sum_{A\in G}APG​=∣G∣−1∑A∈G​A. Let S\mathcal SS be the finite set of matrices (tr⁡PG)−1PG(\operatorname{tr}P_G)^{-1}P_G(trPG​)−1PG​ that equal vv†vv^\daggervv† for a unit vector vvv, and for each S∈SS\in\mathcal SS∈S let vSv_SvS​ be the normalized vector selected by the definition with S=vSvS†S=v_Sv_S^\daggerS=vS​vS†​. Define

GS,T=⟨vS,vT⟩t,Q=∑S∈SS⊗t,P=f(Q),f(x)=x−1, f(0)=0,G_{S,T}=\langle v_S,v_T\rangle^t,\qquad Q=\sum_{S\in\mathcal S}S^{\otimes t},\qquad P=f(Q),\quad f(x)=x^{-1},\ f(0)=0,GS,T​=⟨vS​,vT​⟩t,Q=S∈S∑​S⊗t,P=f(Q),f(x)=x−1, f(0)=0,

using continuous functional calculus for PPP, and define vS⊗t(x)=∏i<tvS(xi)v_S^{\otimes t}(x)=\prod_{i<t}v_S(x_i)vS⊗t​(x)=∏i<t​vS​(xi​). Then the Euclidean operator norm satisfies ∥G−I∥op≤ϵ\|G-I\|_{\mathrm{op}}\le\epsilon∥G−I∥op​≤ϵ; the family (vS⊗t)S∈S(v_S^{\otimes t})_{S\in\mathcal S}(vS⊗t​)S∈S​ is complex-linearly independent; every nonzero entry of the ascending eigenvalue list of QQQ belongs to [1−2ϵ,1+2ϵ][1-2\epsilon,1+2\epsilon][1−2ϵ,1+2ϵ]; every nonzero entry of the ascending eigenvalue list of PPP belongs to that same closed interval; and the family

(P1/2vS⊗t)S∈S\left(P^{1/2}v_S^{\otimes t}\right)_{S\in\mathcal S}(P1/2vS⊗t​)S∈S​

is orthonormal over C\mathbb CC, with P1/2P^{1/2}P1/2 again defined by continuous functional calculus. The ascending eigenvalue list used here reverses the descending Hermitian eigenvalue list, with multiplicities; its definition gives the all-zero list for a non-Hermitian matrix. The interval assertions explicitly exclude zero eigenvalues.

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