Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 10: operational non-optimal one-round trace formula

Open
QAlgorithms.Papers.Independent.Extend50.P04.nonoptimal_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. At the last port,

Fnon(N,d)=NTr⁡Π~NddN+1∣Tr⁡(σNΠ~N)∣.F_{\rm non}(N,d)=\frac{N\sqrt{\operatorname{Tr}\widetilde\Pi_N}}{d\sqrt{d^{N+1}}}\left|\operatorname{Tr}(\sigma_N\sqrt{\widetilde\Pi_N})\right|.Fnon​(N,d)=ddN+1​NTrΠN​​​​Tr(σN​ΠN​​)​.

This evaluates the operational average without assuming its trace normalization as a hypothesis.

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 p.14, Lemma 10, (76), Appendix A pp.19-20: operational unoptimized root fidelity.
The full completed effect is used in both its trace normalization and its square root. -/
theorem nonoptimal_trace (d n : ℕ) (hd : 2 ≤ d) :
    nonoptimalFidelity d n =
      ((n + 1 : ℝ) * Real.sqrt ((fullEffect d (n + 1) (Fin.last n)).trace.re) /
        ((d : ℝ) * Real.sqrt ((d : ℝ) ^ (n + 2)))) *
      ‖(pbtSignal d (n + 1) (Fin.last n) * positiveRoot (fullEffect d (n + 1) (Fin.last n))).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. 14, Lemma 10: operational non-optimal one-round trace formula
Read-back

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

For all natural numbers d,nd,nd,n with d≥2d\ge2d≥2, put N=n+1N=n+1N=n+1 and let A\mathcal AA consist of pairs (x,u)(x,u)(x,u), with x:{0,…,N−1}→{0,…,d−1}x:\{0,\ldots,N-1\}\to\{0,\ldots,d-1\}x:{0,…,N−1}→{0,…,d−1} and u∈{0,…,d−1}u\in\{0,\ldots,d-1\}u∈{0,…,d−1}. Define matrices on A\mathcal AA by

(Ta)(x,u),(y,v)=1{x(a)=u, y(a)=v, ∀i≠a, x(i)=y(i)},Sa=d−(N−1)(d−1Ta),(T_a)_{(x,u),(y,v)} =\mathbf1_{\{x(a)=u,\ y(a)=v,\ \forall i\ne a,\ x(i)=y(i)\}}, \quad S_a=d^{-(N-1)}(d^{-1}T_a),(Ta​)(x,u),(y,v)​=1{x(a)=u, y(a)=v, ∀i=a, x(i)=y(i)}​,Sa​=d−(N−1)(d−1Ta​), H=∑aSa,R=f(H),Ea=RSaR,Fa=Ea+1N(I−∑bEb),H=\sum_aS_a,\quad R=f(H),\quad E_a=RS_aR,\quad F_a=E_a+\frac1N\left(I-\sum_bE_b\right),H=a∑​Sa​,R=f(H),Ea​=RSa​R,Fa​=Ea​+N1​(I−b∑​Eb​),

where f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1 is applied by real continuous functional calculus. On the complex Euclidean space indexed by A×A\mathcal A\times\mathcal AA×A, define

Ω(x,u),(y,v)=1{u=v, x=y}dN+1,(Ξa)(x,u),(y,v)=1{x(a)=u, y(a)=v, ∀i≠a, x(i)=y(i)}ddn,\Omega_{(x,u),(y,v)} =\frac{\mathbf1_{\{u=v,\ x=y\}}}{\sqrt{d^{N+1}}}, \qquad (\Xi_a)_{(x,u),(y,v)} =\frac{\mathbf1_{\{x(a)=u,\ y(a)=v,\ \forall i\ne a,\ x(i)=y(i)\}}} {d\sqrt{d^n}},Ω(x,u),(y,v)​=dN+1​1{u=v, x=y}​​,(Ξa​)(x,u),(y,v)​=ddn​1{x(a)=u, y(a)=v, ∀i=a, x(i)=y(i)}​​, ba=(Fa⊗I)Ω,b^a=∥ba∥−1ba,F=∑a=0N−1∥ba∥2∣⟨Ξa,b^a⟩∣.b_a=(\sqrt{F_a}\otimes I)\Omega,\qquad \widehat b_a=\|b_a\|^{-1}b_a,\qquad \mathcal F=\sum_{a=0}^{N-1}\|b_a\|^2 \left|\langle\Xi_a,\widehat b_a\rangle\right|.ba​=(Fa​​⊗I)Ω,ba​=∥ba​∥−1ba​,F=a=0∑N−1​∥ba​∥2​⟨Ξa​,ba​⟩​.

Here matrix square roots use continuous functional calculus with the real square-root function; all vector norms are Euclidean, and the absolute value of the inner product is its complex modulus, without squaring it. Reciprocal at zero is zero, so b^a=0\widehat b_a=0ba​=0 if ba=0b_a=0ba​=0. The theorem states, using the final port a=na=na=n,

F=(n+1)Re⁡tr⁡(Fn)ddn+2 ∣tr⁡ ⁣(SnFn)∣.\mathcal F= \frac{(n+1)\sqrt{\operatorname{Re}\operatorname{tr}(F_n)}} {d\sqrt{d^{n+2}}}\, \left|\operatorname{tr}\!\left(S_n\sqrt{F_n}\right)\right|.F=ddn+2​(n+1)Retr(Fn​)​​​tr(Sn​Fn​​)​.

The real square root is zero on negative arguments, and n=0n=0n=0 is permitted.

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