Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Prediction for sparse states and observables

Open
QAlgorithms.Papers.Independent.Extend50.P46.corollary3_2

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

prove2quantum

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.

Let ρ\rhoρ be a state and O=O†O=O^\daggerO=O† with at most sρs_\rhosρ​ and sOs_OsO​ nonzero QQQ coefficients, respectively. For ε>0\varepsilon>0ε>0, suppose R^\widehat RR estimates every entry of RQR^QRQ within ε\varepsilonε. Then

∣∑i,jbiR^ijaj−tr⁡(ON(ρ))∣≤εsρsO ∥O∥2q.\left|\sum_{i,j}b_i\widehat R_{ij}a_j-\operatorname{tr}(O\mathcal N(\rho))\right|\le\varepsilon s_\rho\sqrt{s_O}\,\|O\|_2q.​i,j∑​bi​Rij​aj​−tr(ON(ρ))​≤εsρ​sO​​∥O∥2​q.

This gives the sparsity dependence used in the learning results. A zero observable has the exact zero estimator.

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.16-17, Corollary 3.2. The factor is s_rho times sqrt(s_O),
and ||O||_2 is the Hilbert-Schmidt norm. -/
theorem corollary3_2 {n : ℕ} (Q : HermitianBasis n) (N : {F : (Matrix (Qubits n) (Qubits n) ℂ) →ₗ[ℂ] (Matrix (Qubits n) (Qubits n) ℂ) // IsChannel F})
    (rho O : (Matrix (Qubits n) (Qubits n) ℂ)) (hrho : IsDensityMatrix rho) (hO : O.IsHermitian)
    (srho sO : ℕ) (hrhoSparse : supportCount (coeff Q rho) ≤ srho)
    (hOSparse : supportCount (coeff Q O) ≤ sO)
    (eps : ℝ) (heps : 0 < eps)
    (r : Matrix (Fin (4 ^ n)) (Fin (4 ^ n)) ℝ)
    (haccuracy : tableGood r (tm Q N) eps) :
    |predict Q r rho O - (O * N.val rho).trace.re| ≤
      eps * srho * Real.sqrt sO * frobNorm O * basisNorm Q := 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. 16, Corollary 3.2
Read-back

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

For every natural number nnn, including 000, let (Ei)i=04n−1(E_i)_{i=0}^{4^n-1}(Ei​)i=04n−1​ be a complex basis of the matrices on nnn bits, consisting of Hermitian matrices satisfying Tr⁡(EiEj)=δij\operatorname{Tr}(E_iE_j)=\delta_{ij}Tr(Ei​Ej​)=δij​. Let N\mathcal NN be complex-linear and have a finite Kraus representation N(X)=∑ℓKℓXKℓ∗\mathcal N(X)=\sum_\ell K_\ell X K_\ell^{*}N(X)=∑ℓ​Kℓ​XKℓ∗​ for all XXX, with ∑ℓKℓ∗Kℓ=I\sum_\ell K_\ell^{*}K_\ell=I∑ℓ​Kℓ∗​Kℓ​=I. Let ρ\rhoρ be positive semidefinite of trace 111, let OOO be Hermitian, and put ci(X)=Re⁡Tr⁡(EiX)c_i(X)=\operatorname{Re}\operatorname{Tr}(E_iX)ci​(X)=ReTr(Ei​X) and Tij=Re⁡Tr⁡(EiN(Ej))T_{ij}=\operatorname{Re}\operatorname{Tr}(E_i\mathcal N(E_j))Tij​=ReTr(Ei​N(Ej​)). For all natural numbers sρ,sOs_\rho,s_Osρ​,sO​ such that at most sρs_\rhosρ​ of the ci(ρ)c_i(\rho)ci​(ρ) and at most sOs_OsO​ of the ci(O)c_i(O)ci​(O) are nonzero, every real ε>0\varepsilon>0ε>0, and every real matrix rrr with ∣rij−Tij∣≤ε|r_{ij}-T_{ij}|\le\varepsilon∣rij​−Tij​∣≤ε for all i,ji,ji,j, the assertion is

∣∑i,jci(O) rij cj(ρ)−Re⁡Tr⁡(ON(ρ))∣≤εsρsO (∑u,v∣Ouv∣2)1/2sup⁡i∥Ei∥op,\left|\sum_{i,j}c_i(O)\,r_{ij}\,c_j(\rho) -\operatorname{Re}\operatorname{Tr}(O\mathcal N(\rho))\right| \le \varepsilon s_\rho\sqrt{s_O}\, \left(\sum_{u,v}|O_{uv}|^2\right)^{1/2} \sup_i\|E_i\|_{\mathrm{op}},​i,j∑​ci​(O)rij​cj​(ρ)−ReTr(ON(ρ))​≤εsρ​sO​​(u,v∑​∣Ouv​∣2)1/2isup​∥Ei​∥op​,

where the operator norm uses Euclidean vector norms. The quantifiers include sρ=0s_\rho=0sρ​=0 and sO=0s_O=0sO​=0: the former cannot satisfy the density-matrix hypothesis, while the latter forces O=0O=0O=0. No upper bound on ε\varepsilonε is assumed, and n=0n=0n=0 gives a one-dimensional matrix space.

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