Definitions for Discrimination of the binary coherent signal: Gaussian-operation limit and simple non-Gaussian near-optimal receivers
DefinitionQAlgorithms_Papers_Independent_Intake100_P08The objects the formalized statements of Discrimination of the binary coherent signal: Gaussian-operation limit and simple non-Gaussian near-optimal receivers (arXiv:0706.1038) are stated in. Each was checked against the paper by a blind read-back and a moderator.
signalAmplitude: PDF pp.1,4: known real phase-aligned amplitude; true labels plus.photonLaw: PDF p.4, Eq.(18): the full number distribution of an oscillator vector. Only normalized vectors are used as states; no photon-number cutoff.countNoClick: PDF p.4, Eq.(18): diagonal on/off effect evaluated on a number law. For physical parameters and normalized laws the series is summable, as the headline statements explicitly assert for every participating law.receiverError: PDF p.5, Eq.(19): average Bayesian error, with equal priors and fixed on/off decoding. The same fixed preprocessing receives both possible inputs.displacementError: PDF p.5, Eqs.(23)--(24): the actual completed-space displacement before one detector. This is defined by the experiment, not its claimed scalar formula. The theorem concludes the realization guards of the accepted operator.IsGaussianUnitary: PDF pp.1,5: all single-mode affine Gaussian unitaries, including squeezing. The genuine Hilbert-space unitary intertwines the actual Weyl displacements by an arbitrary real-linear symplectic map and a real-linear phase. The latter retains all affine displacements. This bounded Weyl characterization avoids exponentiating a totalized unbounded quadratic generator.bpskHomodyneError: PDF p.1: erfc(sqrt(2) alpha)/2 written as its convergent Gaussian tail. This is the equal-prior error of the exact q-homodyne spectral outcome law, whose coherent signals have means plus or minus sqrt(2) alpha and physical variance 1/2. The accepted Dependency50.P17.homodyneError is instead block-code decoding error for a two-sender channel; it is a distinct concept and is not reused.poissonPhotonLaw: PDF p.5, preceding Eq.(26): the infinite Poisson photon-number law. Nonnegative intensity and normalization are concluded below, not assumed.mismatchIntensity: PDF p.5, Eq.(25): total intensity after interference, including the noninterfering portion. delta is the output displacement, possibly complex.imperfectError: PDF pp.5--6, Eqs.(25)--(26): physical Poisson laws and the same fixed on/off decoding. No optimized displacement or error formula is assumed.localOscillator: PDF p.5: finite-beamsplitter local oscillator for output displacement delta. Used only for tau<1. tau=1 is the ideal displacement limit, not this division.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_RealLabelRegisters
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P39
/-!
Takeoka--Sasaki, arXiv:0706.1038v3. The oscillator is the completed countable
Fock space. Three Section III results are stated; HARD.md accounts for all
other nodes. Equal priors, fixed decoding off -> minus / on -> plus, and no
feedback are built into receiverError. The apparatus never receives the sign.
The homodyne comparison uses its exact coherent-state spectral outcome law,
with [q,p]=i, means plus or minus sqrt(2) alpha and variance 1/2. No infinitely squeezed
vector or cutoff is introduced. Compilation and independent moderation pending.
-/
noncomputable section
namespace QAlgorithms.Papers.Independent.Intake100.P08
open MeasureTheory
open scoped BigOperators
open QAlgorithms.Papers.Independent.Dependency50.P39
(Fock fockKet coherentKet coherentCoefficient CoherentRealized
displacement DisplacementRealized)
/-- PDF pp.1,4: known real phase-aligned amplitude; true labels plus. -/
def signalAmplitude (alpha : ℝ) (plus : Bool) : ℂ :=
if plus then (alpha : ℂ) else -(alpha : ℂ)
/-- PDF p.4, Eq.(18): the full number distribution of an oscillator vector.
Only normalized vectors are used as states; no photon-number cutoff. -/
def photonLaw (psi : Fock) (n : ℕ) : ℝ := Complex.normSq (psi n)
/-- PDF p.4, Eq.(18): diagonal on/off effect evaluated on a number law.
For physical parameters and normalized laws the series is summable, as the
headline statements explicitly assert for every participating law. -/
def countNoClick (eta nu : ℝ) (law : ℕ → ℝ) : ℝ :=
Real.exp (-nu) * ∑' n : ℕ, (1 - eta) ^ n * law n
/-- PDF p.5, Eq.(19): average Bayesian error, with equal priors and fixed
on/off decoding. The same fixed preprocessing receives both possible inputs. -/
def receiverError (alpha eta nu : ℝ) (preprocess : Fock → Fock) : ℝ :=
(countNoClick eta nu (photonLaw (preprocess (coherentKet (signalAmplitude alpha true)))) +
1 - countNoClick eta nu
(photonLaw (preprocess (coherentKet (signalAmplitude alpha false))))) / 2
/-- PDF p.5, Eqs.(23)--(24): the actual completed-space displacement before
one detector. This is defined by the experiment, not its claimed scalar formula.
The theorem concludes the realization guards of the accepted operator. -/
def displacementError (alpha eta nu : ℝ) (delta : ℂ) : ℝ :=
receiverError alpha eta nu (fun psi => displacement delta psi)
/-- PDF pp.1,5: all single-mode affine Gaussian unitaries, including squeezing.
The genuine Hilbert-space unitary intertwines the actual Weyl displacements by
an arbitrary real-linear symplectic map and a real-linear phase. The latter
retains all affine displacements. This bounded Weyl characterization avoids
exponentiating a totalized unbounded quadratic generator. -/
def IsGaussianUnitary (U : Fock ≃ₗᵢ[ℂ] Fock) : Prop :=
∃ S : ℂ →ₗ[ℝ] ℂ,
(∀ z w : ℂ, (star (S z) * S w).im = (star z * w).im) ∧
∃ ell : ℂ →ₗ[ℝ] ℝ, ∀ (z : ℂ) (psi : Fock),
U (displacement z psi) =
Complex.exp (Complex.I * (ell z : ℂ)) • displacement (S z) (U psi)
/-- PDF p.1: erfc(sqrt(2) alpha)/2 written as its convergent Gaussian tail.
This is the equal-prior error of the exact q-homodyne spectral outcome law,
whose coherent signals have means plus or minus sqrt(2) alpha and physical variance 1/2.
The accepted Dependency50.P17.homodyneError is instead block-code decoding
error for a two-sender channel; it is a distinct concept and is not reused. -/
def bpskHomodyneError (alpha : ℝ) : ℝ :=
(∫ x : ℝ in Set.Ici (Real.sqrt 2 * alpha), Real.exp (-(x ^ 2))) / Real.sqrt Real.pi
/-- PDF p.5, preceding Eq.(26): the infinite Poisson photon-number law.
Nonnegative intensity and normalization are concluded below, not assumed. -/
def poissonPhotonLaw (intensity : ℝ) (n : ℕ) : ℝ :=
Real.exp (-intensity) * intensity ^ n / (Nat.factorial n : ℝ)
/-- PDF p.5, Eq.(25): total intensity after interference, including the
noninterfering portion. delta is the output displacement, possibly complex. -/
def mismatchIntensity (alpha tau xi : ℝ) (delta : ℂ) (plus : Bool) : ℝ :=
(1 - xi) * (tau * alpha ^ 2 + Complex.normSq delta) +
xi * Complex.normSq
((Real.sqrt tau : ℂ) * signalAmplitude alpha plus + delta)
/-- PDF pp.5--6, Eqs.(25)--(26): physical Poisson laws and the same fixed
on/off decoding. No optimized displacement or error formula is assumed. -/
def imperfectError (alpha eta nu tau xi : ℝ) (delta : ℂ) : ℝ :=
(countNoClick eta nu (poissonPhotonLaw (mismatchIntensity alpha tau xi delta true)) +
1 - countNoClick eta nu
(poissonPhotonLaw (mismatchIntensity alpha tau xi delta false))) / 2
/-- PDF p.5: finite-beamsplitter local oscillator for output displacement delta.
Used only for tau<1. tau=1 is the ideal displacement limit, not this division. -/
def localOscillator (tau : ℝ) (delta : ℂ) : ℂ :=
delta / (Real.sqrt (1 - tau) : ℂ)
example : signalAmplitude 0 true = signalAmplitude 0 false := by
simp [signalAmplitude]
example : photonLaw (fockKet 0) 0 = 1 := by
simp [photonLaw, fockKet, lp.single_apply]
example (eta nu : ℝ) :
countNoClick eta nu (fun n : ℕ => if n = 0 then 1 else 0) = Real.exp (-nu) := by
simp [countNoClick]
example : coherentCoefficient 0 0 = 1 := by
norm_num [coherentCoefficient]
example : poissonPhotonLaw 0 0 = 1 := by
norm_num [poissonPhotonLaw]
example (n : ℕ) : poissonPhotonLaw 0 (n + 1) = 0 := by
simp [poissonPhotonLaw]
example : IsGaussianUnitary (LinearIsometryEquiv.refl ℂ Fock) := by
refine ⟨LinearMap.id, ?_, 0, ?_⟩
· intro z w
rfl
· intro z psi
simp
example (alpha : ℝ) (delta : ℂ) (plus : Bool) :
mismatchIntensity alpha 1 1 delta plus =
Complex.normSq (signalAmplitude alpha plus + delta) := by
simp [mismatchIntensity]
example (delta : ℂ) : localOscillator 0 delta = delta := by
simp [localOscillator]
example (eta nu : ℝ) (preprocess : Fock → Fock) :
receiverError 0 eta nu preprocess = 1 / 2 := by
simp [receiverError, signalAmplitude] <;> ring
end QAlgorithms.Papers.Independent.Intake100.P08
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intake100.P08.IsGaussianUnitary
For a complex-linear isometric equivalence from onto itself, the predicate holds precisely when there exist real-linear maps and such that, for every ,
and, for every and every ,
The vector is unrestricted, including the zero vector. Here, with denoting the standard basis, is a chosen continuous complex-linear operator whose matrix entries are
for all , if such an operator exists, and is zero otherwise. The predicate itself does not separately assert that these chosen operators realize their prescribed matrices.
QAlgorithms.Papers.Independent.Intake100.P08.bpskHomodyneError
For every real number , define
where the integral is with respect to Lebesgue measure on . The integration region includes its lower endpoint, and is unrestricted, including zero and negative values.
QAlgorithms.Papers.Independent.Intake100.P08.countNoClick
For arbitrary real numbers and an arbitrary function , define
There are no assumptions that is nonnegative, normalized, or summable, or that or . The sum is the totalized real infinite sum, which equals zero when the family is not summable. The term at uses , including when .
QAlgorithms.Papers.Independent.Intake100.P08.displacementError
For arbitrary and , define
Here is a chosen vector in with coordinates , if such a vector exists, and is zero otherwise. Writing for the standard basis vector, is a chosen continuous complex-linear operator on this Hilbert space satisfying for every , if any such operator exists, and is the zero operator otherwise, where
No parameter restrictions or realization assumptions are part of this definition, and each infinite real sum is zero if its summands are not summable.
QAlgorithms.Papers.Independent.Intake100.P08.imperfectError
For arbitrary and , put
The defined error is
The square root is the real square root, hence is zero for negative , and its value and are embedded in in the intensities. No positivity, normalization, convergence, or parameter-range hypotheses occur in the definition. Infinite real sums use the convention of returning zero for a nonsummable family, and zeroth powers, including , equal one.
QAlgorithms.Papers.Independent.Intake100.P08.localOscillator
For every real number and complex number , the defined complex value is
with the real square root embedded in . No restriction on is imposed. When , the square root is zero and complex division by zero is defined to give zero, so for every .
QAlgorithms.Papers.Independent.Intake100.P08.mismatchIntensity
For arbitrary real numbers , a complex number , and a Boolean value , define
where and are embedded in inside the absolute value. No bounds on the real parameters are assumed, and is not required to be nonnegative. The real square root is zero for ; in that case the formula reduces to .
QAlgorithms.Papers.Independent.Intake100.P08.photonLaw
For any vector in the complex Hilbert space and any , including , the value of the photon law at is . The definition does not require to have norm one, so it does not require these values to sum to one; the zero vector gives the identically zero law.
QAlgorithms.Papers.Independent.Intake100.P08.poissonPhotonLaw
For any real intensity and any , including zero, define
There is no assumption that ; negative intensities can therefore give negative values. The factorial denominator is always nonzero. At , the convention gives and for .
QAlgorithms.Papers.Independent.Intake100.P08.receiverError
For arbitrary and any function , define
Here real amplitudes are embedded in , and , for , is a chosen vector in whose coordinates satisfy
if such a vector exists, and is the zero vector otherwise. The function need not be linear, continuous, or norm preserving, and no restrictions are placed on the three real parameters. Each real infinite sum is interpreted as zero if its summands are not summable; this definition alone supplies no bound on the resulting error.
QAlgorithms.Papers.Independent.Intake100.P08.signalAmplitude
For any real number and Boolean value , the complex signal amplitude is , viewed as a complex number, when is true, and when is false. No nonnegativity assumption is imposed on ; when , both values are zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.