Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Universal linear Bogoliubov transformations through one-way quantum computation

Definition
QAlgorithms_Papers_Independent_Intake100_P11

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

prove2quantum

The objects the formalized statements of Universal linear Bogoliubov transformations through one-way quantum computation (arXiv:0910.0660) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • Mat2: PDF p.4: one mode's ordered coordinates (x,p).
  • Mat4: PDF p.8: grouped coordinates (x1,x2,p1,p2).
  • IsOneModeSymplectic: PDF p.4: the source's characterization of Sp(2,R) by ad-bc=1.
  • elementary: PDF p.4: elementary homodyne teleportation matrix FO(kappa).
  • elementaryWord: PDF pp.3--4: chronological settings; last gate acts on the left. Every entry is one source elementary module, and the empty word is identity.
  • elementaryAncillas: PDF p.4, Fig.2: one ancilla per elementary step, with external input.
  • quadratureRotationMatrix: PDF p.4: positive phase-space rotation; F=R(pi/2). This real quadrature matrix differs from EquatorialQSP.rotation, a two-angle complex qubit unitary. Its descriptive name distinguishes these concepts.
  • quadratureSqueezeMatrix: PDF p.6, Eq.(10): positive r means p-squeezing. This real quadrature matrix differs from Gap48.P30.squeezing, a Fock-space vacuum amplifier dilation from one mode to two modes.
  • teleportationMatrix: PDF p.6, corrected Eq.(8). Printed lower-right denominator: cos(thetaPlus). Changed: cos(thetaMinus), as required by Eqs.(9)--(13), determinant one, and Bell linear elimination. All uses below guard nonsingular angles. This source correction requires independent moderation.
  • teleportationHyperbolic: PDF p.7, Eq.(13): fixed optical coupling, with r any finite real number.
  • bellOutputMatrix: PDF p.6, Eq.(7): coefficients of ideal port output (x2,p2) in sqrt(2) times the homodyne readings, using x2=p1,p2=x1. This is linear Heisenberg algebra, not a normalized resource state or a Bell instrument.
  • bellInputMatrix: PDF p.6, Eq.(7): coefficients of input (x0,p0) in the same readings.
  • teleportationAncillas: PDF p.7, Fig.4: two cluster-port ancillas plus one ancilla per extra step.
  • cotAngle: PDF p.7, Eq.(14): cotangent chart; the theorem requires nonzero sine.
  • connectionQuadratic: PDF p.8, Eq.(16): position-quadratic shear coefficients. Printed prose: +ieta(x1+x2)^2. Changed: -ieta(x1+x2)^2, because x3+eta*p3, Eq.(16), and Eq.(19) agree on this sign. The general quadratic exponential in the prose also omits i. Independent moderation is required.
  • fourierTwo: PDF p.8, Eq.(16): two-mode Fourier matrix in grouped coordinates.
  • positionShear: PDF p.8: ideal position-quadratic phase matrix.
  • connectionMatrix: PDF p.8, Eq.(16): ideal connection matrix; no finite-resource semantics.
  • ConnectionSettings: PDF p.8, Fig.6: one source module's independent measurement settings.
  • connectionWord: PDF pp.8--9: matrix of a finite chronological source-module sequence.
  • connectionAncillas: PDF pp.8--9, Fig.6: three ancillas per source module, not an optimal count.
  • phaseFreeBeamMatrix: PDF p.9, Eq.(17): phase-free beam splitter, with intensity reflectivity R. This real quadrature matrix differs from Next46.P17.beamSplitter, which acts on full Fock-density coefficients and traces the second output port.
  • beamSplitterGrouped: PDF p.9, Eq.(17): the same beam splitter acts on x and p.
  • beamSettings: PDF p.9, Eq.(19): source programming for each of three identical modules.
Definition code
import Mathlib

/-!
Ukai et al., arXiv:0910.0660v1, PDF pp.4--9.
Exact ideal Heisenberg matrices, grouped quadratures, hbar=1/2. Displacements
and global phases are omitted as on p.4. All settings depend on the target,
never on input states or measurement outcomes. There is no photon cutoff or
infinitely squeezed normal state. HARD.md defers operational normal-state
claims and finite-resource limits; the two supporting matrix identities below
do not replace their deferred operational headlines.
-/

