Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Optimal deterministic recovered-qubit fidelity

Open
QAlgorithms.Papers.Independent.Intake100.P67.recoveredQubit_optimum

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

prove2quantum

Let N≥1N\ge1N≥1 be an integer. Alice and Bob share a normalized pure state (OA⊗IB)∣ψ−⟩⊗N(O_A\otimes I_B)|\psi^-\rangle^{\otimes N}(OA​⊗IB​)∣ψ−⟩⊗N, where tr⁡(O†O)=2N\operatorname{tr}(O^\dagger O)=2^Ntr(O†O)=2N and ∣ψ−⟩=(∣01⟩−∣10⟩)/2|\psi^-\rangle=(|01\rangle-|10\rangle)/\sqrt2∣ψ−⟩=(∣01⟩−∣10⟩)/2​. Alice measures her NNN qubits and an unknown input qubit with an NNN-outcome POVM, sends the outcome iii, and Bob retains BiB_iBi​ without a correcting operation. The resource and measurement are fixed independently of the input. Write FFF for singlet entanglement fidelity and fff for fidelity averaged over Haar-distributed normalized pure inputs.

The resource specified by (34)–(35), with O=XO=\sqrt XO=X​, and the completed generalized square-root measurement (32) attain

Fopt=cos⁡2πN+2,fopt=23+13cos⁡2πN+2.F_{\rm opt}=\cos^2\frac{\pi}{N+2},\qquad f_{\rm opt}=\frac23+\frac13\cos\frac{2\pi}{N+2}.Fopt​=cos2N+2π​,fopt​=32​+31​cosN+22π​.

Every such resource and POVM satisfy F≤FoptF\le F_{\rm opt}F≤Fopt​ and f≤foptf\le f_{\rm opt}f≤fopt​. Thus these are attained optima over the whole stated protocol model.

This gives the exact best recovered-qubit fidelity for correction-free port selection.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P67
Formal statement
noncomputable section

open scoped Matrix Kronecker ComplexConjugate ComplexOrder Matrix.Norms.L2Operator

attribute [local instance] Classical.propDecidable

attribute [local instance] Classical.decEq

namespace QAlgorithms.Papers.Independent.Intake100.P67

open QAlgorithms.Papers.Independent.Information100.P71 (supportPower)

open QAlgorithms.Papers.Independent.Advance50.P49 (spinMultiplicity)

/-- PDF pp.6–7, Eqs.(32)–(42), Appendix C p.12: simultaneous resource/POVM optimum.
The completed generalized SRM attains the upper bound over every physical resource/POVM.
Appendix C's final 2*cos^2(2*pi/(N+2)) is a factor-of-two-in-angle typo; its preceding
expression and the chosen dual a give 2*cos^2(pi/(N+2)), as required by Eq.(41). -/
theorem recoveredQubit_optimum (N : ℕ) (hN : 1 ≤ N) :
    IsDeterministicPortProtocol (resourceOperator (deterministicX N)) (deterministicMeasurement N) ∧
    entFidelity (resourceOperator (deterministicX N)) (deterministicMeasurement N) =
      deterministicOptimumFidelity N ∧
    portAverageFidelity (resourceOperator (deterministicX N)) (deterministicMeasurement N) =
      deterministicOptimumAverage N ∧
    (∀ (O : Matrix (Qubits N) (Qubits N) ℂ)
      (M : Fin N → Matrix (AC N) (AC N) ℂ), IsDeterministicPortProtocol O M →
        entFidelity O M ≤ deterministicOptimumFidelity N ∧ portAverageFidelity O M ≤ deterministicOptimumAverage N) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P67

end
Source
Quantum teleportation scheme by selecting one of multiple output ports, arXiv:0901.2975v2, PDF p. 7, §IV B, Eqs. (32)–(42); Appendix C
Read-back

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

For every natural number N≥1N\ge1N≥1, the following explicitly constructed matrices attain the stated values and bounds. Write BW={0,1}W\mathcal B_W=\{0,1\}^WBW​={0,1}W, BN={0,1}{0,…,N−1}\mathcal B_N=\{0,1\}^{\{0,\ldots,N-1\}}BN​={0,1}{0,…,N−1}, and HN=BN×{0,1}\mathcal H_N=\mathcal B_N\times\{0,1\}HN​=BN​×{0,1}. Define s(0,1)=1/2s(0,1)=1/\sqrt2s(0,1)=1/2​, s(1,0)=−1/2s(1,0)=-1/\sqrt2s(1,0)=−1/2​, and s(0,0)=s(1,1)=0s(0,0)=s(1,1)=0s(0,0)=s(1,1)=0, and for i<Ni<Ni<N define a matrix on HN\mathcal H_NHN​ by

