Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 21: operational optimal one-round trace formula

Open
QAlgorithms.Papers.Independent.Extend50.P04.optimal_trace

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

prove2quantum

Let N≥1N\ge1N≥1 be the number of ports and d≥2d\ge2d≥2 their local dimension. Each initial port is the normalized Bell vector d−1/2∑i=1d∣ii⟩d^{-1/2}\sum_{i=1}^d|ii\rangled−1/2∑i=1d​∣ii⟩. On Alice's NNN ports and input, let σa=d−(N−1)Iaˉ⊗Pa0+\sigma_a=d^{-(N-1)}I_{\bar a}\otimes P^+_{a0}σa​=d−(N−1)Iaˉ​⊗Pa0+​, ρ=∑aσa\rho=\sum_a\sigma_aρ=∑a​σa​, Πa=ρ−1/2σaρ−1/2\Pi_a=\rho^{-1/2}\sigma_a\rho^{-1/2}Πa​=ρ−1/2σa​ρ−1/2 (inverse zero on the kernel), Δ=I−∑aΠa\Delta=I-\sum_a\Pi_aΔ=I−∑a​Πa​, and Π~a=Πa+Δ/N\widetilde\Pi_a=\Pi_a+\Delta/NΠa​=Πa​+Δ/N. Write Va′V_a^\primeVa′​ for the swap of port aaa and input, transposed only on input in the computational basis. Here FrecF_{\rm rec}Frec​ is the Born-weighted average of the unsquared absolute overlaps of normalized whole output branches with the ideal state, retaining the teleported Bell pair and all unused ports. The measurement instrument is Π~a\sqrt{\widetilde\Pi_a}Πa​​; FnonF_{\rm non}Fnon​ uses identity resource operations. For rrr ports, let v(r)v^{(r)}v(r) be nonnegative Euclidean-normalized coefficients selected by maximizing the physical deterministic teleportation objective (6), and set Or=dr/2∑λ⊢rvλ(r)Pλ/dλmλO_r=d^{r/2}\sum_{\lambda\vdash r}v^{(r)}_\lambda P_\lambda/\sqrt{d_\lambda m_\lambda}Or​=dr/2∑λ⊢r​vλ(r)​Pλ​/dλ​mλ​​ using the actual central character projectors. At r=0r=0r=0 this is the scalar identity. Operators on fewer registers are extended by identities. Extend ON−1O_{N-1}ON−1​ only onto unused Alice ports, and write this embedding as O^N−1\widehat O_{N-1}ON−1​. At the last port,

Fopt(N,d)=Nd∣Tr⁡(σNΠ~N(ON⊗I)O^N−1†)∣.F_{\rm opt}(N,d)=\frac{\sqrt N}{d}\left|\operatorname{Tr}(\sigma_N\sqrt{\widetilde\Pi_N}(O_N\otimes I)\widehat O_{N-1}^\dagger)\right|.Fopt​(N,d)=dN​​​Tr(σN​ΠN​​(ON​⊗I)ON−1†​)​.

This evaluates the operational fidelity using the prescribed optimal resources and actual branch probabilities.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P04
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Extend50.P04

open QAlgorithms

open scoped Matrix ComplexConjugate ComplexOrder

attribute [local instance] Classical.propDecidable

/-- PDF pp.22-24, Theorem 21, (D6): operational optimized one-round unsquared fidelity.
The unused-resource operation is embedded on spectator Alice registers only. -/
theorem optimal_trace (d n : ℕ) (hd : 2 ≤ d)
    (v : Schur.Partition d (n + 1) → ℝ) (w : Schur.Partition d n → ℝ)
    (hv : IsOptimalCoefficients d (n + 1) v) (hw : IsOptimalCoefficients d n w) :
    recyclingFidelity d n (resourceOperation d (n + 1) v) (resourceOperation d n w) =
      Real.sqrt (n + 1 : ℝ) / (d : ℝ) *
      ‖(pbtSignal d (n + 1) (Fin.last n) * positiveRoot (fullEffect d (n + 1) (Fin.last n)) *
        extendInput (resourceOperation d (n + 1) v) *
        (extendUnused (Fin.last n) (resourceOperation d n w))ᴴ).trace‖ := by sorry

