Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Nonzero proportionality of compressed stabilizer moments

Open
QAlgorithms.Papers.Independent.Extend50.P30.momentCompression

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

prove2quantum

Let ddd be prime, t≥1t\geq1t≥1, and N≥n>0N\geq n>0N≥n>0. Write Mn,tM_{n,t}Mn,t​ for the uniform pure-stabilizer density moment. Compress the last N−nN-nN−n physical qudits in each copy onto the computational zero state. The resulting operator and Mn,tM_{n,t}Mn,t​ are both nonzero and positively proportional; the source does not specify the proportionality constant.

(I⊗⟨0∣⊗(N−n)t)MN,t(I⊗∣0⟩⊗(N−n)t)=cMn,t,c>0.(I\otimes\langle0|^{\otimes(N-n)t})M_{N,t}(I\otimes|0\rangle^{\otimes(N-n)t})=cM_{n,t},\qquad c>0.(I⊗⟨0∣⊗(N−n)t)MN,t​(I⊗∣0⟩⊗(N−n)t)=cMn,t​,c>0.

This gives the source's nonzero proportionality of compressed stabilizer moments 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.46, Lemma 5.2: both operators are nonzero and the proportionality scalar is positive. -/
theorem momentCompression (d N n t : ℕ) [NeZero d] [Fact (Nat.Prime d)]
    (ht : 1 ≤ t) (hn : 0 < n) (hN : n ≤ N) :
    compressZero hN (stabilizerMoment d N t) ≠ 0 ∧ stabilizerMoment d n t ≠ 0 ∧
    ∃ c : ℝ, 0 < c ∧ compressZero hN (stabilizerMoment d N t) =
      (c : ℂ) • stabilizerMoment 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. 46, lemma-5.2
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,n,tN,n,tN,n,t satisfying t≥1t\ge1t≥1 and 0<n≤N0<n\le N0<n≤N, define the following matrices for each register length mmm. Put Vm=(Z/dZ)mV_m=(\mathbb Z/d\mathbb Z)^mVm​=(Z/dZ)m, ω=e2πi/d\omega=e^{2\pi i/d}ω=e2πi/d, τ=(−1)deπi/d\tau=(-1)^d e^{\pi i/d}τ=(−1)deπi/d, and D=2dD=2dD=2d for even ddd, D=dD=dD=d otherwise. For a,b,x,y∈Vma,b,x,y\in V_ma,b,x,y∈Vm​, let Wa,b(x,y)W_{a,b}(x,y)Wa,b​(x,y) be zero unless x=y+bx=y+bx=y+b, in which case it equals τ−∑jaj~bj~ω∑jaj~xj~\tau^{-\sum_j\widetilde{a_j}\widetilde{b_j}}\omega^{\sum_j\widetilde{a_j}\widetilde{x_j}}τ−∑j​aj​​bj​​ω∑j​aj​​xj​​, using canonical representatives modulo ddd. Let Pm={τrWa,b:0≤r<D, a,b∈Vm}\mathcal P_m=\{\tau^rW_{a,b}:0\le r<D,\ a,b\in V_m\}Pm​={τrWa,b​:0≤r<D, a,b∈Vm​}. Consider every subset G⊆PmG\subseteq\mathcal P_mG⊆Pm​ which contains the identity, is closed under matrix multiplication and conjugate transpose, and satisfies A=cI⇒c=1A=cI\Rightarrow c=1A=cI⇒c=1 for every A∈GA\in GA∈G and every c∈Cc\in\mathbb Cc∈C. For each such GGG, put PG=∣G∣−1∑A∈GAP_G=|G|^{-1}\sum_{A\in G}APG​=∣G∣−1∑A∈G​A, and form the set Sm\mathcal S_mSm​ of distinct matrices (tr⁡PG)−1PG(\operatorname{tr}P_G)^{-1}P_G(trPG​)−1PG​ that equal vv†vv^\daggervv† for some vector v∈CVmv\in\mathbb C^{V_m}v∈CVm​ with ∥v∥=1\|v\|=1∥v∥=1. Define Mm,t=∣Sm∣−1∑S∈SmS⊗tM_{m,t}=|\mathcal S_m|^{-1}\sum_{S\in\mathcal S_m}S^{\otimes t}Mm,t​=∣Sm​∣−1∑S∈Sm​​S⊗t, where S⊗t(x,y)=∏i=0t−1S(xi,yi)S^{\otimes t}(x,y)=\prod_{i=0}^{t-1}S(x_i,y_i)S⊗t(x,y)=∏i=0t−1​S(xi​,yi​); all inverses here are total complex inverses, with 0−1=00^{-1}=00−1=0, so an empty averaging set would give zero. For a matrix AAA on VNtV_N^tVNt​, define its compression CN→n(A)(x,y)=A(x^,y^)C_{N\to n}(A)(x,y)=A(\widehat x,\widehat y)CN→n​(A)(x,y)=A(x,y​), where each x^i∈VN\widehat x_i\in V_Nxi​∈VN​ extends xi∈Vnx_i\in V_nxi​∈Vn​ by zero in coordinates n,…,N−1n,\ldots,N-1n,…,N−1, and similarly for yyy. Then CN→n(MN,t)≠0C_{N\to n}(M_{N,t})\ne0CN→n​(MN,t​)=0, Mn,t≠0M_{n,t}\ne0Mn,t​=0, and there exists a real number c>0c>0c>0 such that CN→n(MN,t)=cMn,tC_{N\to n}(M_{N,t})=cM_{n,t}CN→n​(MN,t​)=cMn,t​. The case N=nN=nN=n is included.

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