Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Prediction from entrywise transfer-matrix estimates

Open
QAlgorithms.Papers.Independent.Extend50.P46.lemma3_1

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†. Suppose Bρ=∑i∣ai∣>0B_\rho=\sum_i|a_i|>0Bρ​=∑i​∣ai​∣>0, BO=∑i∣bi∣>0B_O=\sum_i|b_i|>0BO​=∑i​∣bi​∣>0, and a supplied table R^\widehat RR satisfies ∣R^ij−RijQ∣≤ε|\widehat R_{ij}-R^Q_{ij}|\le\varepsilon∣Rij​−RijQ​∣≤ε for every matching index pair, with ε>0\varepsilon>0ε>0. The estimator computed from that table satisfies

μ^=∑i,jbiR^ijaj,∣μ^−tr⁡(ON(ρ))∣≤εBρBO.\widehat\mu=\sum_{i,j}b_i\widehat R_{ij}a_j,\qquad |\widehat\mu-\operatorname{tr}(O\mathcal N(\rho))|\le\varepsilon B_\rho B_O.μ​=i,j∑​bi​Rij​aj​,∣μ​−tr(ON(ρ))∣≤εBρ​BO​.

This converts coordinate errors to prediction errors without using the true expectation in the 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 p.15, Lemma 3.1. The matching-index error assumption corrects the
index slip after Eq.(3.4); Eqs.(3.3),(3.5) fix the intended estimator. -/
theorem lemma3_1 {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)
    (eps Brho BO : ℝ) (heps : 0 < eps) (hBrho : 0 < Brho) (hBO : 0 < BO)
    (hrhoNorm : ∑ i, |coeff Q rho i| = Brho)
    (hONorm : ∑ i, |coeff Q O i| = BO)
    (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 * Brho * BO := 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. 15, Lemma 3.1
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 basis over C\mathbb CC of the complex matrices on nnn bits, with every EiE_iEi​ Hermitian and Tr⁡(EiEj)=1\operatorname{Tr}(E_iE_j)=1Tr(Ei​Ej​)=1 if i=ji=ji=j and 000 otherwise. Let N\mathcal NN be a complex-linear map on these matrices admitting finitely many matrices KℓK_\ellKℓ​, possibly indexed by an empty finite list, such that ∑ℓKℓ∗Kℓ=I\sum_\ell K_\ell^{*}K_\ell=I∑ℓ​Kℓ∗​Kℓ​=I and N(X)=∑ℓKℓXKℓ∗\mathcal N(X)=\sum_\ell K_\ell X K_\ell^{*}N(X)=∑ℓ​Kℓ​XKℓ∗​ for every matrix XXX. Let ρ\rhoρ be positive semidefinite with trace 111, and let OOO be Hermitian. Define 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 strictly positive real numbers ε,Bρ,BO\varepsilon,B_\rho,B_Oε,Bρ​,BO​ satisfying ∑i∣ci(ρ)∣=Bρ\sum_i|c_i(\rho)|=B_\rho∑i​∣ci​(ρ)∣=Bρ​ and ∑i∣ci(O)∣=BO\sum_i|c_i(O)|=B_O∑i​∣ci​(O)∣=BO​, and every real matrix rrr satisfying ∣rij−Tij∣≤ε|r_{ij}-T_{ij}|\le\varepsilon∣rij​−Tij​∣≤ε for every i,ji,ji,j, the assertion is

∣∑i,jci(O) rij cj(ρ)−Re⁡Tr⁡(ON(ρ))∣≤εBρBO.\left|\sum_{i,j}c_i(O)\,r_{ij}\,c_j(\rho) -\operatorname{Re}\operatorname{Tr}(O\mathcal N(\rho))\right| \le\varepsilon B_\rho B_O.​i,j∑​ci​(O)rij​cj​(ρ)−ReTr(ON(ρ))​≤εBρ​BO​.

There is no upper bound on ε\varepsilonε. At n=0n=0n=0 the matrix space is one-dimensional; an empty Kraus family cannot satisfy the stated identity, and the assumption BO>0B_O>0BO​>0 excludes O=0O=0O=0.

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