Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Conditional fidelity and deterministic completion

Open
QAlgorithms.Papers.Independent.Extend50.P08.conditional_deterministic_fidelity

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

prove2quantum

Let N≥1N\ge1N≥1, d≥2d\ge2d≥2, and let the resource filter OOO be either the identity or the canonical deterministic-optimal filter obtained from a nonnegative unit principal teleportation-matrix eigenvector. Use the physical SRM effects Πi\Pi_iΠi​ and failure Δ\DeltaΔ. The corresponding deterministic protocol uses the same resource and effects Πi+Δ/N\Pi_i+\Delta/NΠi​+Δ/N. Both families are physical and minimal-PBT success ppp is positive. Their conditional and unconditional entanglement fidelities obey

F=Fdetp.F=\frac{F_{\mathrm{det}}}{p}.F=pFdet​​.

For the nonoptimized qubit resource,

F=2−(N+2)∑α⊢N−1(∑μ∈αdμmμ)21−(N+2)/2N+1.F=\frac{2^{-(N+2)}\sum_{\alpha\vdash N-1}\left(\sum_{\mu\in\alpha}\sqrt{d_\mu m_\mu}\right)^2}{1-(N+2)/2^{N+1}}.F=1−(N+2)/2N+12−(N+2)∑α⊢N−1​(∑μ∈α​dμ​mμ​​)2​.

All diagrams in this specialization have height at most two. This uses (A10) as the unambiguous numerator of the source’s qubit specialization. Here dλd_\lambdadλ​ is the dimension of the actual symmetric-group Specht module labelled by λ\lambdaλ, and mλm_\lambdamλ​ is its Schur–Weyl multiplicity for local dimension ddd (with d=2d=2d=2 in the qubit case).

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P08
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder Matrix.Norms.L2Operator

namespace QAlgorithms.Papers.Independent.Extend50.P08

attribute [local instance] Classical.propDecidable Classical.decEq