noncomputable section

open scoped Matrix BigOperators

namespace QAlgorithms.Papers.Independent.Intake100.P11

/-- PDF p.4: one mode's ordered coordinates (x,p). -/
abbrev Mat2 := Matrix (Fin 2) (Fin 2) ℝ

/-- PDF p.8: grouped coordinates (x1,x2,p1,p2). -/
abbrev Mat4 := Matrix (Fin 2 ⊕ Fin 2) (Fin 2 ⊕ Fin 2) ℝ

/-- PDF p.4: the source's characterization of Sp(2,R) by ad-bc=1. -/
def IsOneModeSymplectic (A : Mat2) : Prop :=
  A 0 0 * A 1 1 - A 0 1 * A 1 0 = 1

/-- PDF p.4: elementary homodyne teleportation matrix FO(kappa). -/
def elementary (kappa : ℝ) : Mat2 := !![-kappa, -1; 1, 0]

/-- PDF pp.3--4: chronological settings; last gate acts on the left.
Every entry is one source elementary module, and the empty word is identity. -/
def elementaryWord (settings : List ℝ) : Mat2 :=
  settings.foldl (fun A kappa => elementary kappa * A) 1

/-- PDF p.4, Fig.2: one ancilla per elementary step, with external input. -/
def elementaryAncillas (settings : List ℝ) : ℕ := settings.length

/-- PDF p.4: positive phase-space rotation; F=R(pi/2).
This real quadrature matrix differs from EquatorialQSP.rotation, a two-angle
complex qubit unitary. Its descriptive name distinguishes these concepts. -/
def quadratureRotationMatrix (theta : ℝ) : Mat2 :=
  !![Real.cos theta, -Real.sin theta; Real.sin theta, Real.cos theta]

/-- PDF p.6, Eq.(10): positive r means p-squeezing.
This real quadrature matrix differs from Gap48.P30.squeezing, a Fock-space
vacuum amplifier dilation from one mode to two modes. -/
def quadratureSqueezeMatrix (r : ℝ) : Mat2 := !![Real.exp r, 0; 0, Real.exp (-r)]

/-- PDF p.6, corrected Eq.(8). Printed lower-right denominator: cos(thetaPlus).
Changed: cos(thetaMinus), as required by Eqs.(9)--(13), determinant one, and
Bell linear elimination. All uses below guard nonsingular angles.
This source correction requires independent moderation. -/
def teleportationMatrix (thetaPlus thetaMinus : ℝ) : Mat2 :=
  !![Real.cos thetaPlus / Real.cos thetaMinus,
      (Real.sin thetaMinus + Real.sin thetaPlus) / Real.cos thetaMinus;
      (Real.sin thetaMinus - Real.sin thetaPlus) / Real.cos thetaMinus,
      Real.cos thetaPlus / Real.cos thetaMinus]

/-- PDF p.7, Eq.(13): fixed optical coupling, with r any finite real number. -/
def teleportationHyperbolic (theta r : ℝ) : Mat2 :=
  !![Real.cos theta * Real.cosh r, Real.sin theta * Real.cosh r + Real.sinh r;
      -Real.sin theta * Real.cosh r + Real.sinh r, Real.cos theta * Real.cosh r]

/-- PDF p.6, Eq.(7): coefficients of ideal port output (x2,p2) in sqrt(2)
times the homodyne readings, using x2=p1,p2=x1. This is linear Heisenberg
algebra, not a normalized resource state or a Bell instrument. -/
def bellOutputMatrix (theta0 theta1 : ℝ) : Mat2 :=
  !![-Real.cos theta0, Real.sin theta0; Real.sin theta1, Real.cos theta1]

/-- PDF p.6, Eq.(7): coefficients of input (x0,p0) in the same readings. -/
def bellInputMatrix (theta0 theta1 : ℝ) : Mat2 :=
  !![Real.cos theta0, Real.sin theta0; Real.sin theta1, -Real.cos theta1]