(σi)(a,c),(b,d)={2−(N−1)s(ai,c)s(bi,d)‾,aj=bj for every j≠i,0,otherwise.(\sigma_i)_{(a,c),(b,d)} = \begin{cases} 2^{-(N-1)}s(a_i,c)\overline{s(b_i,d)},& a_j=b_j\text{ for every }j\ne i,\\ 0,&\text{otherwise}. \end{cases}(σi​)(a,c),(b,d)​={2−(N−1)s(ai​,c)s(bi​,d)​,0,​aj​=bj​ for every j=i,otherwise.​

The construction uses Sw={k∈N:k≤w, k≡w(mod2)}\mathcal S_w=\{k\in\mathbb N:k\le w,\ k\equiv w\pmod2\}Sw​={k∈N:k≤w, k≡w(mod2)}. For a finite set WWW of cardinality www, let PrtP_{rt}Prt​ have entry 111 at (a,b)(a,b)(a,b) exactly when a=b∘(r t)a=b\circ(r\ t)a=b∘(r t), and entry 000 otherwise, and put

LW=w(4−w)4I+12∑r,t∈Wr≠tPrt,QW,k={cfc⁡ ⁣(x↦1{x=k(k+2)/4},LW),k∈Sw,0,k∉Sw.L_W=\frac{w(4-w)}4I+\frac12\sum_{\substack{r,t\in W\\r\ne t}}P_{rt}, \qquad Q_{W,k}= \begin{cases} \operatorname{cfc}\!\left(x\mapsto\mathbf1_{\{x=k(k+2)/4\}},L_W\right),&k\in\mathcal S_w,\\ 0,&k\notin\mathcal S_w. \end{cases}LW​=4w(4−w)​I+21​r,t∈Wr=t​∑​Prt​,QW,k​={cfc(x↦1{x=k(k+2)/4}​,LW​),0,​k∈Sw​,k∈/Sw​.​

Here cfc⁡(f,A)\operatorname{cfc}(f,A)cfc(f,A) denotes the real functional calculus used in the definitions. Let TkT_kTk​ be Q{∗}⊔{0,…,N−1},kQ_{\{\ast\}\sqcup\{0,\ldots,N-1\},k}Q{∗}⊔{0,…,N−1},k​ reindexed so that the extra coordinate ∗\ast∗ is the final bit ccc, and set

Ak−=(Q{0,…,N−1},k⊗I2)Tk+1,Ak+={0,k=0,(Q{0,…,N−1},k⊗I2)Tk−1,k>0,A_k^-=(Q_{\{0,\ldots,N-1\},k}\otimes I_2)T_{k+1}, \qquad A_k^+= \begin{cases} 0,&k=0,\\ (Q_{\{0,\ldots,N-1\},k}\otimes I_2)T_{k-1},&k>0, \end{cases}Ak−​=(Q{0,…,N−1},k​⊗I2​)Tk+1​,Ak+​={0,(Q{0,…,N−1},k​⊗I2​)Tk−1​,​k=0,k>0,​ λk−=N/2−k/22N,λk+=N/2+k/2+12N.\lambda_k^-=\frac{N/2-k/2}{2^N}, \qquad \lambda_k^+=\frac{N/2+k/2+1}{2^N}.λk−​=2NN/2−k/2​,λk+​=2NN/2+k/2+1​.

Define the natural number

mn,k={⌊(n(n−k)/2)(k+1)(n+k)/2+1⌋,k≤n and n−k is even,0,otherwise,m_{n,k}= \begin{cases} \displaystyle \left\lfloor \frac{\binom n{(n-k)/2}(k+1)}{(n+k)/2+1} \right\rfloor,&k\le n\text{ and }n-k\text{ is even},\\ 0,&\text{otherwise}, \end{cases}mn,k​=⎩⎨⎧​⌊(n+k)/2+1((n−k)/2n​)(k+1)​⌋,0,​k≤n and n−k is even,otherwise,​

where the divisions inside the binomial index and denominator are natural-number divisions, and define

γk=2N+2(N+2)(k+1)mN,ksin⁡2 ⁣(π(k+1)N+2),X=∑k∈SNγkQ{0,…,N−1},k.\gamma_k= \frac{2^{N+2}}{(N+2)(k+1)m_{N,k}} \sin^2\!\left(\frac{\pi(k+1)}{N+2}\right), \qquad X=\sum_{k\in\mathcal S_N}\gamma_k Q_{\{0,\ldots,N-1\},k}.γk​=(N+2)(k+1)mN,k​2N+2​sin2(N+2π(k+1)​),X=k∈SN​∑​γk​Q{0,…,N−1},k​.

For a matrix YYY on strings indexed by the coordinates other than iii, define

Ei(Y)(a,c),(b,d)=s(ai,c)s(bi,d)‾ Ya∣j≠i, b∣j≠i.\mathcal E_i(Y)_{(a,c),(b,d)} =s(a_i,c)\overline{s(b_i,d)}\,Y_{a|_{j\ne i},\,b|_{j\ne i}}.Ei​(Y)(a,c),(b,d)​=s(ai​,c)s(bi​,d)​Ya∣j=i​,b∣j=i​​.

Put

Fk={0,k=0,γk−1/λk−1− Ak−1−,k>0+γk+1/λk+1+ Ak+1+,F_k= \begin{cases} 0,&k=0,\\ \sqrt{\gamma_{k-1}/\lambda^-_{k-1}}\,A^-_{k-1},&k>0 \end{cases} +\sqrt{\gamma_{k+1}/\lambda^+_{k+1}}\,A^+_{k+1},Fk​={0,γk−1​/λk−1−​​Ak−1−​,​k=0,k>0​+γk+1​/λk+1+​​Ak+1+​, Ci=∑k∈SN−1Fk(2−(N−1)Ei(Q{j:j≠i},k))Fk,Ei=Ci+1N(X⊗I2−∑jCj).C_i=\sum_{k\in\mathcal S_{N-1}} F_k\bigl(2^{-(N-1)}\mathcal E_i(Q_{\{j:j\ne i\},k})\bigr)F_k, \qquad E_i=C_i+\frac1N\left(X\otimes I_2-\sum_jC_j\right).Ci​=k∈SN−1​∑​Fk​(2−(N−1)Ei​(Q{j:j=i},k​))Fk​,Ei​=Ci​+N1​(X⊗I2​−j∑​Cj​).

For real ttt, let ht(x)=0h_t(x)=0ht​(x)=0 if x=0x=0x=0, and ht(x)=xth_t(x)=x^tht​(x)=xt, using real powers, otherwise; write Ht=cfc⁡(ht,X)H_t=\operatorname{cfc}(h_t,X)Ht​=cfc(ht​,X). The matrices asserted to attain the bounds are

O=cfc⁡(⋅,X),Mi=(H−1/2⊗I2)Ei(H−1/2⊗I2)+1N(I−H0⊗I2).O=\operatorname{cfc}(\sqrt{\cdot},X), \qquad M_i=(H_{-1/2}\otimes I_2)E_i(H_{-1/2}\otimes I_2) +\frac1N(I-H_0\otimes I_2).O=cfc(⋅​,X),Mi​=(H−1/2​⊗I2​)Ei​(H−1/2​⊗I2​)+N1​(I−H0​⊗I2​).

Specifically, tr⁡(O†O)=2N\operatorname{tr}(O^\dagger O)=2^Ntr(O†O)=2N, every MiM_iMi​ is positive semidefinite, and ∑iMi=I\sum_iM_i=I∑i​Mi​=I. Defining, for any square O′O'O′ on BN\mathcal B_NBN​ and matrices Mi′M'_iMi′​ on HN\mathcal H_NHN​,

F(O′,M′)=14∑i<NRe⁡tr⁡ ⁣((O′†⊗I2)Mi′(O′⊗I2)σi),A(O′,M′)=2F(O′,M′)+13,F(O',M')=\frac14\sum_{i<N} \operatorname{Re}\operatorname{tr} \!\left((O'^\dagger\otimes I_2)M'_i(O'\otimes I_2)\sigma_i\right), \qquad A(O',M')=\frac{2F(O',M')+1}{3},F(O′,M′)=41​i<N∑​Retr((O′†⊗I2​)Mi′​(O′⊗I2​)σi​),A(O′,M′)=32F(O′,M′)+1​,

the constructed pair satisfies

F(O,M)=cos⁡2 ⁣(πN+2),A(O,M)=23+13cos⁡ ⁣(2πN+2).F(O,M)=\cos^2\!\left(\frac{\pi}{N+2}\right), \qquad A(O,M)=\frac23+\frac13\cos\!\left(\frac{2\pi}{N+2}\right).F(O,M)=cos2(N+2π​),A(O,M)=32​+31​cos(N+22π​).

Moreover, every O′,M′O',M'O′,M′ satisfying tr⁡(O′†O′)=2N\operatorname{tr}(O'^\dagger O')=2^Ntr(O′†O′)=2N, Mi′⪰0M'_i\succeq0Mi′​⪰0 for every iii, and ∑iMi′=I\sum_iM'_i=I∑i​Mi′​=I, satisfies both corresponding upper bounds

F(O′,M′)≤cos⁡2 ⁣(πN+2),A(O′,M′)≤23+13cos⁡ ⁣(2πN+2).F(O',M')\le\cos^2\!\left(\frac{\pi}{N+2}\right), \qquad A(O',M')\le\frac23+\frac13\cos\!\left(\frac{2\pi}{N+2}\right).F(O′,M′)≤cos2(N+2π​),A(O′,M′)≤32​+31​cos(N+22π​).
Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

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