/-- Eqs.(35)–(37), PDF pp.10–11: linked SRM protocols, including the
nonoptimized qubit specialization using the unambiguous numerator (A10), p.20. -/
theorem conditional_deterministic_fidelity (d N : ℕ) (hd : 2 ≤ d) (hN : 0 < N) :
    (∀ O : AliceMatrix d N,
      (O = 1 ∨ ∃ v : Schur.Partition d N → ℝ, IsPrincipal v ∧ O = deterministicFilter v) →
      IsPhysicalPBT O (minimalEffects d N) ∧ IsPhysicalPBT O (completedEffects d N) ∧
      0 < pbtSuccess O (minimalEffects d N) ∧
      conditionalFidelity (by omega) O (minimalEffects d N) =
        QuditFidelity.entanglementFidelity d (by omega)
          (successfulMap O (completedEffects d N)) / pbtSuccess O (minimalEffects d N)) ∧
    conditionalFidelity (by norm_num : 0 < 2) (1 : AliceMatrix 2 N) (minimalEffects 2 N) =
      bellDeterministicFormula 2 N / (1 - ((N : ℝ) + 2) / 2 ^ (N + 1)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P08

end
Source
Minimal Port-based Teleportation, arXiv:2111.05499v2, PDF p. 10, §III A, Eqs.(35)–(37): conditional fidelity versus completed deterministic PBT
Read-back

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

For every d,N∈Nd,N\in\mathbb Nd,N∈N with d≥2d\ge2d≥2 and N>0N>0N>0, use the following constructions, also with dimension D=2D=2D=2 where specified. Let PD,n\mathcal P_{D,n}PD,n​ consist of Young diagrams with nnn cells and at most DDD rows. For each λ\lambdaλ, let Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ preserve the rows and columns under the fixed numbering of its cells, and define

(Yλ)g,h=∑a∈Rλ, b∈Cλg=habsgn⁡(b).(Y_\lambda)_{g,h} =\sum_{\substack{a\in R_\lambda,\ b\in C_\lambda\\g=hab}}\operatorname{sgn}(b).(Yλ​)g,h​=a∈Rλ​, b∈Cλ​g=hab​∑​sgn(b).

Let fλf_\lambdafλ​ be the complex dimension of its column span, QλQ_\lambdaQλ​ the orthogonal projection onto that span, LπL_\piLπ​ the matrix with entry 111 when g=πhg=\pi hg=πh, and χλ(π)=tr⁡(LπQλ)\chi_\lambda(\pi)=\operatorname{tr}(L_\pi Q_\lambda)χλ​(π)=tr(Lπ​Qλ​). Let (Tπ)y,x=1(T_\pi)_{y,x}=1(Tπ​)y,x​=1 when y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1, and zero otherwise, and set

Pλ=fλn!∑π∈Snχλ(π−1)Tπ.P_\lambda=\frac{f_\lambda}{n!}\sum_{\pi\in S_n}\chi_\lambda(\pi^{-1})T_\pi.Pλ​=n!fλ​​π∈Sn​∑​χλ​(π−1)Tπ​.

Let mλm_\lambdamλ​ count fillings by 0,…,D−10,\ldots,D-10,…,D−1 weakly increasing along rows and strictly increasing down columns. For μ,ν∈PD,N\mu,\nu\in\mathcal P_{D,N}μ,ν∈PD,N​, let Hμ,νH_{\mu,\nu}Hμ,ν​ count diagrams of size N−1N-1N−1 contained in both. A real function vvv on PD,N\mathcal P_{D,N}PD,N​ qualifies when all its entries are nonnegative, ∑μvμ2=1\sum_\mu v_\mu^2=1∑μ​vμ2​=1, and vTHv≥wTHwv^{\mathsf T}Hv\ge w^{\mathsf T}HwvTHv≥wTHw for every real www with ∑μwμ2=1\sum_\mu w_\mu^2=1∑μ​wμ2​=1; its filter is

Ov=∑μ∈PD,NDN vμfμmμPμ.O_v=\sum_{\mu\in\mathcal P_{D,N}} \frac{\sqrt{D^N}\,v_\mu}{\sqrt{f_\mu m_\mu}}P_\mu.Ov​=μ∈PD,N​∑​fμ​mμ​​DN​vμ​​Pμ​.

For each i<Ni<Ni<N, define matrices on {0,…,D−1}N×{0,…,D−1}\{0,\ldots,D-1\}^{N}\times\{0,\ldots,D-1\}{0,…,D−1}N×{0,…,D−1} by

(Bi)(x,c),(y,c′)={D−1,xj=yj (j≠i),xi=c,yi=c′,0,otherwise,Ai=BiDN−1,R=f ⁣(∑iAi),(B_i)_{(x,c),(y,c')}= \begin{cases} D^{-1},&x_j=y_j\ (j\ne i),\quad x_i=c,\quad y_i=c',\\ 0,&\text{otherwise}, \end{cases} \quad A_i=\frac{B_i}{D^{N-1}}, \quad R=f\!\left(\sum_iA_i\right),(Bi​)(x,c),(y,c′)​={D−1,0,​xj​=yj​ (j=i),xi​=c,yi​=c′,otherwise,​Ai​=DN−1Bi​​,R=f(i∑​Ai​),

where f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1 is applied by continuous functional calculus with f(0)=0f(0)=0f(0)=0. Set Mi=RAiRM_i=RA_iRMi​=RAi​R, M∅=I−∑iMiM_\varnothing=I-\sum_iM_iM∅​=I−∑i​Mi​, and M^i=Mi+M∅/N\widehat M_i=M_i+M_\varnothing/NMi​=Mi​+M∅​/N, M^∅=0\widehat M_\varnothing=0M∅​=0. For an Alice filter OOO, an effect family EEE, and a complex D×DD\times DD×D matrix XXX, define

TO,E(X)b,b′=D−N∑i<N∑x,yxi=b, yi=b′xj=yj (j≠i)∑c,c′<D((O†⊗I)Ei(O⊗I))(y,c′),(x,c)Xc,c′.\mathcal T_{O,E}(X)_{b,b'}= D^{-N}\sum_{i<N} \sum_{\substack{x,y\\x_i=b,\ y_i=b'\\x_j=y_j\ (j\ne i)}} \sum_{c,c'<D} \bigl((O^\dagger\otimes I)E_i(O\otimes I)\bigr)_{(y,c'),(x,c)}X_{c,c'}.TO,E​(X)b,b′​=D−Ni<N∑​x,yxi​=b, yi​=b′xj​=yj​ (j=i)​∑​c,c′<D∑​((O†⊗I)Ei​(O⊗I))(y,c′),(x,c)​Xc,c′​.

For any such map T\mathcal TT, write

p(T)=Re⁡tr⁡T(I/D),F(T)=Re⁡tr⁡ ⁣(∣ΦD⟩⟨ΦD∣ (id⊗T)(∣ΦD⟩⟨ΦD∣)),ΦD=D−1/2∑a<D∣a,a⟩,p(\mathcal T)=\operatorname{Re}\operatorname{tr}\mathcal T(I/D), \quad F(\mathcal T)= \operatorname{Re}\operatorname{tr}\!\left( |\Phi_D\rangle\langle\Phi_D|\, (\mathrm{id}\otimes\mathcal T)(|\Phi_D\rangle\langle\Phi_D|) \right), \quad \Phi_D=D^{-1/2}\sum_{a<D}|a,a\rangle,p(T)=RetrT(I/D),F(T)=Retr(∣ΦD​⟩⟨ΦD​∣(id⊗T)(∣ΦD​⟩⟨ΦD​∣)),ΦD​=D−1/2a<D∑​∣a,a⟩,

where the identity tensor extension applies the map to each block in the first register. The theorem asserts that, for every complex matrix OOO on {0,…,d−1}N\{0,\ldots,d-1\}^{N}{0,…,d−1}N, if O=IO=IO=I or O=OvO=O_vO=Ov​ for some qualifying vvv at dimension ddd, then tr⁡(O†O)=dN\operatorname{tr}(O^\dagger O)=d^Ntr(O†O)=dN, both MMM and M^\widehat MM have positive semidefinite effects summing to the identity, p(TO,M)>0p(\mathcal T_{O,M})>0p(TO,M​)>0, and

F(TO,M)p(TO,M)=F(TO,M^)p(TO,M).\frac{F(\mathcal T_{O,M})}{p(\mathcal T_{O,M})} = \frac{F(\mathcal T_{O,\widehat M})}{p(\mathcal T_{O,M})}.p(TO,M​)F(TO,M​)​=p(TO,M​)F(TO,M​)​.

In addition, for the same NNN, it asserts the dimension-two identity

F(TI,M)p(TI,M)=2−(N+2)∑α∈P2,N−1(∑μ∈P2,Nα⊆μfμmμ)21−N+22N+1,\frac{F(\mathcal T_{I,M})}{p(\mathcal T_{I,M})} = \frac{\displaystyle 2^{-(N+2)} \sum_{\alpha\in\mathcal P_{2,N-1}} \left( \sum_{\substack{\mu\in\mathcal P_{2,N}\\\alpha\subseteq\mu}} \sqrt{f_\mu m_\mu} \right)^2} {\displaystyle 1-\frac{N+2}{2^{N+1}}},p(TI,M​)F(TI,M​)​=1−2N+1N+2​2−(N+2)α∈P2,N−1​∑​​μ∈P2,N​α⊆μ​∑​fμ​mμ​​​2​,

where all constructions in this last display use D=2D=2D=2, irrespective of the original ddd. Every scalar inverse uses inverse zero equal to zero.

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