Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§V / Appendix E: explicit normalized qubit principal eigenvector

Open
QAlgorithms.Papers.Independent.Extend50.P04.qubit_principal_vector

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

prove2quantum

Let N≥1N\ge1N≥1, t=⌊N/2⌋+1t=\lfloor N/2\rfloor+1t=⌊N/2⌋+1, and 0≤l<t0\le l<t0≤l<t. Put q=Nπ/(N+2)q=N\pi/(N+2)q=Nπ/(N+2) and

wl={(−1)N/2−l [sin⁡(((N+2)/2−l)q)−sin⁡((N/2−l)q)]/sin⁡q,N even,(−1)(N−1)/2−lsin⁡(((N+1)/2−l)q)/sin⁡q,N odd,vl=wl∑jwj2.w_l=\begin{cases}(-1)^{N/2-l}\,[\sin(((N+2)/2-l)q)-\sin((N/2-l)q)]/\sin q,&N\text{ even},\\(-1)^{(N-1)/2-l}\sin(((N+1)/2-l)q)/\sin q,&N\text{ odd},\end{cases}\qquad v_l=\frac{w_l}{\sqrt{\sum_j w_j^2}}.wl​={(−1)N/2−l[sin(((N+2)/2−l)q)−sin((N/2−l)q)]/sinq,(−1)(N−1)/2−lsin(((N+1)/2−l)q)/sinq,​N even,N odd,​vl​=∑j​wj2​​wl​​.

Let MMM be one quarter of the tridiagonal matrix with off-diagonal entries one and diagonal entries two, except the first is one and the last is one for even NNN. At N=1N=1N=1 its sole entry is 1/41/41/4. Then

vl≥0,∑lvl2=1,Mv=λmax⁡(M)v.v_l\ge0,\quad\sum_l v_l^2=1,\quad Mv=\lambda_{\max}(M)v.vl​≥0,l∑​vl2​=1,Mv=λmax​(M)v.

This is the explicitly normalized principal eigenvector; the printed scalar convention does not affect its eigenvector.

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.17,25, (87)/(E5): explicit normalized nonnegative principal eigenvector.
The matrix is (E2), with no eigenvalue/channel-fidelity scaling inferred from inconsistent (E1). -/
theorem qubit_principal_vector (N : ℕ) (hN : 1 ≤ N) :
    (∑ l, qubitVector N l ^ 2) = 1 ∧ (∀ l, 0 ≤ qubitVector N l) ∧
    ∃ lambda : ℝ, Matrix.mulVec (qubitMatrix N) (qubitVector N) = lambda • qubitVector N ∧
      ∀ (eta : ℝ) (u : Fin (N / 2 + 1) → ℝ), u ≠ 0 →
        Matrix.mulVec (qubitMatrix N) u = eta • u → eta ≤ lambda := 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. 17, §V / Appendix E: explicit normalized qubit principal eigenvector
Read-back

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

For every natural number N≥1N\ge1N≥1, let m=⌊N/2⌋m=\lfloor N/2\rfloorm=⌊N/2⌋ and index vectors and matrices by l=0,…,ml=0,\ldots,ml=0,…,m. Define

rl={(−1)m−lsin⁡ ⁣((N+22−l)NπN+2)−sin⁡ ⁣((N2−l)NπN+2)sin⁡ ⁣(NπN+2),N even,(−1)(N−1)/2−lsin⁡ ⁣((N+12−l)NπN+2)sin⁡ ⁣(NπN+2),N odd,ql=rl∑j=0mrj2,r_l= \begin{cases} \displaystyle (-1)^{m-l} \frac{ \sin\!\left(\left(\frac{N+2}{2}-l\right)\frac{N\pi}{N+2}\right) -\sin\!\left(\left(\frac N2-l\right)\frac{N\pi}{N+2}\right)} {\sin\!\left(\frac{N\pi}{N+2}\right)}, &N\text{ even},\\[4mm] \displaystyle (-1)^{(N-1)/2-l} \frac{\sin\!\left(\left(\frac{N+1}{2}-l\right)\frac{N\pi}{N+2}\right)} {\sin\!\left(\frac{N\pi}{N+2}\right)}, &N\text{ odd}, \end{cases} \qquad q_l=\frac{r_l}{\sqrt{\sum_{j=0}^{m}r_j^2}},rl​=⎩⎨⎧​(−1)m−lsin(N+2Nπ​)sin((2N+2​−l)N+2Nπ​)−sin((2N​−l)N+2Nπ​)​,(−1)(N−1)/2−lsin(N+2Nπ​)sin((2N+1​−l)N+2Nπ​)​,​N even,N odd,​ql​=∑j=0m​rj2​​rl​​,

where the exponents of −1-1−1 are natural-number differences, while the divisions inside the trigonometric arguments are real divisions. Define the real matrix

Mij=14{2−1{i=0}−1{N even and i=m},i=j,1,i≠j and (i+1=j or j+1=i),0,otherwise.M_{ij}=\frac14 \begin{cases} 2-\mathbf1_{\{i=0\}}-\mathbf1_{\{N\text{ even and }i=m\}},&i=j,\\ 1,&i\ne j\text{ and }(i+1=j\text{ or }j+1=i),\\ 0,&\text{otherwise}. \end{cases}Mij​=41​⎩⎨⎧​2−1{i=0}​−1{N even and i=m}​,1,0,​i=j,i=j and (i+1=j or j+1=i),otherwise.​

Then ∑l=0mql2=1\sum_{l=0}^{m}q_l^2=1∑l=0m​ql2​=1, every ql≥0q_l\ge0ql​≥0, and there exists a real number λ\lambdaλ such that Mq=λqMq=\lambda qMq=λq and, for every real number η\etaη and every nonzero real vector u∈Rm+1u\in\mathbb R^{m+1}u∈Rm+1, the equality Mu=ηuMu=\eta uMu=ηu implies η≤λ\eta\le\lambdaη≤λ. Scalar division by zero in the defining formulas is interpreted as 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