/-- PDF p.7, Fig.4: two cluster-port ancillas plus one ancilla per extra step. -/
def teleportationAncillas (extra : List ℝ) : ℕ := 2 + extra.length

/-- PDF p.7, Eq.(14): cotangent chart; the theorem requires nonzero sine. -/
def cotAngle (theta : ℝ) : ℝ := Real.cos theta / Real.sin theta

/-- PDF p.8, Eq.(16): position-quadratic shear coefficients.
Printed prose: +i*eta*(x1+x2)^2. Changed: -i*eta*(x1+x2)^2, because
x3+eta*p3, Eq.(16), and Eq.(19) agree on this sign. The general quadratic
exponential in the prose also omits i. Independent moderation is required. -/
def connectionQuadratic (kappa1 kappa2 eta : ℝ) : Mat2 :=
  !![kappa1 - eta, -eta; -eta, kappa2 - eta]

/-- PDF p.8, Eq.(16): two-mode Fourier matrix in grouped coordinates. -/
def fourierTwo : Mat4 := Matrix.fromBlocks 0 (-1 : Mat2) 1 0

/-- PDF p.8: ideal position-quadratic phase matrix. -/
def positionShear (K : Mat2) : Mat4 := Matrix.fromBlocks 1 0 K 1

/-- PDF p.8, Eq.(16): ideal connection matrix; no finite-resource semantics. -/
def connectionMatrix (kappa1 kappa2 eta : ℝ) : Mat4 :=
  fourierTwo * positionShear (connectionQuadratic kappa1 kappa2 eta)

/-- PDF p.8, Fig.6: one source module's independent measurement settings. -/
structure ConnectionSettings where
  kappa1 : ℝ
  kappa2 : ℝ
  eta : ℝ

/-- PDF pp.8--9: matrix of a finite chronological source-module sequence. -/
def connectionWord (settings : List ConnectionSettings) : Mat4 :=
  settings.foldl (fun A s => connectionMatrix s.kappa1 s.kappa2 s.eta * A) 1

/-- PDF pp.8--9, Fig.6: three ancillas per source module, not an optimal count. -/
def connectionAncillas (settings : List ConnectionSettings) : ℕ :=
  3 * settings.length

/-- PDF p.9, Eq.(17): phase-free beam splitter, with intensity reflectivity R.
This real quadrature matrix differs from Next46.P17.beamSplitter, which acts
on full Fock-density coefficients and traces the second output port. -/
def phaseFreeBeamMatrix (R : ℝ) : Mat2 :=
  !![Real.sqrt R, Real.sqrt (1 - R); Real.sqrt (1 - R), -Real.sqrt R]

/-- PDF p.9, Eq.(17): the same beam splitter acts on x and p. -/
def beamSplitterGrouped (R : ℝ) : Mat4 :=
  Matrix.fromBlocks (phaseFreeBeamMatrix R) 0 0 (phaseFreeBeamMatrix R)

/-- PDF p.9, Eq.(19): source programming for each of three identical modules. -/
def beamSettings (R : ℝ) : ConnectionSettings where
  kappa1 := Real.sqrt R - Real.sqrt (1 - R)
  kappa2 := -Real.sqrt R - Real.sqrt (1 - R)
  eta := -Real.sqrt (1 - R)

example : IsOneModeSymplectic (1 : Mat2) := by
  norm_num [IsOneModeSymplectic]

example : elementary 0 = (!![0, -1; 1, 0] : Mat2) := by
  norm_num [elementary]

example : elementaryWord [] = 1 := rfl

example : elementaryAncillas [0, 0, 0, 0] = 4 := rfl

example : quadratureRotationMatrix 0 0 0 = 1 := by
  norm_num [quadratureRotationMatrix]

example : quadratureSqueezeMatrix 0 1 1 = 1 := by
  norm_num [quadratureSqueezeMatrix]

example : teleportationMatrix 0 0 0 0 = 1 := by
  norm_num [teleportationMatrix]

example : teleportationHyperbolic 0 0 1 0 = 0 := by
  norm_num [teleportationHyperbolic]

example : bellOutputMatrix 0 0 0 0 = -1 := by
  norm_num [bellOutputMatrix]

