Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1: average and worst-case fidelities

Open
QAlgorithms.Papers.Independent.Extend50.P06.average_worstCase

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

prove2quantum

All registers have specified computational bases and positive finite dimensions. An unknown operation is the channel of U∈SU(d)U\in\mathrm{SU}(d)U∈SU(d), with k≥1k\ge1k≥1 identical black-box uses. Every process, probe, measurement and guess is fixed independently of UUU. The unnormalized input-first Choi operator is J(V)=∣V⟩ ⁣⟩⟨ ⁣⟨V∣J(V)=|V\rangle\!\rangle\langle\!\langle V|J(V)=∣V⟩⟩⟨⟨V∣, where ∣V⟩ ⁣⟩=∑i∣i⟩⊗V∣i⟩|V\rangle\!\rangle=\sum_i|i\rangle\otimes V|i\rangle∣V⟩⟩=∑i​∣i⟩⊗V∣i⟩. For a target f(U)f(U)f(U) of dimension eee, write F(S,f;U)=Re⁡tr⁡[(S∗J(U)⊗k)J(f(U))]/e2F(S,f;U)=\operatorname{Re}\operatorname{tr}[(S*J(U)^{\otimes k})J(f(U))]/e^2F(S,f;U)=Retr[(S∗J(U)⊗k)J(f(U))]/e2 and F‾(S,f)=∫F(S,f;U) dU\overline F(S,f)=\int F(S,f;U)\,dUF(S,f)=∫F(S,f;U)dU, for probability Haar measure. Parallel, sequential and general processes mean Definitions 2–4, with arbitrary finite memory. Write Fc∗(f;d,k)F_c^*(f;d,k)Fc∗​(f;d,k) for the greatest attained average fidelity in class ccc; any displayed optimum includes attainment.

Let f:SU(d)→SU(e)f:\mathrm{SU}(d)\to\mathrm{SU}(e)f:SU(d)→SU(e) be Borel-measurable and either multiplicative, f(UV)=f(U)f(V)f(UV)=f(U)f(V)f(UV)=f(U)f(V), or anti-multiplicative, f(UV)=f(V)f(U)f(UV)=f(V)f(U)f(UV)=f(V)f(U). For any process SSS of one specified class ccc, there is a process S′S'S′ in the same class and on the same registers such that

