Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§5: leading-order optimality for one random erased qubit

Open
QAlgorithms.Papers.Independent.Extend50.P03.single_erasure_optimality

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. Consider uniformly random single-qubit erasure with the location flag. For every covariant CPTP encoding with n>0n>0n>0, write ℓk=(k⌈k/2⌉)⌈k/2⌉/2k\ell_k=\binom{k}{\lceil k/2\rceil}\lceil k/2\rceil/2^kℓk​=(⌈k/2⌉k​)⌈k/2⌉/2k. The lower bounds cited from Faist et al. [11] and the paper's upper bounds give

εChoi≥ℓk/n,εworst≥k/(2n);εChoi≤k2n(1+O(k2/n)),εworst≤k2n(1+O(k/n)).\varepsilon_{\rm Choi}\ge\ell_k/n,\quad\varepsilon_{\rm worst}\ge k/(2n);\qquad \varepsilon_{\rm Choi}\le\frac{\sqrt k}{2n}(1+O(k^2/n)),\quad\varepsilon_{\rm worst}\le\frac{k}{2n}(1+O(k/n)).εChoi​≥ℓk​/n,εworst​≥k/(2n);εChoi​≤2nk​​(1+O(k2/n)),εworst​≤2nk​(1+O(k/n)).

The upper bounds hold in mean and with exponentially high probability at even nnn, α=n/2\alpha=n/2α=n/2, respectively under k2=o(n)k^2=o(n)k2=o(n) and k=o(n)k=o(n)k=o(n). In the worst metric the mean divided by k/(2n)k/(2n)k/(2n) tends to one for every such growing-kkk sequence; for Choi the analogous equality holds when k=1k=1k=1. Moreover ℓ1=1/2\ell_1=1/2ℓ1​=1/2 and (k/2)/ℓk→π/2(\sqrt k/2)/\ell_k\to\sqrt{\pi/2}(k​/2)/ℓk​→π/2​ as k→∞k\to\inftyk→∞. This is leading-order optimality for the stated flagged noise model, not a lower bound for an arbitrary fixed site.

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 5, PDF p.13: [11]'s cited lower bounds concern a uniformly random,
flagged erased qubit. The resulting mean worst coefficient is optimal for growing
k=o(n); the Choi coefficient is exact at k=1 and within asymptotic sqrt(pi/2) for
large k. Upper/typical bounds for growing k are those of Theorems 1–2. -/
theorem single_erasure_optimality :
    (∀ n k : ℕ, 0 < n → k ≤ n → ∀ E : Superop (Qubits k) (Qubits n),
      IsChannel E → U1ChargeCovariant E →
      choiLowerCoefficient k / n ≤ optimizedCodeError false (flaggedPatternErasure (singleErasureLaw n) ∘ E) ∧
      (k : ℝ)/(2*n) ≤ optimizedCodeError true (flaggedPatternErasure (singleErasureLaw n) ∘ E)) ∧
    OptimalSingleLimit true ∧ OptimalSingleLimit false ∧
    PatternGuarantee ChargeHaar ∧
    choiLowerCoefficient 1 = 1/2 ∧
    Tendsto (fun k : ℕ => (Real.sqrt (k+1)/2) / choiLowerCoefficient (k+1))
      atTop (nhds (Real.sqrt (Real.pi/2))) := 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. 13, §5: leading-order optimality for one random erased qubit
Read-back

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

Let Qj={0,1}jQ_j=\{0,1\}^jQj​={0,1}j, let ∣x∣|x|∣x∣ count the ones in xxx, and set

bk=2−k(k⌊(k+1)/2⌋)⌊(k+1)/2⌋.b_k=2^{-k}\binom{k}{\lfloor(k+1)/2\rfloor}\lfloor(k+1)/2\rfloor .bk​=2−k(⌊(k+1)/2⌋k​)⌊(k+1)/2⌋.

For any channel N\mathcal NN with input QkQ_kQk​, let eC(N)=1−FC(N)2e_{\mathrm C}(\mathcal N)=\sqrt{1-F_{\mathrm C}(\mathcal N)^2}eC​(N)=1−FC​(N)2​, where FCF_{\mathrm C}FC​ is the supremum over recovery channels D\mathcal DD of F(∣Ωk⟩⟨Ωk∣,(id⊗DN)(∣Ωk⟩⟨Ωk∣))F(|\Omega_k\rangle\langle\Omega_k|,(\mathrm{id}\otimes\mathcal D\mathcal N)(|\Omega_k\rangle\langle\Omega_k|))F(∣Ωk​⟩⟨Ωk​∣,(id⊗DN)(∣Ωk​⟩⟨Ωk​∣)), with ∣Ω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⟩; let eW(N)=1−FW(N)2e_{\mathrm W}(\mathcal N)=\sqrt{1-F_{\mathrm W}(\mathcal N)^2}eW​(N)=1−FW​(N)2​, where FW=sup⁡Dinf⁡r,ρF(ρ,(idr+1⊗DN)(ρ))F_{\mathrm W}=\sup_{\mathcal D}\inf_{r,\rho}F(\rho,(\mathrm{id}_{r+1}\otimes\mathcal D\mathcal N)(\rho))FW​=supD​infr,ρ​F(ρ,(idr+1​⊗DN)(ρ)), with r≥0r\ge0r≥0 and arbitrary density matrices ρ\rhoρ on Cr+1⊗CQk\mathbb C^{r+1}\otimes\mathbb C^{Q_k}Cr+1⊗CQk​. Density matrices are positive semidefinite with trace one, channels have finite Kraus representations with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I, and F(X,Y)=Re⁡Tr⁡X YXF(X,Y)=\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt X\,Y\sqrt X}F(X,Y)=ReTrX​YX​​. Let Fn\mathcal F_nFn​ erase a uniformly chosen single site, record that site as a classical flag, replace its coordinate by zero, and trace out its contents. First, for every n>0n>0n>0, 0≤k≤n0\le k\le n0≤k≤n, and channel E:Qk→Qn\mathcal E:Q_k\to Q_nE:Qk​→Qn​ satisfying, for every real θ\thetaθ and every density matrix ρ\rhoρ,

