Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Discovering significant transfer-matrix entries in a general basis

Open
QAlgorithms.Papers.Independent.Extend50.P46.lemmaB_5

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.

For a channel with at most sss nonzero QQQ-TM entries and unknown support, a learner uses

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).

With probability at least 1−δ1-\delta1−δ, the finite list of retained estimates has all four properties: omitted true entries have magnitude at most ε\varepsilonε; listed true entries have magnitude greater than ε/6\varepsilon/6ε/6; the list has length at most sss; and each listed estimate has absolute error at most ε\varepsilonε.

The list is constructed by a strict ε/2\varepsilon/2ε/2 cutoff on preliminary estimates. No support is supplied to the algorithm.

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.41, Lemma B.5: support discovery in an arbitrary Hermitian ONB,
with all four list guarantees and the same general-basis sample bound. -/
theorem lemmaB_5 :
    ∃ C : ℝ, 0 < C ∧ ∃ p : ℕ, ∀ n s : ℕ, ∀ 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},
          supportCount (fun ij : Fin (4 ^ n) × Fin (4 ^ n) => tm Q N ij.1 ij.2) ≤ s →

          1 - delta ≤ choiReportEventProbability P N {r | sparseListGood r (tm Q N) eps s} := 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. 41, Lemma B.5
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,sn,sn,s, every complex-linear Hermitian 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 tr⁡(QiQj)=1i=j\operatorname{tr}(Q_iQ_j)=\mathbf1_{i=j}tr(Qi​Qj​)=1i=j​, and all real ε>0\varepsilon>0ε>0 and 0<δ<10<\delta<10<δ<1, there is a learner using a natural number ccc of copies, finitely many 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 decoded real 4n×4n4^n\times4^n4n×4n matrices ror_oro​, with

c≤C n3+nlog⁡(δ−1)ε4(dK2)4(1+log⁡(n+2)+∣log⁡ε∣+∣log⁡δ∣+log⁡(max⁡{1,dK2}))p,d=2n,K=max⁡i∥Qi∥op.c\le C\,\frac{n^3+n\log(\delta^{-1})}{\varepsilon^4}(dK^2)^4 \bigl(1+\log(n+2)+|\log\varepsilon|+|\log\delta|+\log(\max\{1,dK^2\})\bigr)^p, \qquad d=2^n,\quad K=\max_i\|Q_i\|_{\mathrm{op}}.c≤Cε4n3+nlog(δ−1)​(dK2)4(1+log(n+2)+∣logε∣+∣logδ∣+log(max{1,dK2}))p,d=2n,K=imax​∥Qi​∥op​.

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, put 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∣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∣). If #{(i,j):Tij≠0}≤s\#\{(i,j):T_{ij}\ne0\}\le s#{(i,j):Tij​=0}≤s, then outcomes of total weight at least 1−δ1-\delta1−δ, under weights Re⁡tr⁡(MoJN⊗c)\operatorname{Re}\operatorname{tr}(M_oJ_{\mathcal N}^{\otimes c})Retr(Mo​JN⊗c​), satisfy the following four conditions for So={(i,j):ε/2<∣(ro)ij∣}S_o=\{(i,j):\varepsilon/2<|(r_o)_{ij}|\}So​={(i,j):ε/2<∣(ro​)ij​∣}: every pair outside SoS_oSo​ has ∣Tij∣≤ε|T_{ij}|\le\varepsilon∣Tij​∣≤ε; every pair inside SoS_oSo​ has ε/6<∣Tij∣\varepsilon/6<|T_{ij}|ε/6<∣Tij​∣; ∣So∣≤s|S_o|\le s∣So​∣≤s; and every pair inside SoS_oSo​ has ∣(ro)ij−Tij∣≤ε|(r_o)_{ij}-T_{ij}|\le\varepsilon∣(ro​)ij​−Tij​∣≤ε. The learner is chosen before the channel. The cases n=0n=0n=0, s=0s=0s=0, p=0p=0p=0, and zero copies are included; n=0n=0n=0 forces zero copies, a zeroth tensor power is the scalar 111, and for s=0s=0s=0 no channel satisfies the stated zero-support hypothesis.

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