Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Learning transfer matrices in an arbitrary Hermitian operator basis

Open
QAlgorithms.Papers.Independent.Extend50.P46.theoremB_1

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.

There is a learner using

m=O~ ⁣(n3+nlog⁡(1/δ)ε4(2nq2)4)m=\widetilde O\!\left(\frac{n^3+n\log(1/\delta)}{\varepsilon^4}(2^nq^2)^4\right)m=O(ε4n3+nlog(1/δ)​(2nq2)4)

copies and returning a table R^\widehat RR such that ∣R^ij−RijQ∣≤ε|\widehat R_{ij}-R^Q_{ij}|\le\varepsilon∣Rij​−RijQ​∣≤ε simultaneously for every pair, with probability at least 1−δ1-\delta1−δ.

No unitary or tensor-product promise is made on QQQ, and there is no classical storage or time bound. The soft factor is a fixed power of floored logarithms of the listed parameters.

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.39-40, Theorem B.1. Uniform soft-O constants and exponent precede
n and Q. Q is any complete Hermitian ONB, with no unitarity assumption. -/
theorem theoremB_1 :
    ∃ C : ℝ, 0 < C ∧ ∃ p : ℕ, ∀ n : ℕ, ∀ Q : HermitianBasis n,
      ∀ eps delta : ℝ, 0 < eps → 0 < delta → delta < 1 →
      ∃ P : ChoiLearner n (Matrix (Fin (4 ^ n)) (Fin (4 ^ n)) ℝ),
        (P.copies : ℝ) ≤ C * generalCost Q eps delta *
          softFactor p n eps delta ((2 : ℝ)^n * basisNorm Q ^ 2) ∧
        ∀ N : {F : (Matrix (Qubits n) (Qubits n) ℂ) →ₗ[ℂ] (Matrix (Qubits n) (Qubits n) ℂ) // IsChannel F},

          1 - delta ≤ choiReportEventProbability P N {r | tableGood r (tm Q N) eps} := 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. 39, Theorem B.1
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 the following holds for every natural number nnn, every complex-linear basis Q0,…,Q4n−1Q_0,\ldots,Q_{4^n-1}Q0​,…,Q4n−1​ of the matrices on Hn=C{0,1}n\mathcal H_n=\mathbb C^{\{0,1\}^n}Hn​=C{0,1}n whose elements are Hermitian and satisfy tr⁡(QiQj)=1\operatorname{tr}(Q_iQ_j)=1tr(Qi​Qj​)=1 if i=ji=ji=j and 000 otherwise, and all real ε>0\varepsilon>0ε>0 and 0<δ<10<\delta<10<δ<1. Put d=2nd=2^nd=2n, K=max⁡i∥Qi∥opK=\max_i\|Q_i\|_{\mathrm{op}}K=maxi​∥Qi​∥op​, 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 consisting of a natural number ccc of copies, a finite collection of positive semidefinite measurement matrices MoM_oMo​ summing to the identity on (Hn⊗Hn)⊗c(\mathcal H_n\otimes\mathcal H_n)^{\otimes c}(Hn​⊗Hn​)⊗c, and a decoded real 4n×4n4^n\times4^n4n×4n matrix ror_oro​ for each outcome, such that

c≤C n3+nlog⁡(δ−1)ε4(dK2)4Lp(dK2).c\le C\,\frac{n^3+n\log(\delta^{-1})}{\varepsilon^4}(dK^2)^4L_p(dK^2).c≤Cε4n3+nlog(δ−1)​(dK2)4Lp​(dK2).

For every complex-linear map N\mathcal NN on matrices admitting a finite Kraus representation N(X)=∑ℓ=0m−1EℓXEℓ†\mathcal N(X)=\sum_{\ell=0}^{m-1}E_\ell XE_\ell^\daggerN(X)=∑ℓ=0m−1​Eℓ​XEℓ†​ with ∑ℓEℓ†Eℓ=I\sum_\ell E_\ell^\dagger E_\ell=I∑ℓ​Eℓ†​Eℓ​=I, define Tij=Re⁡tr⁡(QiN(Qj))T_{ij}=\operatorname{Re}\operatorname{tr}(Q_i\mathcal N(Q_j))Tij​=Retr(Qi​N(Qj​)) and JN=d−1∑u,v∈{0,1}n∣u⟩⟨v∣⊗N(∣u⟩⟨v∣)J_{\mathcal N}=d^{-1}\sum_{u,v\in\{0,1\}^n}|u\rangle\langle v|\otimes\mathcal N(|u\rangle\langle v|)JN​=d−1∑u,v∈{0,1}n​∣u⟩⟨v∣⊗N(∣u⟩⟨v∣). Then

∑{o: ∀i,j, ∣(ro)ij−Tij∣≤ε}Re⁡tr⁡(MoJN⊗c)≥1−δ.\sum_{\{o:\ \forall i,j,\ |(r_o)_{ij}-T_{ij}|\le\varepsilon\}} \operatorname{Re}\operatorname{tr}(M_oJ_{\mathcal N}^{\otimes c})\ge1-\delta.{o: ∀i,j, ∣(ro​)ij​−Tij​∣≤ε}∑​Retr(Mo​JN⊗c​)≥1−δ.

The learner is chosen before N\mathcal NN; p=0p=0p=0, zero copies, and n=0n=0n=0 are allowed, with a zeroth tensor power interpreted as the scalar 111, and the displayed copy bound forces c=0c=0c=0 when n=0n=0n=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