Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(8), p. 2 — given k1,…,kℓk_1,\dots,k_\ellk1​,…,kℓ​ and mim_imi​ as in (6), Pr⁡[∣Y~−Y∣≥ε]≤δ\Pr[|\tilde Y - Y| \ge \varepsilon] \le \deltaPr[∣Y~−Y∣≥ε]≤δ

Proved
DirectFidelity.State.eq_8

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

fidelity-estimationhoeffdingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-information

Let ρ\rhoρ be a pure state and σ\sigmaσ a state on nnn qubits, and ε,δ>0\varepsilon,\delta>0ε,δ>0. Fix any labels k1,…,kℓk_1,\dots,k_\ellk1​,…,kℓ​, ℓ=⌈1/(ε2δ)⌉\ell = \lceil 1/(\varepsilon^2\delta)\rceilℓ=⌈1/(ε2δ)⌉, with χρ(ki)≠0\chi_\rho(k_i)\ne0χρ​(ki​)=0. Use mim_imi​ copies of σ\sigmaσ for label kik_iki​, with mim_imi​ as in (6), measure WkiW_{k_i}Wki​​ on each, and form the estimate Y~\tilde YY~ of (7). Then

Pr⁡[ ∣Y~−Y∣≥ε ]≤δ,\Pr\big[\,|\tilde Y - Y|\ge\varepsilon\,\big]\le\delta ,Pr[∣Y~−Y∣≥ε]≤δ,

the probability being over the measurement outcomes.

This is the finite-precision half of the protocol's guarantee; together with (5) it gives the main result.

Formalization Note. The page states (8) after "Given any choice of k1,…,kℓk_1,\dots,k_\ellk1​,…,kℓ​"; it is stated here for every fixed label tuple with all χρ(ki)≠0\chi_\rho(k_i)\neq0χρ​(ki​)=0, the only tuples the sampling (3) produces with positive probability (at the others X~i\tilde X_iX~i​ is undefined on the page and a junk value in Lean).

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

theorem eq_8 (n : ℕ) (ρ σ : Matrix (Q n) (Q n) ℂ) (hρ : IsPure ρ)
    (hσ : WildeQIT.IsDensityOperator σ) (ε δ : ℝ) (hε : 0 < ε) (hδ : 0 < δ)
    (ks : Fin (ell ε δ) → P n) (hks : ∀ i, chi ρ (ks i) ≠ 0) :
    (outcomes σ ks (mVec ρ ε δ ks)).real
        {A | ε ≤ |Yt ρ ks (mVec ρ ε δ ks) A - Y ρ σ ks|} ≤ δ := by sorry

end DirectFidelity.State
Source
Flammia and Liu, Direct fidelity estimation from few Pauli measurements, arXiv:1104.4695v3, p. 2, §Fidelity Estimation, (8); proof p. 6, (16)–(18)
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