Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(16)–(17), p. 6 — Pr⁡[∣Y~−Y∣≥t]≤2exp⁡(−2t2/C)\Pr[|\tilde Y - Y| \ge t] \le 2\exp(-2t^2/C)Pr[∣Y~−Y∣≥t]≤2exp(−2t2/C), C=∑i∑j≤mi(2ci)2C = \sum_i\sum_{j\le m_i}(2c_i)^2C=∑i​∑j≤mi​​(2ci​)2

Proved
DirectFidelity.State.eq_16

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. Fix ℓ≥1\ell\ge1ℓ≥1 Pauli labels k1,…,kℓk_1,\dots,k_\ellk1​,…,kℓ​ with χρ(ki)≠0\chi_\rho(k_i)\ne0χρ​(ki​)=0 and positive copy numbers m1,…,mℓm_1,\dots,m_\ellm1​,…,mℓ​. Measure WkiW_{k_i}Wki​​ on mim_imi​ independent copies of σ\sigmaσ, obtaining outcomes Aij∈{1,−1}A_{ij}\in\{1,-1\}Aij​∈{1,−1}, and form X~i=1mid χρ(ki)∑j=1miAij\tilde X_i = \frac{1}{m_i\sqrt d\,\chi_\rho(k_i)}\sum_{j=1}^{m_i}A_{ij}X~i​=mi​d​χρ​(ki​)1​∑j=1mi​​Aij​ and Y~=1ℓ∑iX~i\tilde Y = \frac1\ell\sum_i\tilde X_iY~=ℓ1​∑i​X~i​. Let Y=1ℓ∑iχσ(ki)/χρ(ki)Y = \frac1\ell\sum_i\chi_\sigma(k_i)/\chi_\rho(k_i)Y=ℓ1​∑i​χσ​(ki​)/χρ​(ki​) and

C=∑i=1ℓ∑j=1mi(2ci)2,ci=1ℓ mid χρ(ki).C = \sum_{i=1}^{\ell}\sum_{j=1}^{m_i}(2c_i)^2,\qquad c_i = \frac{1}{\ell\, m_i\sqrt d\,\chi_\rho(k_i)} .C=i=1∑ℓ​j=1∑mi​​(2ci​)2,ci​=ℓmi​d​χρ​(ki​)1​.

Then for every t>0t > 0t>0,

Pr⁡[ ∣Y~−Y∣≥t ]≤2exp⁡(−2t2/C).\Pr\big[\,|\tilde Y - Y|\ge t\,\big] \le 2\exp(-2t^2/C).Pr[∣Y~−Y∣≥t]≤2exp(−2t2/C).

This is Hoeffding's inequality for the finite-precision estimator: Y~\tilde YY~ is centred at YYY because EAij=d χσ(ki)\mathbb E A_{ij} = \sqrt d\,\chi_\sigma(k_i)EAij​=d​χσ​(ki​).

Formalization Note. The page's free variable ε\varepsilonε in (16) is named ttt. The probability is over the Born-rule product law of the outcomes for the fixed labels. The copy numbers are an arbitrary positive vector, of which (6) is a special case.

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

theorem eq_16 (n ℓ : ℕ) (ρ σ : Matrix (Q n) (Q n) ℂ) (hρ : IsPure ρ)
    (hσ : WildeQIT.IsDensityOperator σ) (hℓ : 0 < ℓ) (ks : Fin ℓ → P n)
    (hks : ∀ i, chi ρ (ks i) ≠ 0) (m : Fin ℓ → ℕ) (hm : ∀ i, 0 < m i) (t : ℝ) (ht : 0 < t) :
    (outcomes σ ks m).real {A | t ≤ |Yt ρ ks m A - Y ρ σ ks|} ≤
      2 * Real.exp (-2 * t ^ 2 / Chof ρ ks m) := by sorry

end DirectFidelity.State
Source
Flammia and Liu, Direct fidelity estimation from few Pauli measurements, arXiv:1104.4695v3, p. 6, §Bounding the Failure Probabilities, (16)–(17)
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