end QAlgorithms.Papers.Independent.Extend50.P04

end
Source
Square-root measurements and degradation of the resource state in port-based teleportation scheme, arXiv:2105.14886v4, PDF p. 22, Theorem 21: operational optimal one-round trace formula
Read-back

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

For every pair of natural numbers d,nd,nd,n with d≥2d\ge2d≥2, put N=n+1N=n+1N=n+1, write [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}, and let Pd,r\mathcal P_{d,r}Pd,r​ be the Young diagrams with rrr cells and first-column length at most ddd. The following definitions apply for r=n,Nr=n,Nr=n,N. Using a fixed bijective numbering of a diagram's cells by [r][r][r], let Rλ,Cλ⊆SrR_\lambda,C_\lambda\subseteq S_rRλ​,Cλ​⊆Sr​ be its row-preserving and column-preserving permutations, let VλV_\lambdaVλ​ be the image in CSr\mathbb C^{S_r}CSr​ of

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

and write Dλ=dim⁡CVλD_\lambda=\dim_{\mathbb C}V_\lambdaDλ​=dimC​Vλ​, PλP_\lambdaPλ​ for its orthogonal projection, Lπeh=eπhL_\pi e_h=e_{\pi h}Lπ​eh​=eπh​, and Tπex=ex∘π−1T_\pi e_x=e_{x\circ\pi^{-1}}Tπ​ex​=ex∘π−1​. If sλs_\lambdasλ​ counts fillings by [d][d][d] weakly increasing along rows and strictly increasing down columns, define

Qλ=Dλr!∑π∈Srtr⁡(Lπ−1Pλ) Tπ,Or(c)=dr∑λ∈Pd,rcλDλsλQλ.Q_\lambda=\frac{D_\lambda}{r!}\sum_{\pi\in S_r} \operatorname{tr}(L_{\pi^{-1}}P_\lambda)\,T_\pi, \qquad O_r(c)=\sqrt{d^r}\sum_{\lambda\in\mathcal P_{d,r}} \frac{c_\lambda}{\sqrt{D_\lambda s_\lambda}}Q_\lambda.Qλ​=r!Dλ​​π∈Sr​∑​tr(Lπ−1​Pλ​)Tπ​,Or​(c)=dr​λ∈Pd,r​∑​Dλ​sλ​​cλ​​Qλ​.

On Ar=[d][r]×[d]\mathcal A_r=[d]^{[r]}\times[d]Ar​=[d][r]×[d], for a∈[r]a\in[r]a∈[r], put

Kr,a((u,b),(z,e))=1d 1{ua=b, za=e, ui=zi for every i≠a},Sr,a=d−(r−1)Kr,a,K_{r,a}((u,b),(z,e)) =\frac1d\,\mathbf1_{\{u_a=b,\ z_a=e,\ u_i=z_i\text{ for every }i\ne a\}}, \quad S_{r,a}=d^{-(r-1)}K_{r,a},Kr,a​((u,b),(z,e))=d1​1{ua​=b, za​=e, ui​=zi​ for every i=a}​,Sr,a​=d−(r−1)Kr,a​, Hr=h ⁣(∑aSr,a),Er,a=HrSr,aHr+1r(I−∑bHrSr,bHr),H_r=h\!\left(\sum_aS_{r,a}\right),\qquad E_{r,a}=H_rS_{r,a}H_r+\frac1r \left(I-\sum_bH_rS_{r,b}H_r\right),Hr​=h(a∑​Sr,a​),Er,a​=Hr​Sr,a​Hr​+r1​(I−b∑​Hr​Sr,b​Hr​),

where r−1r-1r−1 is truncated at zero and h(t)=t−1/2h(t)=t^{-1/2}h(t)=t−1/2 for t>0t>0t>0, zero otherwise, applied by spectral functional calculus. Define

