Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Optical quantum memory

Definition
QAlgorithms_Papers_Independent_Extend50_P50

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

prove2quantum

The objects the formalized statements of Optical quantum memory (arXiv:1002.4659) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • transverseForwardEfficiency: PDF p.7, II.D.2, unnumbered display: the transverse forward-recall model as a function of the dimensionless optical depth, used on nonnegative depths.
  • atomicExcitationConfiguration: PDF p.6, Eq.(5): atom j is excited (a = true); every other atom is in the ground level (b = false). The atom ordering is the shared qubit ordering.
  • singleExcitationWave: PDF p.6, Eq.(5): the explicitly constructed single-excitation vector. Coefficients include the time-independent carrier factor exp(i k z_j). Normalization is ∑ j, Complex.normSq (a j) = 1 whenever this vector is a state.
  • detuningPhaseWave: PDF p.6, Eq.(5): computed detuning evolution with the source's negative phase sign, keeping the same joint single-excitation configurations.
  • idealCombDetuning: PDF p.8, II.D.3: ideal tooth-center detunings at integer multiples of the common spacing. The recurrence theorem requires strictly positive spacing. This definition does not describe teeth of finite width.
  • linearizedFaradayOutputs: PDF p.10, Eqs.(7),(8): the effective linearized Faraday outputs, grouped as ((atomic y, atomic z), (optical 2, optical 3)). V is the real vector space of operators on a common joint light-atom domain; only addition and real scalar multiplication enter these equations. This model incorporates the far-detuned, z-propagating, y-polarized light and x-polarized spin setting, small-angle approximation and replacement of macroscopic components by numbers. It supplies no error estimate comparing this model with the physical dynamics.
  • faradayFeedbackOutput: PDF p.11, Eq.(9): compute the post-feedback atomic pair by subtracting beta⁻¹ times the outgoing Stokes-2 quantity from the outgoing atomic z quantity. This is the source's algebraic effective feedback rule; it does not model quantum measurement back-action or its physical implementation.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Basic

/-!
# Optical quantum memory: three exact consequences of the displayed models

A. I. Lvovsky, B. C. Sanders and W. Tittel, arXiv:1002.4659v3.
PDF pages are used throughout. Physical derivations of the effective models are
not assumed to be exact device theorems. The review overview is deferred.
-/

namespace QAlgorithms.Papers.Independent.Extend50.P50

/-- PDF p.7, II.D.2, unnumbered display: the transverse forward-recall model
as a function of the dimensionless optical depth, used on nonnegative depths. -/
noncomputable def transverseForwardEfficiency (d : ℝ) : ℝ :=
  d ^ 2 * Real.exp (-d)

example : transverseForwardEfficiency 0 = 0 := by
  simp [transverseForwardEfficiency]

/-- PDF p.6, Eq.(5): atom `j` is excited (`a = true`); every other atom is
in the ground level (`b = false`). The atom ordering is the shared qubit ordering. -/
def atomicExcitationConfiguration {N : ℕ} (j : Fin N) : QAlgorithms.Qubits N :=
  fun k => if k = j then true else false

example {N : ℕ} (j : Fin N) : atomicExcitationConfiguration j j = true := by
  simp [atomicExcitationConfiguration]

/-- PDF p.6, Eq.(5): the explicitly constructed single-excitation vector.
Coefficients include the time-independent carrier factor `exp(i k z_j)`.
Normalization is `∑ j, Complex.normSq (a j) = 1` whenever this vector is a state. -/
noncomputable def singleExcitationWave {N : ℕ} (a : Fin N → ℂ) :
    EuclideanSpace ℂ (QAlgorithms.Qubits N) :=
  ∑ j : Fin N, a j • QAlgorithms.ket (atomicExcitationConfiguration j)

example (a : Fin 1 → ℂ) :
    singleExcitationWave a =
      a 0 • QAlgorithms.ket (atomicExcitationConfiguration (0 : Fin 1)) := by
  simp [singleExcitationWave]

