Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§6: extension to exact charge-conserving 2-designs

Open
QAlgorithms.Papers.Independent.Extend50.P03.symmetric_two_designs

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

prove2quantum

A code encodes kkk logical qubits in nnn physical qubits, with 0≤k≤n0\le k\le n0≤k≤n, by appending a fixed normalized (n−k)(n-k)(n−k)-qubit eigenvector ψα\psi_\alphaψα​ of the Hamming-weight charge Q(n−k)Q^{(n-k)}Q(n−k) with eigenvalue 0≤α≤n−k0\le\alpha\le n-k0≤α≤n−k, then applying UUU. Thus EU(ρ)=U(ρ⊗∣ψα⟩⟨ψα∣)U†\mathcal E_U(\rho)=U(\rho\otimes|\psi_\alpha\rangle\langle\psi_\alpha|)U^\daggerEU​(ρ)=U(ρ⊗∣ψα​⟩⟨ψα​∣)U†. The ancilla is chosen independently of UUU. The law H×H_\timesH×​ is probability Haar on the full charge centralizer, including every sector phase. Erasure of a set SSS of t≤nt\le nt≤n wires gives its complement to the decoder. Fidelity FFF means root fidelity and P=1−F2P=\sqrt{1-F^2}P=1−F2​. The optimized Choi error uses normalized kkk EPR pairs; the optimized worst error chooses one CPTP decoder before all normalized joint logical/reference states over every finite reference dimension. Replace H×H_\timesH×​ by any probability ensemble supported on the full charge centralizer whose full (1,1)(1,1)(1,1) and (2,2)(2,2)(2,2) unitary twirls agree with H×H_\timesH×​, including cross-sector phases and correlations. Then the preceding expectation and failure estimates remain valid:

Theorem 1, Theorem 2, Lemma 2, and their simultaneous flagged-erasure bounds hold.\text{Theorem 1, Theorem 2, Lemma 2, and their simultaneous flagged-erasure bounds hold.}Theorem 1, Theorem 2, Lemma 2, and their simultaneous flagged-erasure bounds hold.

The two main bounds keep their separate growth regimes, constants uniform over the matching ensembles; Lemma 2 keeps its compact-interior/small-erasure assumptions. This exact-design statement supplies neither an approximate-design error term nor an efficient circuit construction.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P03
Formal statement
noncomputable section

open MeasureTheory Filter

open scoped Matrix ComplexConjugate ComplexOrder ENNReal Matrix.Norms.Elementwise

namespace QAlgorithms.Papers.Independent.Extend50.P03

open QAlgorithms.Papers.Independent.Support50.P23 (minEntropy)

attribute [local instance] Classical.propDecidable

attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P03.matrixContinuousENorm

/-- Section 6, PDF pp.14–15: the bounds extend to exact full centralizer 2-designs.
No approximate-design rate or efficient circuit construction is asserted. -/
theorem symmetric_two_designs :
    AsymptoticGuarantee ExactDesign false ∧ AsymptoticGuarantee ExactDesign true ∧
    ConcentrationGuarantee ExactDesign ∧ PatternGuarantee ExactDesign := by sorry

end QAlgorithms.Papers.Independent.Extend50.P03

end
Source
Charge-conserving unitaries typically generate optimal covariant quantum error-correcting codes, arXiv:2102.11835v1, PDF p. 14, §6: extension to exact charge-conserving 2-designs
Read-back

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

Write Qj={0,1}jQ_j=\{0,1\}^jQj​={0,1}j, Hj=diag⁡(∣x∣)H_j=\operatorname{diag}(|x|)Hj​=diag(∣x∣), and h2(p)=binEntropy⁡(p)/log⁡2h_2(p)=\operatorname{binEntropy}(p)/\log2h2​(p)=binEntropy(p)/log2. An exact design on QnQ_nQn​ means a probability measure μ\muμ almost surely supported on unitaries commuting with HnH_nHn​, for which there exists a probability measure ν\nuν supported on the same commuting unitaries and invariant under left multiplication by all of them, such that, for r=1,2r=1,2r=1,2 and every four lists a,b,c,da,b,c,da,b,c,d of rrr strings in QnQ_nQn​, the functions

U⟼(∏j=1rUajbj)(∏j=1rUcjdj)‾U\longmapsto\left(\prod_{j=1}^rU_{a_jb_j}\right) \overline{\left(\prod_{j=1}^rU_{c_jd_j}\right)}U⟼(j=1∏r​Uaj​bj​​)(j=1∏r​Ucj​dj​​)​