example : bellInputMatrix 0 0 1 1 = -1 := by
  norm_num [bellInputMatrix]

example : teleportationAncillas [0, 0] = 4 := rfl

example : cotAngle (Real.pi / 2) = 0 := by
  simp [cotAngle]

example : connectionQuadratic 2 3 0 0 1 = 0 := by
  norm_num [connectionQuadratic]

example : fourierTwo = Matrix.fromBlocks 0 (-1 : Mat2) 1 0 := rfl

example : positionShear (0 : Mat2) = Matrix.fromBlocks (1 : Mat2) 0 0 1 := rfl

example : connectionMatrix 0 0 0 =
    fourierTwo * positionShear (connectionQuadratic 0 0 0) := rfl

example : (beamSettings 1).eta = 0 := by
  norm_num [beamSettings]

example : connectionWord [] = 1 := rfl

example : connectionAncillas (List.replicate 3 (beamSettings 0)) = 9 := rfl

example : phaseFreeBeamMatrix 0 0 1 = 1 := by
  norm_num [phaseFreeBeamMatrix]

example : beamSplitterGrouped 1 =
    Matrix.fromBlocks (phaseFreeBeamMatrix 1) 0 0 (phaseFreeBeamMatrix 1) := rfl

end QAlgorithms.Papers.Independent.Intake100.P11
Source
Universal linear Bogoliubov transformations through one-way quantum computation, arXiv:0910.0660v1, https://arxiv.org/abs/0910.0660v1
Read-back

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

QAlgorithms.Papers.Independent.Intake100.P11.ConnectionSettings

This defines a record consisting of three real numbers, named κ1\kappa_1κ1​, κ2\kappa_2κ2​, and η\etaη, with no additional conditions on these numbers.

QAlgorithms.Papers.Independent.Intake100.P11.IsOneModeSymplectic

For any real 2×22\times22×2 matrix AAA, the property IsOneModeSymplectic(A)\mathrm{IsOneModeSymplectic}(A)IsOneModeSymplectic(A) is defined to mean

A00A11−A01A10=1.A_{00}A_{11}-A_{01}A_{10}=1.A00​A11​−A01​A10​=1.

QAlgorithms.Papers.Independent.Intake100.P11.Mat2

Mat2\mathrm{Mat2}Mat2 is an abbreviation for the type of real 2×22\times22×2 matrices, with both rows and columns indexed by {0,1}\{0,1\}{0,1}.

QAlgorithms.Papers.Independent.Intake100.P11.Mat4

Mat4\mathrm{Mat4}Mat4 is an abbreviation for the type of real matrices whose rows and columns are each indexed by the disjoint union of two copies of {0,1}\{0,1\}{0,1}. Thus these are 4×44\times44×4 matrices, with each index retaining a tag identifying its copy.

QAlgorithms.Papers.Independent.Intake100.P11.beamSettings

For every real number RRR, this defines a record of three real numbers with fields

κ1=R−1−R,κ2=−R−1−R,η=−1−R.\kappa_1=\sqrt R-\sqrt{1-R}, \qquad \kappa_2=-\sqrt R-\sqrt{1-R}, \qquad \eta=-\sqrt{1-R}.κ1​=R​−1−R​,κ2​=−R​−1−R​,η=−1−R​.

The real square-root function equals 000 on nonpositive inputs. There is no restriction on RRR, so these formulas also apply when R<0R<0R<0, in which case R=0\sqrt R=0R​=0, and when R>1R>1R>1, in which case 1−R=0\sqrt{1-R}=01−R​=0.

QAlgorithms.Papers.Independent.Intake100.P11.beamSplitterGrouped

For every real number RRR, let a=Ra=\sqrt Ra=R​ and b=1−Rb=\sqrt{1-R}b=1−R​. This defines the real 4×44\times44×4 matrix, ordered by the first and then the second copy of {0,1}\{0,1\}{0,1},

(ab00b−a0000ab00b−a).\begin{pmatrix} a&b&0&0\\ b&-a&0&0\\ 0&0&a&b\\ 0&0&b&-a \end{pmatrix}.​ab00​b−a00​00ab​00b−a​​.

