Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Prediction when the nonzero transfer-matrix locations are known

Open
QAlgorithms.Papers.Independent.Extend50.P46.lemma3_8

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 any state and O=O†O=O^\daggerO=O†. A supplied finite support set SSS has ∣S∣≤s|S|\le s∣S∣≤s and contains every nonzero entry of RQR^QRQ. Suppose the supplied estimates satisfy ∣R^ij−RijQ∣≤ε|\widehat R_{ij}-R^Q_{ij}|\le\varepsilon∣Rij​−RijQ​∣≤ε on SSS, where ε>0\varepsilon>0ε>0. Then

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

This result requires knowledge that the omitted entries vanish; a numerical sparsity bound alone does not supply that knowledge.

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.19, Lemma 3.8. S is supplied and known to contain every nonzero
entry; off-support estimates are never used by the computed estimator. -/
theorem lemma3_8 {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)
    (s : ℕ) (S : Finset (Fin (4 ^ n) × Fin (4 ^ n))) (hcard : S.card ≤ s)
    (hsupport : ∀ i j, (i,j) ∉ S → tm Q N i j = 0)
    (eps : ℝ) (heps : 0 < eps)
    (r : Matrix (Fin (4 ^ n)) (Fin (4 ^ n)) ℝ)
    (haccuracy : ∀ i j, (i,j) ∈ S → |r i j - tm Q N i j| ≤ eps) :
    |predictOn Q S r rho O - (O * N.val rho).trace.re| ≤
      eps * s * 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. 19, Lemma 3.8
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 matrices on nnn bits, each EiE_iEi​ Hermitian and Tr⁡(EiEj)=δij\operatorname{Tr}(E_iE_j)=\delta_{ij}Tr(Ei​Ej​)=δij​. Let N\mathcal NN be a complex-linear map with a finite representation N(X)=∑ℓKℓXKℓ∗\mathcal N(X)=\sum_\ell K_\ell X K_\ell^{*}N(X)=∑ℓ​Kℓ​XKℓ∗​ for every XXX, satisfying ∑ℓKℓ∗Kℓ=I\sum_\ell K_\ell^{*}K_\ell=I∑ℓ​Kℓ∗​Kℓ​=I; let ρ\rhoρ be positive semidefinite of trace 111 and OOO 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 every natural number sss, finite set SSS of index pairs with ∣S∣≤s|S|\le s∣S∣≤s and Tij=0T_{ij}=0Tij​=0 whenever (i,j)∉S(i,j)\notin S(i,j)∈/S, every real ε>0\varepsilon>0ε>0, and every real matrix rrr satisfying ∣rij−Tij∣≤ε|r_{ij}-T_{ij}|\le\varepsilon∣rij​−Tij​∣≤ε whenever (i,j)∈S(i,j)\in S(i,j)∈S, the assertion is

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

Here ∥⋅∥op\|\cdot\|_{\mathrm{op}}∥⋅∥op​ is the Euclidean operator norm, and no accuracy condition is imposed on entries of rrr outside SSS. Empty SSS and s=0s=0s=0 are included in the quantifiers, but their hypotheses would force N\mathcal NN to be the zero map, which cannot satisfy the Kraus normalization on this nonzero-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