/-- PDF p.6, Eq.(5): computed detuning evolution with the source's negative
phase sign, keeping the same joint single-excitation configurations. -/
noncomputable def detuningPhaseWave {N : ℕ} (a : Fin N → ℂ)
    (detuning : Fin N → ℝ) (t : ℝ) : EuclideanSpace ℂ (QAlgorithms.Qubits N) :=
  singleExcitationWave (fun j =>
    a j * Complex.exp (-(Complex.I * ((detuning j * t : ℝ) : ℂ))))

example {N : ℕ} (a : Fin N → ℂ) (detuning : Fin N → ℝ) :
    detuningPhaseWave a detuning 0 = singleExcitationWave a := by
  simp [detuningPhaseWave]

/-- PDF p.8, II.D.3: ideal tooth-center detunings at integer multiples of the
common spacing. The recurrence theorem requires strictly positive spacing.
This definition does not describe teeth of finite width. -/
noncomputable def idealCombDetuning {N : ℕ} (r : Fin N → ℤ) (spacing : ℝ) :
    Fin N → ℝ :=
  fun j => (r j : ℝ) * spacing

example {N : ℕ} (spacing : ℝ) (j : Fin N) :
    idealCombDetuning (fun _ => 0) spacing j = 0 := by
  simp [idealCombDetuning]

/-- PDF p.10, Eqs.(7),(8): the effective linearized Faraday outputs, grouped
as ((atomic y, atomic z), (optical 2, optical 3)). `V` is the real vector
space of operators on a common joint light-atom domain; only addition and
real scalar multiplication enter these equations. This model incorporates the
far-detuned, z-propagating, y-polarized light and x-polarized spin setting,
small-angle approximation and replacement of macroscopic components by numbers.
It supplies no error estimate comparing this model with the physical dynamics. -/
noncomputable def linearizedFaradayOutputs {V : Type*} [AddCommGroup V] [Module ℝ V]
    (alpha beta : ℝ) (jy jz s2 s3 : V) : (V × V) × (V × V) :=
  ((jy + alpha • s3, jz), (s2 + beta • jz, s3))

example {V : Type*} [AddCommGroup V] [Module ℝ V]
    (alpha beta : ℝ) (jy jz s2 s3 : V) :
    (linearizedFaradayOutputs alpha beta jy jz s2 s3).2.2 = s3 := by
  rfl

/-- PDF p.11, Eq.(9): compute the post-feedback atomic pair by subtracting
`beta⁻¹` times the outgoing Stokes-2 quantity from the outgoing atomic z
quantity. This is the source's algebraic effective feedback rule; it does not
model quantum measurement back-action or its physical implementation. -/
noncomputable def faradayFeedbackOutput {V : Type*} [AddCommGroup V] [Module ℝ V]
    (alpha beta : ℝ) (jy jz s2 s3 : V) : V × V :=
  let outputs := linearizedFaradayOutputs alpha beta jy jz s2 s3
  (outputs.1.1, outputs.1.2 - beta⁻¹ • outputs.2.1)

example {V : Type*} [AddCommGroup V] [Module ℝ V]
    (alpha beta : ℝ) (jy jz s2 s3 : V) :
    (faradayFeedbackOutput alpha beta jy jz s2 s3).1 = jy + alpha • s3 := by
  rfl

end QAlgorithms.Papers.Independent.Extend50.P50
Source
Optical quantum memory, arXiv:1002.4659v3, https://arxiv.org/abs/1002.4659v3
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P50.atomicExcitationConfiguration

For every natural number NNN and every index j∈{0,…,N−1}j\in\{0,\ldots,N-1\}j∈{0,…,N−1}, define the Boolean configuration xj:{0,…,N−1}→{false,true}x_j:\{0,\ldots,N-1\}\to\{\mathrm{false},\mathrm{true}\}xj​:{0,…,N−1}→{false,true} by xj(k)=truex_j(k)=\mathrm{true}xj​(k)=true when k=jk=jk=j, and xj(k)=falsex_j(k)=\mathrm{false}xj​(k)=false otherwise. When N=0N=0N=0, there is no index jjj to which this definition can be applied.

QAlgorithms.Papers.Independent.Extend50.P50.detuningPhaseWave