The real square-root function equals 000 on nonpositive inputs, and no restriction on RRR is imposed; thus a=0a=0a=0 when R<0R<0R<0, and b=0b=0b=0 when R>1R>1R>1.

QAlgorithms.Papers.Independent.Intake100.P11.bellInputMatrix

For every pair of real numbers θ0\theta_0θ0​ and θ1\theta_1θ1​, bellInputMatrix(θ0,θ1)\mathrm{bellInputMatrix}(\theta_0,\theta_1)bellInputMatrix(θ0​,θ1​) is the real 2×22\times22×2 matrix

(cos⁡θ0sin⁡θ0sin⁡θ1−cos⁡θ1).\begin{pmatrix} \cos\theta_0&\sin\theta_0\\ \sin\theta_1&-\cos\theta_1 \end{pmatrix}.(cosθ0​sinθ1​​sinθ0​−cosθ1​​).

QAlgorithms.Papers.Independent.Intake100.P11.bellOutputMatrix

For every pair of real numbers θ0\theta_0θ0​ and θ1\theta_1θ1​, bellOutputMatrix(θ0,θ1)\mathrm{bellOutputMatrix}(\theta_0,\theta_1)bellOutputMatrix(θ0​,θ1​) is the real 2×22\times22×2 matrix

(−cos⁡θ0sin⁡θ0sin⁡θ1cos⁡θ1).\begin{pmatrix} -\cos\theta_0&\sin\theta_0\\ \sin\theta_1&\cos\theta_1 \end{pmatrix}.(−cosθ0​sinθ1​​sinθ0​cosθ1​​).

QAlgorithms.Papers.Independent.Intake100.P11.connectionAncillas

For every finite list SSS of records, each containing three arbitrary real numbers named κ1,κ2,η\kappa_1,\kappa_2,\etaκ1​,κ2​,η, this defines the natural number 3∣S∣3\lvert S\rvert3∣S∣, where ∣S∣\lvert S\rvert∣S∣ is the list length. The empty list gives 000.

QAlgorithms.Papers.Independent.Intake100.P11.connectionMatrix

For arbitrary real numbers κ1,κ2,η\kappa_1,\kappa_2,\etaκ1​,κ2​,η, put K=(κ1−η−η−ηκ2−η)K=\begin{pmatrix}\kappa_1-\eta&-\eta\\-\eta&\kappa_2-\eta\end{pmatrix}K=(κ1​−η−η​−ηκ2​−η​). This defines the real 4×44\times44×4 matrix, with rows and columns grouped according to two copies of {0,1}\{0,1\}{0,1}, by the product

(02×2−I2I202×2)(I202×2KI2)=(−K−I2I202×2),\begin{pmatrix} 0_{2\times2}&-I_2\\ I_2&0_{2\times2} \end{pmatrix} \begin{pmatrix} I_2&0_{2\times2}\\ K&I_2 \end{pmatrix} = \begin{pmatrix} -K&-I_2\\ I_2&0_{2\times2} \end{pmatrix},(02×2​I2​​−I2​02×2​​)(I2​K​02×2​I2​​)=(−KI2​​−I2​02×2​​),

where I2I_2I2​ is the 2×22\times22×2 identity matrix.

QAlgorithms.Papers.Independent.Intake100.P11.connectionQuadratic

For arbitrary real numbers κ1,κ2,η\kappa_1,\kappa_2,\etaκ1​,κ2​,η, this defines the real 2×22\times22×2 matrix

(κ1−η−η−ηκ2−η).\begin{pmatrix} \kappa_1-\eta & -\eta\\ -\eta & \kappa_2-\eta \end{pmatrix}.(κ1​−η−η​−ηκ2​−η​).

QAlgorithms.Papers.Independent.Intake100.P11.connectionWord

For every finite list s1,…,sms_1,\ldots,s_ms1​,…,sm​ of records, each consisting of three arbitrary real numbers (κ1,j,κ2,j,ηj)(\kappa_{1,j},\kappa_{2,j},\eta_j)(κ1,j​,κ2,j​,ηj​), define

