Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Uniform sparse prediction in a general Hermitian operator basis

Open
QAlgorithms.Papers.Independent.Extend50.P46.corollaryB_4

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

prove2quantum

The unknown channel is an arbitrary complex-linear CPTP map on nnn qubits. Choi access supplies independent copies of the normalized reference-first state J(N)=(id⊗N)(∣Ω⟩⟨Ω∣)J(\mathcal N)=(\mathrm{id}\otimes\mathcal N)(|\Omega\rangle\langle\Omega|)J(N)=(id⊗N)(∣Ω⟩⟨Ω∣). The algorithm is a joint POVM on exactly its stated number of copies, chosen before the channel. Accuracy means simultaneous absolute error under its actual Born law. All constants, and all exponents hidden in O~\widetilde OO, are uniform before the channel, dimension, basis and accuracy parameters. Assume ε>0\varepsilon>0ε>0 and 0<δ<10<\delta<10<δ<1.

Here n≥0n\ge0n≥0 is the number of qubits, d=2nd=2^nd=2n, states are positive semidefinite matrices of trace one, and N\mathcal NN is a complex-linear CPTP map. The basis Q=(Qi)i=1d2Q=(Q_i)_{i=1}^{d^2}Q=(Qi​)i=1d2​ is a complete Hermitian Hilbert–Schmidt orthonormal basis. Write RijQ=tr⁡(QiN(Qj))R^Q_{ij}=\operatorname{tr}(Q_i\mathcal N(Q_j))RijQ​=tr(Qi​N(Qj​)), ai=tr⁡(Qiρ)a_i=\operatorname{tr}(Q_i\rho)ai​=tr(Qi​ρ) and bi=tr⁡(QiO)b_i=\operatorname{tr}(Q_iO)bi​=tr(Qi​O). The norm ∥⋅∥2\|\cdot\|_2∥⋅∥2​ is the Hilbert–Schmidt norm, and q=max⁡i∥Qi∥∞q=\max_i\|Q_i\|_\inftyq=maxi​∥Qi​∥∞​ uses the spectral norm.

Fix natural-number sparsity envelopes sρ,sOs_\rho,s_Osρ​,sO​ and B>0B>0B>0. A learner uses

m=O~ ⁣(n3+nlog⁡(1/δ)ε4B4sρ4sO2(2nq)12)m=\widetilde O\!\left(\frac{n^3+n\log(1/\delta)}{\varepsilon^4}B^4s_\rho^4s_O^2(\sqrt{2^n}q)^{12}\right)m=O(ε4n3+nlog(1/δ)​B4sρ4​sO2​(2n​q)12)

copies and produces a classical table. With probability at least 1−δ1-\delta1−δ, its explicit coefficient contraction predicts every expectation tr⁡(ON(ρ))\operatorname{tr}(O\mathcal N(\rho))tr(ON(ρ)) within ε\varepsilonε, simultaneously over states with at most sρs_\rhosρ​ nonzero QQQ coefficients and Hermitian observables with at most sOs_OsO​ nonzero QQQ coefficients and ∥O∥2≤B2n\|O\|_2\le B\sqrt{2^n}∥O∥2​≤B2n​.

This extends the uniform sparse-prediction guarantee beyond the Pauli basis.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P46
Formal statement
noncomputable section

open MeasureTheory

open scoped Matrix ComplexConjugate ComplexOrder

