Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(5), p. 2 — with ℓ=⌈1/(ε2δ)⌉\ell = \lceil 1/(\varepsilon^2\delta)\rceilℓ=⌈1/(ε2δ)⌉ i.i.d. labels, Pr⁡[∣Y−tr(ρσ)∣≥ε]≤δ\Pr[|Y - \mathrm{tr}(\rho\sigma)| \ge \varepsilon] \le \deltaPr[∣Y−tr(ρσ)∣≥ε]≤δ

Proved
DirectFidelity.State.eq_5

by mikedeng1 · Oct 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

chebyshevfidelity-estimationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-information

Let ρ\rhoρ be a pure state and σ\sigmaσ a state on nnn qubits, and let ε,δ>0\varepsilon,\delta > 0ε,δ>0. Draw ℓ=⌈1/(ε2δ)⌉\ell = \lceil 1/(\varepsilon^2\delta)\rceilℓ=⌈1/(ε2δ)⌉ Pauli labels k1,…,kℓk_1,\dots,k_\ellk1​,…,kℓ​ independently from Pr⁡(k)=χρ(k)2\Pr(k) = \chi_\rho(k)^2Pr(k)=χρ​(k)2, and set Y=1ℓ∑i=1ℓχσ(ki)/χρ(ki)Y = \frac1\ell\sum_{i=1}^\ell \chi_\sigma(k_i)/\chi_\rho(k_i)Y=ℓ1​∑i=1ℓ​χσ​(ki​)/χρ​(ki​). Then

Pr⁡[ ∣Y−tr(ρσ)∣≥ε ]≤δ.\Pr\big[\,|Y - \mathrm{tr}(\rho\sigma)| \ge \varepsilon\,\big] \le \delta .Pr[∣Y−tr(ρσ)∣≥ε]≤δ.

This is the guarantee of the ideal, infinite-precision estimator: a number of Pauli observables independent of the system size suffices.

Formalization Note. The probability is written out as the finite sum ∑∏iPr⁡(ki)\sum \prod_{i}\Pr(k_i)∑∏i​Pr(ki​) over the label tuples (k1,…,kℓ)(k_1,\dots,k_\ell)(k1​,…,kℓ​) in the event. Tuples containing a label with χρ(ki)=0\chi_\rho(k_i) = 0χρ​(ki​)=0 have weight 000.

Preamble
import Mathlib
import Definitions.Def_WildeQIT_IsDensityOperator
import Definitions.Def_DirectFidelity_State_Setting
Formal statement
namespace DirectFidelity.State

theorem eq_5 (n : ℕ) (ρ σ : Matrix (Q n) (Q n) ℂ) (hρ : IsPure ρ)
    (hσ : WildeQIT.IsDensityOperator σ) (ε δ : ℝ) (hε : 0 < ε) (hδ : 0 < δ) :
    ∑ ks ∈ Finset.univ.filter
        (fun ks : Fin (ell ε δ) → P n => ε ≤ |Y ρ σ ks - ((ρ * σ).trace).re|),
      ∏ i, prob ρ (ks i) ≤ δ := by sorry

end DirectFidelity.State
Source
Flammia and Liu, Direct fidelity estimation from few Pauli measurements, arXiv:1104.4695v3, p. 2, §Fidelity Estimation, (5); proof p. 6, (15)
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 15, 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