Kj=(κ1,j−ηj−ηj−ηjκ2,j−ηj),Cj=(−Kj−I2I202×2).K_j= \begin{pmatrix} \kappa_{1,j}-\eta_j&-\eta_j\\ -\eta_j&\kappa_{2,j}-\eta_j \end{pmatrix}, \qquad C_j= \begin{pmatrix} -K_j&-I_2\\ I_2&0_{2\times2} \end{pmatrix}.Kj​=(κ1,j​−ηj​−ηj​​−ηj​κ2,j​−ηj​​),Cj​=(−Kj​I2​​−I2​02×2​​).

This defines a real 4×44\times44×4 matrix by starting with I4I_4I4​ and, in list order, replacing the current matrix AAA by CjAC_jACj​A; thus, for m≥1m\geq1m≥1, the result is CmCm−1⋯C1C_mC_{m-1}\cdots C_1Cm​Cm−1​⋯C1​. The empty list gives I4I_4I4​. Here I2I_2I2​ and I4I_4I4​ are identity matrices, and each CjC_jCj​ has rows and columns grouped according to two copies of {0,1}\{0,1\}{0,1}.

QAlgorithms.Papers.Independent.Intake100.P11.cotAngle

For every real number θ\thetaθ, this defines cos⁡θ/sin⁡θ\cos\theta/\sin\thetacosθ/sinθ. Division is total: when sin⁡θ=0\sin\theta=0sinθ=0, the defined value is 000.

QAlgorithms.Papers.Independent.Intake100.P11.elementary

For every real number κ\kappaκ, elementary(κ)\mathrm{elementary}(\kappa)elementary(κ) is the real 2×22\times22×2 matrix

(−κ−110).\begin{pmatrix} -\kappa&-1\\ 1&0 \end{pmatrix}.(−κ1​−10​).

QAlgorithms.Papers.Independent.Intake100.P11.elementaryAncillas

For every finite list settings\mathrm{settings}settings of real numbers, elementaryAncillas(settings)\mathrm{elementaryAncillas}(\mathrm{settings})elementaryAncillas(settings) is the natural number equal to the length of that list; in particular, it is 000 for the empty list.

QAlgorithms.Papers.Independent.Intake100.P11.elementaryWord

For every finite list of real numbers settings=[κ1,…,κn]\mathrm{settings}=[\kappa_1,\ldots,\kappa_n]settings=[κ1​,…,κn​], elementaryWord(settings)\mathrm{elementaryWord}(\mathrm{settings})elementaryWord(settings) is the real 2×22\times22×2 matrix obtained by starting with the identity matrix and, reading the list from left to right, multiplying the current matrix on the left by (−κj−110)\begin{pmatrix}-\kappa_j&-1\\1&0\end{pmatrix}(−κj​1​−10​). Consequently its value is

(−κn−110)⋯(−κ1−110),\begin{pmatrix}-\kappa_n&-1\\1&0\end{pmatrix} \cdots \begin{pmatrix}-\kappa_1&-1\\1&0\end{pmatrix},(−κn​1​−10​)⋯(−κ1​1​−10​),

with value equal to the identity matrix when the list is empty.

QAlgorithms.Papers.Independent.Intake100.P11.fourierTwo

This defines the real 4×44\times44×4 matrix whose rows and columns are indexed by two copies of {0,1}\{0,1\}{0,1}, with block form

(02×2−I2I202×2),\begin{pmatrix} 0_{2\times2} & -I_2\\ I_2 & 0_{2\times2} \end{pmatrix},(02×2​I2​​−I2​02×2​​),

where I2I_2I2​ is the 2×22\times22×2 identity matrix and the blocks follow the two copies in that order.

QAlgorithms.Papers.Independent.Intake100.P11.phaseFreeBeamMatrix

For every real number RRR, this defines the real 2×22\times22×2 matrix

(R1−R1−R−R).\begin{pmatrix} \sqrt R&\sqrt{1-R}\\ \sqrt{1-R}&-\sqrt R \end{pmatrix}.(R​1−R​​1−R​−R​​).

Here the real square-root function is defined on all real inputs and equals 000 on nonpositive inputs. In particular, RRR is unrestricted: if R<0R<0R<0, then R=0\sqrt R=0R​=0, and if R>1R>1R>1, then 1−R=0\sqrt{1-R}=01−R​=0.