namespace QAlgorithms.Papers.Independent.Extend50.P46

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF pp.40-41, Corollary B.4. One classical table predicts simultaneously
for every promised sparse state and observable; the norm factor has exponent twelve. -/
theorem corollaryB_4 :
    ∃ C : ℝ, 0 < C ∧ ∃ p : ℕ, ∀ n srho sO : ℕ,
      ∀ Q : HermitianBasis n, ∀ B eps delta : ℝ,
      0 < B → 0 < eps → 0 < delta → delta < 1 →
      ∃ P : ChoiLearner n (Matrix (Fin (4 ^ n)) (Fin (4 ^ n)) ℝ),
        (P.copies : ℝ) ≤ C * ((n : ℝ)^3 + n * Real.log delta⁻¹) / eps^4 *
          B^4 * (srho : ℝ)^4 * (sO : ℝ)^2 *
          (Real.sqrt ((2 : ℝ)^n) * basisNorm Q)^12 *
          softFactor p n eps delta
            ((Real.sqrt ((2 : ℝ)^n) * basisNorm Q)^3 * B * srho * Real.sqrt sO) ∧
        ∀ N : {F : (Matrix (Qubits n) (Qubits n) ℂ) →ₗ[ℂ] (Matrix (Qubits n) (Qubits n) ℂ) // IsChannel F},
          let E := {r | ∀ rho O : (Matrix (Qubits n) (Qubits n) ℂ), IsDensityMatrix rho → O.IsHermitian →
            supportCount (coeff Q rho) ≤ srho → supportCount (coeff Q O) ≤ sO →
            frobNorm O ≤ B * Real.sqrt ((2 : ℝ)^n) →
            |predict Q r rho O - (O * N.val rho).trace.re| ≤ eps}
          1 - delta ≤ choiReportEventProbability P N E := by sorry

end QAlgorithms.Papers.Independent.Extend50.P46

end
Source
Learning Quantum Processes and Hamiltonians via the Pauli Transfer Matrix, arXiv:2212.04471v2, PDF p. 40, Corollary B.4
Read-back

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

There exist a real constant C>0C>0C>0 and a natural number ppp such that, for every natural numbers n,sρ,sOn,s_\rho,s_On,sρ​,sO​, every complex-linear basis Q0,…,Q4n−1Q_0,\ldots,Q_{4^n-1}Q0​,…,Q4n−1​ of matrices on Hn=C{0,1}n\mathcal H_n=\mathbb C^{\{0,1\}^n}Hn​=C{0,1}n satisfying Qi†=QiQ_i^\dagger=Q_iQi†​=Qi​ and tr⁡(QiQj)=1i=j\operatorname{tr}(Q_iQ_j)=\mathbf1_{i=j}tr(Qi​Qj​)=1i=j​, and every real B>0B>0B>0, ε>0\varepsilon>0ε>0, and 0<δ<10<\delta<10<δ<1, the following holds. Write d=2nd=2^nd=2n, K=max⁡i∥Qi∥opK=\max_i\|Q_i\|_{\mathrm{op}}K=maxi​∥Qi​∥op​, W=d KW=\sqrt d\,KW=d​K, qi(X)=Re⁡tr⁡(QiX)q_i(X)=\operatorname{Re}\operatorname{tr}(Q_iX)qi​(X)=Retr(Qi​X), and

Lp(x)=(1+log⁡(n+2)+∣log⁡ε∣+∣log⁡δ∣+log⁡(max⁡{1,x}))p.L_p(x)=\bigl(1+\log(n+2)+|\log\varepsilon|+|\log\delta|+\log(\max\{1,x\})\bigr)^p.Lp​(x)=(1+log(n+2)+∣logε∣+∣logδ∣+log(max{1,x}))p.

There exists a learner using a natural number ccc of copies, a finite measurement (Mo)o(M_o)_o(Mo​)o​ with positive semidefinite matrices summing to the identity on (Hn⊗Hn)⊗c(\mathcal H_n\otimes\mathcal H_n)^{\otimes c}(Hn​⊗Hn​)⊗c, and decoded real 4n×4n4^n\times4^n4n×4n matrices ror_oro​, with

c≤C n3+nlog⁡(δ−1)ε4B4sρ4sO2W12Lp(W3BsρsO).c\le C\,\frac{n^3+n\log(\delta^{-1})}{\varepsilon^4} B^4s_\rho^4s_O^2W^{12} L_p(W^3Bs_\rho\sqrt{s_O}).c≤Cε4n3+nlog(δ−1)​B4sρ4​sO2​W12Lp​(W3Bsρ​sO​​).

For every complex-linear map N(X)=∑ℓ=0m−1EℓXEℓ†\mathcal N(X)=\sum_{\ell=0}^{m-1}E_\ell XE_\ell^\daggerN(X)=∑ℓ=0m−1​Eℓ​XEℓ†​ with finitely many Kraus matrices satisfying ∑ℓEℓ†Eℓ=I\sum_\ell E_\ell^\dagger E_\ell=I∑ℓ​Eℓ†​Eℓ​=I, let JN=d−1∑u,v∣u⟩⟨v∣⊗N(∣u⟩⟨v∣)J_{\mathcal N}=d^{-1}\sum_{u,v}|u\rangle\langle v|\otimes\mathcal N(|u\rangle\langle v|)JN​=d−1∑u,v​∣u⟩⟨v∣⊗N(∣u⟩⟨v∣). The total weight ∑oRe⁡tr⁡(MoJN⊗c)\sum_o\operatorname{Re}\operatorname{tr}(M_oJ_{\mathcal N}^{\otimes c})∑o​Retr(Mo​JN⊗c​) of outcomes for which

∣∑i,jqi(O)(ro)ijqj(ρ)−Re⁡tr⁡(ON(ρ))∣≤ε\left|\sum_{i,j}q_i(O)(r_o)_{ij}q_j(\rho) -\operatorname{Re}\operatorname{tr}(O\mathcal N(\rho))\right|\le\varepsilon​i,j∑​qi​(O)(ro​)ij​qj​(ρ)−Retr(ON(ρ))​≤ε

holds simultaneously for every positive semidefinite ρ\rhoρ of trace 111 and every Hermitian OOO satisfying #{i:qi(ρ)≠0}≤sρ\#\{i:q_i(\rho)\ne0\}\le s_\rho#{i:qi​(ρ)=0}≤sρ​, #{i:qi(O)≠0}≤sO\#\{i:q_i(O)\ne0\}\le s_O#{i:qi​(O)=0}≤sO​, and ∥O∥F≤Bd\|O\|_{\mathrm F}\le B\sqrt d∥O∥F​≤Bd​, is at least 1−δ1-\delta1−δ; here ∥O∥F=(∑u,v∣Ouv∣2)1/2\|O\|_{\mathrm F}=(\sum_{u,v}|O_{uv}|^2)^{1/2}∥O∥F​=(∑u,v​∣Ouv​∣2)1/2. The learner precedes the choice of N\mathcal NN, and the event quantifies over all these ρ,O\rho,Oρ,O together. The cases n=0n=0n=0, sρ=0s_\rho=0sρ​=0, and sO=0s_O=0sO​=0 are included and force c=0c=0c=0 in the bound; when sρ=0s_\rho=0sρ​=0, no density matrix satisfies its coefficient-support condition. Zero copies use the scalar zeroth tensor power.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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