Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Six copies are necessary for dimension-independent qubit testing

Open
QAlgorithms.Papers.Independent.Extend50.P30.sixCopyOptimality

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

prove2quantum

For t=4,5t=4,5t=4,5, the uniform stabilizer and Haar pure-state moments on nnn qubits become indistinguishable as n→∞n\to\inftyn→∞. Consequently, no family of effects on any fixed t≤5t\leq5t≤5 copies can be perfectly complete for all stabilizers and have a dimension-independent positive rejection probability on all states with stabilizer fidelity at most 3/43/43/4. This remains impossible after discarding any finite initial set of register sizes. Quantification is over all effects, including collective measurements.

lim⁡n→∞12∥ESS⊗t−Eψψ⊗t∥1=0(t=4,5).\lim_{n\to\infty}\frac12\|\mathbb E_SS^{\otimes t}-\mathbb E_\psi\psi^{\otimes t}\|_1=0\quad(t=4,5).n→∞lim​21​∥ES​S⊗t−Eψ​ψ⊗t∥1​=0(t=4,5).

This gives the source's six copies are necessary for dimension-independent qubit testing 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.49: indistinguishability is against every accepting effect, not just Algorithm 1. -/
theorem sixCopyOptimality :
    (∀ t : ℕ, t = 4 ∨ t = 5 → Filter.Tendsto
      (fun n => QAlgorithms.traceNorm (stabilizerMoment 2 n t - haarMoment 2 n t) / 2)
      Filter.atTop (nhds 0)) ∧
    (∀ t : ℕ, t ≤ 5 → ∀ n0 : ℕ, ¬ ∃ eta : ℝ, 0 < eta ∧
      ∃ A : (n : ℕ) → Matrix (QuditCopies 2 n t) (QuditCopies 2 n t) ℂ,
        (∀ n, QAlgorithms.IsEffect (A n)) ∧
        (∀ n, n0 ≤ n → ∀ v : EuclideanSpace ℂ (ResidueRegister 2 n), IsStabilizer v →
          QAlgorithms.effectProb (A n) (tensorPower t (QAlgorithms.pureDensity v)) = 1) ∧
        (∀ n, n0 ≤ n → ∀ v : EuclideanSpace ℂ (ResidueRegister 2 n), ‖v‖ = 1 → FarFromStabilizers v (1 / 2) →
          QAlgorithms.effectProb (A n) (tensorPower t (QAlgorithms.pureDensity v)) ≤ 1 - eta)) := 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. 49, six-copy-optimality
Read-back

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

Write Vn=(Z/2Z)nV_n=(\mathbb Z/2\mathbb Z)^nVn​=(Z/2Z)n. For a,b,u,w∈Vna,b,u,w\in V_na,b,u,w∈Vn​, let Wa,b(u,w)=i−∑ja^jb^j(−1)∑ja^ju^jW_{a,b}(u,w)=i^{-\sum_j\widehat a_j\widehat b_j}(-1)^{\sum_j\widehat a_j\widehat u_j}Wa,b​(u,w)=i−∑j​aj​bj​(−1)∑j​aj​uj​ if u=w+bu=w+bu=w+b, and 000 otherwise. From Pn={icWa,b:0≤c<4, a,b∈Vn}\mathcal P_n=\{i^cW_{a,b}:0\le c<4,\ a,b\in V_n\}Pn​={icWa,b​:0≤c<4, a,b∈Vn​}, take every subset GGG 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, and let Sn\mathcal S_nSn​ be the finite set of matrices (tr⁡PG)−1PG(\operatorname{tr}P_G)^{-1}P_G(trPG​)−1PG​ that equal vv†vv^\daggervv† for some unit vector vvv. For matrices on VnV_nVn​, define (S⊗t)x,y=∏j<tSxj,yj(S^{\otimes t})_{x,y}=\prod_{j<t}S_{x_j,y_j}(S⊗t)x,y​=∏j<t​Sxj​,yj​​, and set

Mn,t=∣Sn∣−1∑S∈SnS⊗t,Hn,t=(∏k=0t−1(2n+k))−1∑π∈Sym⁡(t)Uπ,M_{n,t}=|\mathcal S_n|^{-1}\sum_{S\in\mathcal S_n}S^{\otimes t}, \qquad H_{n,t}= \left(\prod_{k=0}^{t-1}(2^n+k)\right)^{-1} \sum_{\pi\in\operatorname{Sym}(t)}U_\pi,Mn,t​=∣Sn​∣−1S∈Sn​∑​S⊗t,Hn,t​=(k=0∏t−1​(2n+k))−1π∈Sym(t)∑​Uπ​,

where (Uπ)x,y=1x=y∘π−1(U_\pi)_{x,y}=\mathbf1_{x=y\circ\pi^{-1}}(Uπ​)x,y​=1x=y∘π−1​. For a matrix XXX, let ∥X∥tr=Re⁡tr⁡X†X\|X\|_{\mathrm{tr}}=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥tr​=RetrX†X​, with the square root taken by continuous functional calculus. The declaration asserts both of the following: for each natural number ttt equal to 444 or 555, ∥Mn,t−Hn,t∥tr/2→0\|M_{n,t}-H_{n,t}\|_{\mathrm{tr}}/2\to0∥Mn,t​−Hn,t​∥tr​/2→0 as n→∞n\to\inftyn→∞; and, for every natural number t≤5t\le5t≤5 and every natural number n0n_0n0​, there do not exist a real η>0\eta>0η>0 and matrices AnA_nAn​ on ℓ2(Vnt;C)\ell^2(V_n^t;\mathbb C)ℓ2(Vnt​;C), defined for every natural nnn, such that every AnA_nAn​ and I−AnI-A_nI−An​ are positive semidefinite and, for every n≥n0n\ge n_0n≥n0​, simultaneously

Re⁡tr⁡ ⁣(An(vv†)⊗t)=1whenever ∥v∥=1, vv†∈Sn,\operatorname{Re}\operatorname{tr}\!\left(A_n(vv^\dagger)^{\otimes t}\right)=1 \quad\text{whenever }\|v\|=1,\ vv^\dagger\in\mathcal S_n,Retr(An​(vv†)⊗t)=1whenever ∥v∥=1, vv†∈Sn​,

and

Re⁡tr⁡ ⁣(An(vv†)⊗t)≤1−ηwhenever ∥v∥=1 and Re⁡tr⁡(Svv†)≤34 for every S∈Sn.\operatorname{Re}\operatorname{tr}\!\left(A_n(vv^\dagger)^{\otimes t}\right)\le1-\eta \quad\text{whenever }\|v\|=1 \ \text{and}\ \operatorname{Re}\operatorname{tr}(Svv^\dagger)\le\tfrac34 \ \text{for every }S\in\mathcal S_n.Retr(An​(vv†)⊗t)≤1−ηwhenever ∥v∥=1 and Retr(Svv†)≤43​ for every S∈Sn​.

The second assertion includes t=0t=0t=0 and arbitrary n0n_0n0​, including 000; zero-fold tensor powers use empty products.

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