E(Rk(θ)ρRk(θ)†)=Rn(θ)E(ρ)Rn(θ)†,Rj(θ)xx=eiθ∣x∣,\mathcal E(R_k(\theta)\rho R_k(\theta)^\dagger) =R_n(\theta)\mathcal E(\rho)R_n(\theta)^\dagger, \qquad R_j(\theta)_{xx}=e^{i\theta|x|},E(Rk​(θ)ρRk​(θ)†)=Rn​(θ)E(ρ)Rn​(θ)†,Rj​(θ)xx​=eiθ∣x∣,

one has bk/n≤eC(FnE)b_k/n\le e_{\mathrm C}(\mathcal F_n\mathcal E)bk​/n≤eC​(Fn​E) and k/(2n)≤eW(FnE)k/(2n)\le e_{\mathrm W}(\mathcal F_n\mathcal E)k/(2n)≤eW​(Fn​E); this includes k=0k=0k=0. Second, take any sequence ni→∞n_i\to\inftyni​→∞ of positive even integers, 1≤ki≤ni1\le k_i\le n_i1≤ki​≤ni​, and αi=ni/2≤ni−ki\alpha_i=n_i/2\le n_i-k_iαi​=ni​/2≤ni​−ki​. For every sequence of unit ancillas ψi\psi_iψi​ of exactly αi\alpha_iαi​ ones in the sense Hni−kiψi=αiψiH_{n_i-k_i}\psi_i=\alpha_i\psi_iHni​−ki​​ψi​=αi​ψi​, and every sequence of probability laws μi\mu_iμi​ supported almost surely on unitaries commuting with the Hamming-weight operator HniH_{n_i}Hni​​ and invariant under left multiplication by all such unitaries, encode by Ei,U(ρ)=U(ρ⊗∣ψi⟩⟨ψi∣)U†\mathcal E_{i,U}(\rho)=U(\rho\otimes|\psi_i\rangle\langle\psi_i|)U^\daggerEi,U​(ρ)=U(ρ⊗∣ψi​⟩⟨ψi​∣)U†. If ki/ni→0k_i/n_i\to0ki​/ni​→0, then ∫eW(FniEi,U) dμi(U)/(ki/(2ni))→1\int e_{\mathrm W}(\mathcal F_{n_i}\mathcal E_{i,U})\,d\mu_i(U)\big/(k_i/(2n_i))\to1∫eW​(Fni​​Ei,U​)dμi​(U)/(ki​/(2ni​))→1; if instead ki=1k_i=1ki​=1 for every iii, then ∫eC(FniEi,U) dμi(U)/(1/(2ni))→1\int e_{\mathrm C}(\mathcal F_{n_i}\mathcal E_{i,U})\,d\mu_i(U)\big/(1/(2n_i))\to1∫eC​(Fni​​Ei,U​)dμi​(U)/(1/(2ni​))→1. Third, the following pattern guarantee holds for either error w∈{C,W}w\in\{\mathrm C,\mathrm W\}w∈{C,W}: for every 0<a<10<a<10<a<1, there are C,c>0C,c>0C,c>0 such that 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 w=Ww=\mathrm Ww=W and Ri=ki2ti2/niR_i=k_i^2t_i^2/n_iRi​=ki2​ti2​/ni​ for w=Cw=\mathrm Cw=C, eventually has the following property uniformly over all such ancillas and charge Haar laws. With

Bi={kiti,w=W,tiki,w=C4nia(1−a)(1+CRi),B_i=\frac{\begin{cases}k_i\sqrt{t_i},&w=\mathrm W,\\ \sqrt{t_ik_i},&w=\mathrm C\end{cases}}{4n_i\sqrt{a(1-a)}}(1+CR_i),Bi​=4ni​a(1−a)​{ki​ti​​,ti​ki​​,​w=W,w=C​​(1+CRi​),

every flagged mixture of erasures with a nonnegative, normalized pattern law supported on size-tit_iti​ sets has integrable error and mean at most BiB_iBi​, and the probability that any individual size-tit_iti​ erasure or any such mixture has error greater than BiB_iBi​ is at most e−cnie^{-cn_i}e−cni​. The exact charge condition excludes such sequences for irrational aaa. Finally, b1=1/2b_1=1/2b1​=1/2, and

lim⁡k→∞k+1/2bk+1=π/2.\lim_{k\to\infty}\frac{\sqrt{k+1}/2}{b_{k+1}}=\sqrt{\pi/2}.k→∞lim​bk+1​k+1​/2​=π/2​.
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