are integrable under both laws and have equal integrals. A charge ancilla AAA consists of k≤nk\le nk≤n, α≤n−k\alpha\le n-kα≤n−k, and a unit vector ψ\psiψ on Qn−kQ_{n-k}Qn−k​ satisfying Hn−kψ=αψH_{n-k}\psi=\alpha\psiHn−k​ψ=αψ, with encoder EU(ρ)=U(ρ⊗∣ψ⟩⟨ψ∣)U†\mathcal E_U(\rho)=U(\rho\otimes|\psi\rangle\langle\psi|)U^\daggerEU​(ρ)=U(ρ⊗∣ψ⟩⟨ψ∣)U†. For an encoded channel followed by erasure, define its Choi and worst errors as 1−FC2\sqrt{1-F_{\mathrm C}^2}1−FC2​​ and 1−FW2\sqrt{1-F_{\mathrm W}^2}1−FW2​​, respectively, where

FC(N)=sup⁡DF ⁣(∣Ωk⟩⟨Ωk∣,(id⊗DN)(∣Ωk⟩⟨Ωk∣)),FW(N)=sup⁡Dinf⁡r,ρF ⁣(ρ,(idr+1⊗DN)(ρ)).F_{\mathrm C}(\mathcal N)=\sup_{\mathcal D}F\!\left(|\Omega_k\rangle\langle\Omega_k|, (\mathrm{id}\otimes\mathcal D\mathcal N)(|\Omega_k\rangle\langle\Omega_k|)\right),\qquad F_{\mathrm W}(\mathcal N)=\sup_{\mathcal D}\inf_{r,\rho} F\!\left(\rho,(\mathrm{id}_{r+1}\otimes\mathcal D\mathcal N)(\rho)\right).FC​(N)=Dsup​F(∣Ωk​⟩⟨Ωk​∣,(id⊗DN)(∣Ωk​⟩⟨Ωk​∣)),FW​(N)=Dsup​r,ρinf​F(ρ,(idr+1​⊗DN)(ρ)).

Here ∣Ωk⟩=2−k/2∑x∣x,x⟩|\Omega_k\rangle=2^{-k/2}\sum_x|x,x\rangle∣Ωk​⟩=2−k/2∑x​∣x,x⟩, r≥0r\ge0r≥0, ρ\rhoρ ranges over all density matrices on the indicated reference and input registers, F(X,Y)=Re⁡Tr⁡X YXF(X,Y)=\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt X\,Y\sqrt X}F(X,Y)=ReTrX​YX​​, and recovery channels have finite Kraus representations with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. Let ew(A,S,U)e_w(A,S,U)ew​(A,S,U) denote the chosen error after tracing out the sites SSS, and let ew(A,p,U)e_w(A,p,U)ew​(A,p,U) denote the error for a mixture of erasures that records SSS as a classical flag and replaces its erased coordinates by zeros; a pattern law ppp is nonnegative, sums to one, and vanishes unless ∣S∣=t|S|=t∣S∣=t. The declaration asserts the following four properties. For each choice www and each 0<a<10<a<10<a<1, there are C,c>0C,c>0C,c>0 such that, for every sequence di=(ni,ki,αi,ti)d_i=(n_i,k_i,\alpha_i,t_i)di​=(ni​,ki​,αi​,ti​) with ni→∞n_i\to\inftyni​→∞, 1≤ki≤ni1\le k_i\le n_i1≤ki​≤ni​, αi≤ni−ki\alpha_i\le n_i-k_iαi​≤ni​−ki​, 1≤ti≤ni1\le t_i\le n_i1≤ti​≤ni​, αi=ani\alpha_i=a n_iαi​=ani​, and Ri→0R_i\to0Ri​→0, where Ri=kiti2/niR_i=k_it_i^2/n_iRi​=ki​ti2​/ni​ for worst error and Ri=ki2ti2/niR_i=k_i^2t_i^2/n_iRi​=ki2​ti2​/ni​ for Choi error, eventually every ancilla, exact design μ\muμ, and size-tit_iti​ set SSS have integrable site error with mean at most