For every natural number NNN, every function a:{0,…,N−1}→Ca:\{0,\ldots,N-1\}\to\mathbb Ca:{0,…,N−1}→C, every function δ:{0,…,N−1}→R\delta:\{0,\ldots,N-1\}\to\mathbb Rδ:{0,…,N−1}→R, and every real number ttt, define the vector ∑j=0N−1a(j)exp⁡(−iδ(j)t)exj\sum_{j=0}^{N-1}a(j)\exp(-i\delta(j)t)\mathbf e_{x_j}∑j=0N−1​a(j)exp(−iδ(j)t)exj​​ in the complex Euclidean space indexed by all Boolean configurations on {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1}. Here iii is the imaginary unit, xjx_jxj​ is true exactly at index jjj, and exj\mathbf e_{x_j}exj​​ has coordinate 111 at xjx_jxj​ and 000 elsewhere. No normalization or sign restrictions are imposed on these inputs; when N=0N=0N=0, the vector is the empty sum, hence zero.

QAlgorithms.Papers.Independent.Extend50.P50.faradayFeedbackOutput

For every real vector space VVV, with its additive commutative group structure and real scalar multiplication, every pair of real numbers α,β\alpha,\betaα,β, and every four vectors jy,jz,s2,s3∈Vj_y,j_z,s_2,s_3\in Vjy​,jz​,s2​,s3​∈V, define the vector pair (jy+αs3,  jz−β−1(s2+βjz))∈V×V\bigl(j_y+\alpha s_3,\;j_z-\beta^{-1}(s_2+\beta j_z)\bigr)\in V\times V(jy​+αs3​,jz​−β−1(s2​+βjz​))∈V×V. The real inverse is defined also at zero, with 0−1=00^{-1}=00−1=0; thus β=0\beta=0β=0 is allowed and gives the pair (jy+αs3,jz)(j_y+\alpha s_3,j_z)(jy​+αs3​,jz​).

QAlgorithms.Papers.Independent.Extend50.P50.idealCombDetuning

For every natural number NNN, every integer-valued function r:{0,…,N−1}→Zr:\{0,\ldots,N-1\}\to\mathbb Zr:{0,…,N−1}→Z, and every real number sss, define the real-valued function δ(j)=r(j)s\delta(j)=r(j)sδ(j)=r(j)s, interpreting each integer r(j)r(j)r(j) as a real number. The values of rrr need not be distinct or positive, and sss may be positive, negative, or zero; when s=0s=0s=0, every value is zero. When N=0N=0N=0, this is the unique function from the empty index set to R\mathbb RR.

QAlgorithms.Papers.Independent.Extend50.P50.linearizedFaradayOutputs

For every real vector space VVV, with its additive commutative group structure and real scalar multiplication, every pair of real numbers α,β\alpha,\betaα,β, and every four vectors jy,jz,s2,s3∈Vj_y,j_z,s_2,s_3\in Vjy​,jz​,s2​,s3​∈V, define an element of (V×V)×(V×V)(V\times V)\times(V\times V)(V×V)×(V×V) by ((jy+αs3,jz),(s2+βjz,s3))\bigl((j_y+\alpha s_3,j_z),(s_2+\beta j_z,s_3)\bigr)((jy​+αs3​,jz​),(s2​+βjz​,s3​)). Neither scalar is required to be nonzero, and no further conditions are imposed on VVV or the vectors.

QAlgorithms.Papers.Independent.Extend50.P50.singleExcitationWave

For every natural number NNN and every function a:{0,…,N−1}→Ca:\{0,\ldots,N-1\}\to\mathbb Ca:{0,…,N−1}→C, define a vector in the complex Euclidean space whose coordinates are indexed by all Boolean configurations on {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1} by ∑j=0N−1a(j)exj\sum_{j=0}^{N-1}a(j)\mathbf e_{x_j}∑j=0N−1​a(j)exj​​, where xjx_jxj​ is true exactly at index jjj, and exj\mathbf e_{x_j}exj​​ has coordinate 111 at xjx_jxj​ and 000 at every other configuration. There is no normalization requirement on aaa. When N=0N=0N=0, the sum is empty and gives the zero vector in the space indexed by the single empty Boolean configuration.

QAlgorithms.Papers.Independent.Extend50.P50.transverseForwardEfficiency

For every real number ddd, define the real-valued function E(d)=d2e−dE(d)=d^2e^{-d}E(d)=d2e−d. Its domain includes zero and all negative real numbers.

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