min⁡U∈SU(d)F(S′,f;U)=F‾(S,f).\min_{U\in\mathrm{SU}(d)}F(S',f;U)=\overline F(S,f).U∈SU(d)min​F(S′,f;U)=F(S,f).

The minimum is attained. This equates average performance with achievable worst-case performance without changing the allowed class.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P06
Formal statement
namespace QAlgorithms.Papers.Independent.Extend50.P06

open scoped BigOperators ComplexConjugate Matrix ComplexOrder

open MeasureTheory

noncomputable section

attribute [local instance] Classical.propDecidable

-- Exact accepted interfaces; no duplicate SU subtype or ambient-coordinate Haar law.

open QAlgorithms.Papers.Independent.Information100.P47 (Mat)

open QAlgorithms.Papers.Independent.Claimed50.P21 (SU HaarLaw)

open QAlgorithms.Papers.Independent.Dependency50.P05 (ChannelChoi)

attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P06.targetMatrixMeasurable

/-- Theorem 1, PDF pp.12,30: class-preserving average/worst-case equivalence.
The worst case is an attained minimum; normalization is e^{-2}, including in
the appendix's intermediate formulas where the printed factor is omitted. -/
theorem average_worstCase (d e k : ℕ) (hd : 0 < d) (he : 0 < e) (hk : 1 ≤ k)
    (H : HaarLaw d) (f : Target d e) (c : StrategyClass)
    (hf : Homomorphic f ∨ Antihomomorphic f) (S : TransformationProcess k d e)
    (hS : TransformationAdmissible c S) :
    ∃ Snew : TransformationProcess k d e, TransformationAdmissible c Snew ∧
      IsLeast (Set.range (pointFidelity Snew f.value)) (transformationAverage H f.value S) := by sorry

end

end QAlgorithms.Papers.Independent.Extend50.P06
Source
Deterministic transformations between unitary operations: Exponential advantage with adaptive quantum circuits and the power of indefinite causality, arXiv:2109.08202v3, PDF p. 12, Theorem 1: average and worst-case fidelities
Read-back

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

For natural numbers d,e,kd,e,kd,e,k with d>0d>0d>0, e>0e>0e>0, and k≥1k\ge1k≥1, let HHH be a probability measure on SU(d)\mathrm{SU}(d)SU(d) invariant under left and right multiplication. Let f:SU(d)→Me(C)f:\mathrm{SU}(d)\to M_e(\mathbb C)f:SU(d)→Me​(C) be continuous, take values in SU(e)\mathrm{SU}(e)SU(e), and satisfy either f(UV)=f(U)f(V)f(UV)=f(U)f(V)f(UV)=f(U)f(V) for all U,VU,VU,V, or f(UV)=f(V)f(U)f(UV)=f(V)f(U)f(UV)=f(V)f(U) for all U,VU,VU,V. Choose any class c∈{parallel,sequential,general}c\in\{\text{parallel},\text{sequential},\text{general}\}c∈{parallel,sequential,general}. Put Q={0,…,d−1}{0,…,k−1}Q=\{0,\ldots,d-1\}^{\{0,\ldots,k-1\}}Q={0,…,d−1}{0,…,k−1}, and let process matrices be indexed by W={0,…,e−1}×Q×Q×{0,…,e−1}W=\{0,\ldots,e-1\}\times Q\times Q\times\{0,\ldots,e-1\}W={0,…,e−1}×Q×Q×{0,…,e−1}. For x=(a,i,o,b)x=(a,i,o,b)x=(a,i,o,b), define

C(V)(a,b),(a′,b′)=Vb,aVb′,a′‾,BU(i,o),(j,v)=∏t<kUot,itUvt,jt‾,LT(B)(a,b),(a′,b′)=∑i,j,o,vT(a,i,o,b),(a′,j,v,b′)B(i,o),(j,v),C(V)_{(a,b),(a',b')}=V_{b,a}\overline{V_{b',a'}}, \quad B_U{}_{(i,o),(j,v)}=\prod_{t<k}U_{o_t,i_t}\overline{U_{v_t,j_t}}, \quad L_T(B)_{(a,b),(a',b')}=\sum_{i,j,o,v}T_{(a,i,o,b),(a',j,v,b')}B_{(i,o),(j,v)},C(V)(a,b),(a′,b′)​=Vb,a​Vb′,a′​​,BU​(i,o),(j,v)​=t<k∏​Uot​,it​​Uvt​,jt​​​,LT​(B)(a,b),(a′,b′)​=i,j,o,v∑​T(a,i,o,b),(a′,j,v,b′)​B(i,o),(j,v)​,

and FT(U)=Re⁡Tr⁡(LT(BU)C(f(U)))/e2F_T(U)=\operatorname{Re}\operatorname{Tr}(L_T(B_U)C(f(U)))/e^2FT​(U)=ReTr(LT​(BU​)C(f(U)))/e2, F‾T=∫FT(U) dH(U)\overline F_T=\int F_T(U)\,dH(U)FT​=∫FT​(U)dH(U). To specify admissibility, define (RMT)x,y=0(\mathcal R_MT)_{x,y}=0(RM​T)x,y​=0 if x,yx,yx,y disagree on selected wires MMM, and otherwise (RMT)x,y=∣W∣−1∑z∈WTx[M←z],y[M←z](\mathcal R_MT)_{x,y}=|W|^{-1}\sum_{z\in W}T_{x[M\leftarrow z],y[M\leftarrow z]}(RM​T)x,y​=∣W∣−1∑z∈W​Tx[M←z],y[M←z]​. Write A,BA,BA,B for the first and last wires and I,OI,OI,O for all query input and output wires. All admissible matrices are positive semidefinite. Parallel admissibility further requires RBT=RO∪BT\mathcal R_BT=\mathcal R_{O\cup B}TRB​T=RO∪B​T, RI∪O∪BT=RA∪I∪O∪BT\mathcal R_{I\cup O\cup B}T=\mathcal R_{A\cup I\cup O\cup B}TRI∪O∪B​T=RA∪I∪O∪B​T, and Tr⁡T=edk\operatorname{Tr}T=ed^kTrT=edk. Sequential admissibility requires the latter equality and trace condition, together with RMtT=RMt∪{ot}T\mathcal R_{M_t}T=\mathcal R_{M_t\cup\{o_t\}}TRMt​​T=RMt​∪{ot​}​T for every t<kt<kt<k, where Mt={ij,oj:j>t}∪BM_t=\{i_j,o_j:j>t\}\cup BMt​={ij​,oj​:j>t}∪B. General admissibility requires that inserting any family of positive semidefinite slot matrices CtC_tCt​ with ∑o(Ct)(i,o),(j,o)=1i=j\sum_o(C_t)_{(i,o),(j,o)}=\mathbf1_{i=j}∑o​(Ct​)(i,o),(j,o)​=1i=j​ produces a positive semidefinite matrix LT(⨂tCt)L_T(\bigotimes_tC_t)LT​(⨂t​Ct​) whose output partial trace is the identity. For every admissible SSS in the chosen class, there exists an admissible SnewS_{\mathrm{new}}Snew​ in that same class for which

F‾S≤FSnew(U)for every U∈SU(d),FSnew(U0)=F‾Sfor some U0∈SU(d).\overline F_S\le F_{S_{\mathrm{new}}}(U)\quad\text{for every }U\in\mathrm{SU}(d), \qquad F_{S_{\mathrm{new}}}(U_0)=\overline F_S \quad\text{for some }U_0\in\mathrm{SU}(d).FS​≤FSnew​​(U)for every U∈SU(d),FSnew​​(U0​)=FS​for some U0​∈SU(d).

Thus the original average is an attained minimum of the new pointwise scores; constancy of those scores is not asserted.

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