Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section IV B: average fidelity and its A/B/C transforms are not stable

Open
QAlgorithms.Papers.Independent.Advance50.P17.averageFidelityNonstability

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

prove2quantum

Let FaveF_{\rm ave}Fave​ be the normalized Haar average of squared state fidelity. It obeys Fave(E,E)=1F_{\rm ave}(\mathcal E,\mathcal E)=1Fave​(E,E)=1 for every CPTP map, so it fails the diagonal-zero metric axiom. There also exist a positive finite-dimensional CPTP map E\mathcal EE, a unitary ideal UUU, and a positive finite ancilla AAA for which

g:=Fave(IA⊗E,IA⊗U)≠f:=Fave(E,U).g:=F_{\rm ave}(\mathcal I_A\otimes\mathcal E,\mathcal I_A\otimes\mathcal U)\ne f:=F_{\rm ave}(\mathcal E,\mathcal U).g:=Fave​(IA​⊗E,IA​⊗U)=f:=Fave​(E,U).

For the same pair, h(g)≠h(f)h(g)\ne h(f)h(g)=h(f) for each h(t)=arccos⁡th(t)=\arccos\sqrt th(t)=arccost​, 2−2t\sqrt{2-2\sqrt t}2−2t​​, and 1−t\sqrt{1-t}1−t​. These transforms are applied after averaging, unlike averaged state metrics.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P17
Formal statement
noncomputable section

open MeasureTheory Filter

open scoped Matrix ComplexConjugate Topology

namespace QAlgorithms.Papers.Independent.Advance50.P17

open QAlgorithms.Papers.Independent.Information100.P53 (fidelity)

open QAlgorithms.Papers.Independent.Information100.P08 (canonicalPurification)

open QAlgorithms.Papers.Independent.Information100.P75 (hermitianReal)

variable {I J K : Type} [Fintype I] [Fintype J] [Fintype K]
  [DecidableEq I] [DecidableEq J] [DecidableEq K]
  [Nonempty I] [Nonempty J] [Nonempty K]

/-- Section IV B, PDF p.7: F_ave has diagonal value one, hence is not a metric; it and all
three transforms applied AFTER averaging fail stability, even with unitary ideal process. -/
theorem averageFidelityNonstability :
    (∀ E : FiniteProcess I I, aveFidelity E.val E.val = 1) ∧
    (¬ MetricAxioms (fun E F : FiniteProcess I I => aveFidelity E.val F.val)) ∧
    (∃ d m : ℕ, ∃ hd : 0 < d, ∃ hm : 0 < m,
      letI : Nonempty (Fin d) := ⟨⟨0,hd⟩⟩
      letI : Nonempty (Fin m) := ⟨⟨0,hm⟩⟩
      ∃ E : FiniteProcess (Fin d) (Fin d), ∃ U : Matrix.unitaryGroup (Fin d) ℂ,
        let f := aveFidelity E.val (conjSuperop (U : Matrix (Fin d) (Fin d) ℂ))
        let g := aveFidelity (idTensorSuperop (R := Fin m) E.val)
          (idTensorSuperop (R := Fin m) (conjSuperop (U : Matrix (Fin d) (Fin d) ℂ)))
        g ≠ f ∧ ∀ c : Choice, c ≠ .trace → fidelityTransform c g ≠ fidelityTransform c f) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P17

end
Source
Distance measures to compare real and ideal quantum processes, arXiv:quant-ph/0408063v2, PDF p. 7, Section IV B: average fidelity and its A/B/C transforms are not stable
Read-back

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

Let III be any finite nonempty index type with decidable equality. A channel on III means a map on complex I×II\times II×I matrices admitting a finite representation E(X)=∑aKaXKa†E(X)=\sum_a K_aXK_a^\daggerE(X)=∑a​Ka​XKa†​, where ∑aKa†Ka=1\sum_aK_a^\dagger K_a=1∑a​Ka†​Ka​=1. Write Pψ=ψψ†P_\psi=\psi\psi^\daggerPψ​=ψψ†, and define the fidelity of two matrices by

F(A,B)=(Re⁡tr⁡A BA)2,\mathcal F(A,B)=\left(\operatorname{Re}\operatorname{tr}\sqrt{\sqrt A\,B\sqrt A}\right)^2,F(A,B)=(RetrA​BA​​)2,

where square roots mean the specified matrix functional calculus. Define F‾(E,F)\overline{\mathcal F}(E,F)F(E,F) as the Haar integral of F(E(Pψ),F(Pψ))\mathcal F(E(P_\psi),F(P_\psi))F(E(Pψ​),F(Pψ​)), with ψ\psiψ the column of a Haar distributed unitary corresponding to the chosen distinguished basis element, after identifying III with {0,…,∣I∣−1}\{0,\ldots,|I|-1\}{0,…,∣I∣−1}. Then F‾(E,E)=1\overline{\mathcal F}(E,E)=1F(E,E)=1 for every channel EEE on III, and the function (E,F)↦F‾(E,F)(E,F)\mapsto\overline{\mathcal F}(E,F)(E,F)↦F(E,F) does not satisfy the conjunction of nonnegativity, vanishing exactly when E=FE=FE=F, symmetry, and the triangle inequality. Moreover, there exist positive integers d,md,md,m, a channel EEE on Cd\mathbb C^dCd, and a unitary UUU on Cd\mathbb C^dCd, such that, writing U(X)=UXU†\mathcal U(X)=UXU^\daggerU(X)=UXU†,

f=F‾(E,U),g=F‾(id⁡m⊗E,id⁡m⊗U),f=\overline{\mathcal F}(E,\mathcal U),\qquad g=\overline{\mathcal F}(\operatorname{id}_m\otimes E,\operatorname{id}_m\otimes\mathcal U),f=F(E,U),g=F(idm​⊗E,idm​⊗U),

one has g≠fg\ne fg=f, and also h(g)≠h(f)h(g)\ne h(f)h(g)=h(f) for each of the three functions

h(x)=arccos⁡x,h(x)=2−2x,h(x)=1−x.h(x)=\arccos\sqrt x,\qquad h(x)=\sqrt{2-2\sqrt x},\qquad h(x)=\sqrt{1-x}.h(x)=arccosx​,h(x)=2−2x​​,h(x)=1−x​.

Here id⁡m⊗E\operatorname{id}_m\otimes Eidm​⊗E applies EEE separately to every matrix block indexed by the reference indices. The positive dimensions are existentially quantified and are not otherwise restricted.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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