QAlgorithms.Papers.Independent.Intake100.P11.positionShear

For every real 2×22\times22×2 matrix KKK, this defines the real 4×44\times44×4 matrix

(I202×2KI2),\begin{pmatrix} I_2 & 0_{2\times2}\\ K & I_2 \end{pmatrix},(I2​K​02×2​I2​​),

where I2I_2I2​ is the 2×22\times22×2 identity matrix and the rows and columns are grouped according to two copies of {0,1}\{0,1\}{0,1}. There is no restriction on KKK.

QAlgorithms.Papers.Independent.Intake100.P11.quadratureRotationMatrix

For every real number θ\thetaθ, quadratureRotationMatrix(θ)\mathrm{quadratureRotationMatrix}(\theta)quadratureRotationMatrix(θ) is the real 2×22\times22×2 matrix

(cos⁡θ−sin⁡θsin⁡θcos⁡θ).\begin{pmatrix} \cos\theta&-\sin\theta\\ \sin\theta&\cos\theta \end{pmatrix}.(cosθsinθ​−sinθcosθ​).

QAlgorithms.Papers.Independent.Intake100.P11.quadratureSqueezeMatrix

For every real number rrr, quadratureSqueezeMatrix(r)\mathrm{quadratureSqueezeMatrix}(r)quadratureSqueezeMatrix(r) is the real 2×22\times22×2 matrix

(er00e−r).\begin{pmatrix} e^r&0\\ 0&e^{-r} \end{pmatrix}.(er0​0e−r​).

QAlgorithms.Papers.Independent.Intake100.P11.teleportationAncillas

For every finite list EEE of real numbers, this defines the natural number 2+∣E∣2+\lvert E\rvert2+∣E∣, where ∣E∣\lvert E\rvert∣E∣ is the length of the list. In particular, the empty list gives 222.

QAlgorithms.Papers.Independent.Intake100.P11.teleportationHyperbolic

For every pair of real numbers θ\thetaθ and rrr, teleportationHyperbolic(θ,r)\mathrm{teleportationHyperbolic}(\theta,r)teleportationHyperbolic(θ,r) is the real 2×22\times22×2 matrix

(cos⁡θ cosh⁡rsin⁡θ cosh⁡r+sinh⁡r−sin⁡θ cosh⁡r+sinh⁡rcos⁡θ cosh⁡r).\begin{pmatrix} \cos\theta\,\cosh r&\sin\theta\,\cosh r+\sinh r\\ -\sin\theta\,\cosh r+\sinh r&\cos\theta\,\cosh r \end{pmatrix}.(cosθcoshr−sinθcoshr+sinhr​sinθcoshr+sinhrcosθcoshr​).

QAlgorithms.Papers.Independent.Intake100.P11.teleportationMatrix

For every pair of real numbers θ+\theta_+θ+​ and θ−\theta_-θ−​, teleportationMatrix(θ+,θ−)\mathrm{teleportationMatrix}(\theta_+,\theta_-)teleportationMatrix(θ+​,θ−​) is the real 2×22\times22×2 matrix

(cos⁡θ+cos⁡θ−sin⁡θ−+sin⁡θ+cos⁡θ−sin⁡θ−−sin⁡θ+cos⁡θ−cos⁡θ+cos⁡θ−).\begin{pmatrix} \dfrac{\cos\theta_+}{\cos\theta_-}& \dfrac{\sin\theta_-+\sin\theta_+}{\cos\theta_-}\\[6pt] \dfrac{\sin\theta_--\sin\theta_+}{\cos\theta_-}& \dfrac{\cos\theta_+}{\cos\theta_-} \end{pmatrix}.​cosθ−​cosθ+​​cosθ−​sinθ−​−sinθ+​​​cosθ−​sinθ−​+sinθ+​​cosθ−​cosθ+​​​​.

There is no restriction requiring cos⁡θ−≠0\cos\theta_-\ne0cosθ−​=0; division by zero has value 000, so when cos⁡θ−=0\cos\theta_-=0cosθ−​=0 this definition gives the zero matrix.

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