Definitions for Optical quantum memory
DefinitionQAlgorithms_Papers_Independent_Extend50_P50The 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): atomjis 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 factorexp(i k z_j). Normalization is∑ j, Complex.normSq (a j) = 1whenever 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)).Vis 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 subtractingbeta⁻¹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.
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
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 and every index , define the Boolean configuration by when , and otherwise. When , there is no index to which this definition can be applied.
QAlgorithms.Papers.Independent.Extend50.P50.detuningPhaseWave
For every natural number , every function , every function , and every real number , define the vector in the complex Euclidean space indexed by all Boolean configurations on . Here is the imaginary unit, is true exactly at index , and has coordinate at and elsewhere. No normalization or sign restrictions are imposed on these inputs; when , the vector is the empty sum, hence zero.
QAlgorithms.Papers.Independent.Extend50.P50.faradayFeedbackOutput
For every real vector space , with its additive commutative group structure and real scalar multiplication, every pair of real numbers , and every four vectors , define the vector pair . The real inverse is defined also at zero, with ; thus is allowed and gives the pair .
QAlgorithms.Papers.Independent.Extend50.P50.idealCombDetuning
For every natural number , every integer-valued function , and every real number , define the real-valued function , interpreting each integer as a real number. The values of need not be distinct or positive, and may be positive, negative, or zero; when , every value is zero. When , this is the unique function from the empty index set to .
QAlgorithms.Papers.Independent.Extend50.P50.linearizedFaradayOutputs
For every real vector space , with its additive commutative group structure and real scalar multiplication, every pair of real numbers , and every four vectors , define an element of by . Neither scalar is required to be nonzero, and no further conditions are imposed on or the vectors.
QAlgorithms.Papers.Independent.Extend50.P50.singleExcitationWave
For every natural number and every function , define a vector in the complex Euclidean space whose coordinates are indexed by all Boolean configurations on by , where is true exactly at index , and has coordinate at and at every other configuration. There is no normalization requirement on . When , 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 , define the real-valued function . Its domain includes zero and all negative real numbers.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.