Bi={kiti,w is worst,tiki,w is Choi4nia(1−a)(1+CRi),B_i=\frac{\begin{cases}k_i\sqrt{t_i},&w\text{ is worst},\\ \sqrt{t_ik_i},&w\text{ is Choi}\end{cases}}{4n_i\sqrt{a(1-a)}}(1+CR_i),Bi​=4ni​a(1−a)​{ki​ti​​,ti​ki​​,​w is worst,w is Choi​​(1+CRi​),

and μ{U:Bi<ew(A,S,U)}≤e−cni\mu\{U:B_i<e_w(A,S,U)\}\le e^{-cn_i}μ{U:Bi​<ew​(A,S,U)}≤e−cni​. The exact relation αi=ani\alpha_i=a n_iαi​=ani​ makes the sequence hypothesis impossible for irrational aaa. Also, for every 0<b<1/20<b<1/20<b<1/2, there are C>0C>0C>0 and D≥0D\ge0D≥0 such that every sequence with ni→∞n_i\to\inftyni​→∞ and eventually

1≤ki≤ni,1≤ti≤ni,αi≤ni−ki,b≤αi/ni,(αi+ki)/ni≤1−b,ti≤αi,αi+ki≤ni−ti1\le k_i\le n_i,\quad 1\le t_i\le n_i,\quad \alpha_i\le n_i-k_i,\quad b\le\alpha_i/n_i,\quad (\alpha_i+k_i)/n_i\le1-b,\quad t_i\le\alpha_i,\quad \alpha_i+k_i\le n_i-t_i1≤ki​≤ni​,1≤ti​≤ni​,αi​≤ni​−ki​,b≤αi​/ni​,(αi​+ki​)/ni​≤1−b,ti​≤αi​,αi​+ki​≤ni​−ti​

eventually satisfies the following, uniformly over every ancilla, exact design μ\muμ, size-tit_iti​ set SSS, real ϵ≥0,δ>0,δ′>0\epsilon\ge0,\delta>0,\delta'>0ϵ≥0,δ>0,δ′>0, and density matrix ζ\zetaζ on QtiQ_{t_i}Qti​​. Define Pj(q)P_j(q)Pj​(q) as the projector onto strings of weight qqq, define Cj(q)=(jq)C_j(q)=\binom jqCj​(q)=(qj​) for integers 0≤q≤j0\le q\le j0≤q≤j and zero otherwise, and set

Bx=∑j=0tiCni−ti(∣x∣+αi−j)Cni(∣x∣+αi)Pti(j),Hi=min⁡ ⁣{h2(αi/ni),h2((αi+ki)/ni)}.B_x=\sum_{j=0}^{t_i} \frac{C_{n_i-t_i}(|x|+\alpha_i-j)}{C_{n_i}(|x|+\alpha_i)}P_{t_i}(j),\qquad H_i=\min\!\left\{h_2(\alpha_i/n_i),h_2((\alpha_i+k_i)/n_i)\right\}.Bx​=j=0∑ti​​Cni​​(∣x∣+αi​)Cni​−ti​​(∣x∣+αi​−j)​Pti​​(j),Hi​=min{h2​(αi​/ni​),h2​((αi​+ki​)/ni​)}.

If 1−F(Bx,ζ)2≤ϵ\sqrt{1-F(B_x,\zeta)^2}\le\epsilon1−F(Bx​,ζ)2​≤ϵ for every x∈Qkix\in Q_{k_i}x∈Qki​​, then

μ{U:ϵ+δ+2kiδ′<eW(A,S,U)}≤max⁡ ⁣{CniD(2ki−niHi/4+ti/2δ+22ki−niHi/2+tiδ′),0},\mu\{U:\epsilon+\delta+2^{k_i}\sqrt{\delta'}<e_{\mathrm W}(A,S,U)\} \le \max\!\left\{C n_i^D\left( \frac{2^{k_i-n_iH_i/4+t_i/2}}{\delta} +\frac{2^{2k_i-n_iH_i/2+t_i}}{\delta'}\right),0\right\},μ{U:ϵ+δ+2ki​δ′​<eW​(A,S,U)}≤max{CniD​(δ2ki​−ni​Hi​/4+ti​/2​+δ′22ki​−ni​Hi​/2+ti​​),0},

with the right side regarded as a nonnegative extended real. Finally, for each w,aw,aw,a, constants C,c>0C,c>0C,c>0 also give the pattern property with the sequence conditions and BiB_iBi​ above: every such mixture error is integrable with mean at most BiB_iBi​, and the probability that any size-tit_iti​ site erasure or any supported pattern mixture exceeds BiB_iBi​ is at most e−cnie^{-cn_i}e−cni​. Constants and eventual indices may differ between these assertions.

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