Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Supporting beam-splitter cube identity and source-module ancilla count

Open
QAlgorithms.Papers.Independent.Intake100.P11.beamSplitter_threeConnectionMatrices

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

prove2quantum

For intensity reflectivity R∈[0,1]R\in[0,1]R∈[0,1], define

BR=(R1−R1−R−R),k1=R−1−R,k2=−R−1−R,η=−1−R.B_R=\begin{pmatrix}\sqrt R&\sqrt{1-R}\\\sqrt{1-R}&-\sqrt R\end{pmatrix},\quad k_1=\sqrt R-\sqrt{1-R},\quad k_2=-\sqrt R-\sqrt{1-R},\quad \eta=-\sqrt{1-R}.BR​=(R​1−R​​1−R​−R​​),k1​=R​−1−R​,k2​=−R​−1−R​,η=−1−R​.

Let C(k1,k2,η)C(k_1,k_2,\eta)C(k1​,k2​,η) be the connection matrix of Eq.(16), in grouped coordinates. Then

BR2=I2,C(k1,k2,η)3=diag⁡(BR,BR).B_R^2=I_2,\qquad C(k_1,k_2,\eta)^3=\operatorname{diag}(B_R,B_R).BR2​=I2​,C(k1​,k2​,η)3=diag(BR​,BR​).

The chronological program with three identical source modules has this matrix and uses 3×3=93\times3=93×3=9 ancillas. Both endpoints are included: R=0R=0R=0 swaps the modes, and R=1R=1R=1 gives opposite signs on the two modes.

This is supporting ideal algebra and construction bookkeeping. The full assertion that the operational composed module acts as the beam-splitter channel on every normal input remains deferred.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P11
Formal statement
noncomputable section

open scoped Matrix BigOperators

namespace QAlgorithms.Papers.Independent.Intake100.P11

/-- PDF p.9, Eqs.(17)--(19): SUPPORTING cube identity and nine-ancilla count
for three source modules, including both intensity-reflectivity endpoints.
The all-normal-state operational node is deferred; a matrix is not a channel. -/
theorem beamSplitter_threeConnectionMatrices
    (R : ℝ) (hR0 : 0 ≤ R) (hR1 : R ≤ 1) :
    let settings := beamSettings R
    let program := List.replicate 3 settings
    phaseFreeBeamMatrix R * phaseFreeBeamMatrix R = 1 ∧
    connectionMatrix settings.kappa1 settings.kappa2 settings.eta ^ 3 =
      beamSplitterGrouped R ∧
    connectionWord program = beamSplitterGrouped R ∧
    connectionAncillas program = 9 := by sorry

end QAlgorithms.Papers.Independent.Intake100.P11

end
Source
Universal linear Bogoliubov transformations through one-way quantum computation, arXiv:0910.0660v1, PDF p. 9, §VI, Eqs.(17)–(19)
Read-back

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

Let RRR be any real number with 0≤R≤10\le R\le10≤R≤1, including either endpoint, and put u=Ru=\sqrt Ru=R​, v=1−Rv=\sqrt{1-R}v=1−R​, and B=(uvv−u)B=\begin{pmatrix}u&v\\v&-u\end{pmatrix}B=(uv​v−u​). Choose the setting triple s=(κ1,κ2,η)=(u−v,−u−v,−v)s=(\kappa_1,\kappa_2,\eta)=(u-v,-u-v,-v)s=(κ1​,κ2​,η)=(u−v,−u−v,−v), and let the program be the list [s,s,s][s,s,s][s,s,s]. For any real setting triple t=(p,q,e)t=(p,q,e)t=(p,q,e), define its associated real 4×44\times44×4 matrix by

C(t)=(0−I2I20)(I20(p−e−e−eq−e)I2).C(t)= \begin{pmatrix}0&-I_2\\I_2&0\end{pmatrix} \begin{pmatrix} I_2&0\\ \begin{pmatrix}p-e&-e\\-e&q-e\end{pmatrix}&I_2 \end{pmatrix}.C(t)=(0I2​​−I2​0​)​I2​(p−e−e​−eq−e​)​0I2​​​.

For any finite list [t1,…,tm][t_1,\ldots,t_m][t1​,…,tm​], define its matrix product as C(tm)⋯C(t1)C(t_m)\cdots C(t_1)C(tm​)⋯C(t1​), with empty product I4I_4I4​, and its ancilla count as 3m3m3m. Then all four assertions hold: B2=I2B^2=I_2B2=I2​; C(s)3=(B00B)C(s)^3=\begin{pmatrix}B&0\\0&B\end{pmatrix}C(s)3=(B0​0B​); the matrix product of the program [s,s,s][s,s,s][s,s,s] equals (B00B)\begin{pmatrix}B&0\\0&B\end{pmatrix}(B0​0B​); and that program’s ancilla count is 999.

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