Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A sparse input isolates a Hamiltonian coefficient

Open
QAlgorithms.Papers.Independent.Extend50.P46.lemma6_1

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

prove2quantum

Let H=H†H=H^\daggerH=H† be an nnn-qubit Hamiltonian, with α(C)=2−ntr⁡(HPC)∈R\alpha(C)=2^{-n}\operatorname{tr}(HP_C)\in\mathbb Rα(C)=2−ntr(HPC​)∈R and the identity coefficient fixed to zero. Let AAA have Aj≠IA_j\ne IAj​=I at a site jjj, and choose b∈{X,Y,Z}∖{Aj}b\in\{X,Y,Z\}\setminus\{A_j\}b∈{X,Y,Z}∖{Aj​}. Let Bj=bB_j=bBj​=b and Bk=IB_k=IBk​=I for k≠jk\ne jk=j. The constructed matrix

ρ=2−n(I+i2[PA,PB])\rho=2^{-n}\left(I+\frac{i}{2}[P_A,P_B]\right)ρ=2−n(I+2i​[PA​,PB​])

is a density matrix and satisfies

tr⁡(PB(−i[H,ρ]))=2α(A).\operatorname{tr}\bigl(P_B(-i[H,\rho])\bigr)=2\alpha(A).tr(PB​(−i[H,ρ]))=2α(A).

This identifies an individual Hamiltonian coefficient in a short-time derivative. The paper credits the underlying observation to HKT21, Yu+23, Sti+22 and GCC22.

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.29, Lemma 6.1. The printed Ai and k!=i are corrected to Aj and
k!=j. The formula includes the constructed density matrix, not an assumed one.
The observation is attributed locally to HKT21, Yu+23, Sti+22, and GCC22. -/
theorem lemma6_1 {n : ℕ} (H : (Matrix (Qubits n) (Qubits n) ℂ)) (hH : H.IsHermitian)
    (hidentity : hamiltonianCoeff H (fun _ => .I) = 0)
    (A : ErrorMitigation.PauliIndex n) (j : Fin n) (hA : A j ≠ .I)
    (b : Stabilizer.Pauli) (hb : b ≠ .I) (hbA : b ≠ A j) :
    IsDensityMatrix (pauliCoefficientProbe A (singleSite j b)) ∧
    (pauliOps (singleSite j b) *
      ((-Complex.I) • (H * pauliCoefficientProbe A (singleSite j b) - pauliCoefficientProbe A (singleSite j b) * H))).trace =
      ((2 * hamiltonianCoeff H A : ℝ) : ℂ) := 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. 29, Lemma 6.1
Read-back

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

For every natural number nnn, let Hn=C{0,1}n\mathcal H_n=\mathbb C^{\{0,1\}^n}Hn​=C{0,1}n, and for a string AAA of nnn symbols from the standard Pauli matrices I,X,Y,ZI,X,Y,ZI,X,Y,Z, let PA=⨂ℓ=0n−1AℓP_A=\bigotimes_{\ell=0}^{n-1}A_\ellPA​=⨂ℓ=0n−1​Aℓ​, with no additional phase. Let HHH be a Hermitian matrix on Hn\mathcal H_nHn​ satisfying 2−nRe⁡tr⁡H=02^{-n}\operatorname{Re}\operatorname{tr}H=02−nRetrH=0, and define hA=2−nRe⁡tr⁡(HPA)h_A=2^{-n}\operatorname{Re}\operatorname{tr}(HP_A)hA​=2−nRetr(HPA​). For every such Pauli string AAA, every index j∈{0,…,n−1}j\in\{0,\ldots,n-1\}j∈{0,…,n−1} with Aj≠IA_j\ne IAj​=I, and every b∈{I,X,Y,Z}b\in\{I,X,Y,Z\}b∈{I,X,Y,Z} satisfying b≠Ib\ne Ib=I and b≠Ajb\ne A_jb=Aj​, let BBB have symbol bbb at jjj and III everywhere else, and set R=2−n(I+i2(PAPB−PBPA))R=2^{-n}\bigl(I+\frac{\mathrm i}{2}(P_AP_B-P_BP_A)\bigr)R=2−n(I+2i​(PA​PB​−PB​PA​)). Then RRR is positive semidefinite with tr⁡R=1\operatorname{tr}R=1trR=1, and the following equality holds as an equality of complex numbers:

tr⁡ ⁣(PB[−i(HR−RH)])=2hA.\operatorname{tr}\!\left(P_B\bigl[-\mathrm i(HR-RH)\bigr]\right)=2h_A.tr(PB​[−i(HR−RH)])=2hA​.

The quantification includes n=0n=0n=0, but in that case there is no index jjj satisfying the required binder.

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