Jr(O,M)=1d2∑a∈[r]Re⁡tr⁡ ⁣((O⊗Id)†Ma(O⊗Id)Sr,a).J_r(O,M)=\frac1{d^2}\sum_{a\in[r]} \operatorname{Re}\operatorname{tr}\!\left((O\otimes I_d)^\dagger M_a(O\otimes I_d)S_{r,a}\right).Jr​(O,M)=d21​a∈[r]∑​Retr((O⊗Id​)†Ma​(O⊗Id​)Sr,a​).

Suppose v:Pd,N→Rv:\mathcal P_{d,N}\to\mathbb Rv:Pd,N​→R and w:Pd,n→Rw:\mathcal P_{d,n}\to\mathbb Rw:Pd,n​→R each satisfy the following condition at their respective size rrr: all coefficients are nonnegative, their squared sum is one, and, if r>0r>0r>0, every OOO with tr⁡(O†O)=dr\operatorname{tr}(O^\dagger O)=d^rtr(O†O)=dr and every positive semidefinite family MaM_aMa​ with ∑aMa=I\sum_aM_a=I∑a​Ma​=I satisfy Jr(O,M)≤Jr(Or(c),Er)J_r(O,M)\le J_r(O_r(c),E_r)Jr​(O,M)≤Jr​(Or​(c),Er​). Set O=ON(v)O=O_N(v)O=ON​(v), R=On(w)R=O_n(w)R=On​(w). Define vectors on AN×AN\mathcal A_N\times\mathcal A_NAN​×AN​ by

ΦO((u,b),(z,e))=1{b=e}O(u,z)dN+1,Ξa,R((u,b),(z,e))=1{ua=b, za=e}R(u∖a,z∖a)ddn,\Phi_O((u,b),(z,e)) =\frac{\mathbf1_{\{b=e\}}O(u,z)}{\sqrt{d^{N+1}}}, \qquad \Xi_{a,R}((u,b),(z,e)) =\frac{\mathbf1_{\{u_a=b,\ z_a=e\}}R(u_{\setminus a},z_{\setminus a})} {d\sqrt{d^n}},ΦO​((u,b),(z,e))=dN+1​1{b=e}​O(u,z)​,Ξa,R​((u,b),(z,e))=ddn​1{ua​=b, za​=e}​R(u∖a​,z∖a​)​,

where deletion preserves the order of the other coordinates, and put ba=(EN,a⊗I)ΦOb_a=(\sqrt{E_{N,a}}\otimes I)\Phi_Oba​=(EN,a​​⊗I)ΦO​, using the spectral square-root function t↦max⁡(t,0)t\mapsto\sqrt{\max(t,0)}t↦max(t,0)​. Finally, let

Ua(R)((u,b),(z,e))=1{ua=za, b=e}R(u∖a,z∖a).U_a(R)((u,b),(z,e)) =\mathbf1_{\{u_a=z_a,\ b=e\}}R(u_{\setminus a},z_{\setminus a}).Ua​(R)((u,b),(z,e))=1{ua​=za​, b=e}​R(u∖a​,z∖a​).

Then, with a∗=na_*=na∗​=n the last port,

∑a∈[N]∥ba∥2∣⟨Ξa,R,ba∥ba∥⟩∣=Nd∣tr⁡ ⁣(SN,a∗EN,a∗ (O⊗Id) Ua∗(R)†)∣.\sum_{a\in[N]}\|b_a\|^2 \left|\left\langle\Xi_{a,R},\frac{b_a}{\|b_a\|}\right\rangle\right| = \frac{\sqrt N}{d} \left|\operatorname{tr}\!\left( S_{N,a_*}\sqrt{E_{N,a_*}}\,(O\otimes I_d)\,U_{a_*}(R)^\dagger \right)\right|.a∈[N]∑​∥ba​∥2​⟨Ξa,R​,∥ba​∥ba​​⟩​=dN​​​tr(SN,a∗​​EN,a∗​​​(O⊗Id​)Ua∗​​(R)†)​.

This includes n=0n=0n=0; at size zero the comparison clause in the hypothesis on www is vacuous, while its nonnegativity and squared-sum conditions remain. Every scalar inverse of zero is zero, including normalization of a zero branch.

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