Circular Gaussian fields, intensity autocovariances, far-field cross-spectral densities and single-mode coherent states
DefinitionArxiv1706_02824_BasicObjects of Sections 2-6 and the Appendix of Gureyev, Kozlov, Paganin, Nesterets, de Hoog and Quiney (2017). One transverse dimension is used throughout, as in the paper.
- Circular Gaussian field. A family of complex amplitudes on a probability space has circular Gaussian statistics if every finite subfamily is jointly Gaussian (real and imaginary parts), and for all .
- Exposure-averaged intensity and its autocovariance (eq. 6). For a field , and .
- Cross-spectral density (Appendix). is integrable and , which is the meaning of .
- Kernels. For a spectral function , with (right side of eq. 6). with . The coherence time is .
- Source and far field (eqs. 9-10). . The wavelength is . The quasi-homogeneous model is with and . The far-field cross-spectral density is with .
- Flat-field noise (Section 4). is the autocorrelation and the convolution. and . On a stationary patch around , the filtered autocovariance is with , and the noise power spectrum is its Fourier transform in .
- Quasi-monochromatic coherence factors (Section 5). For amplitudes : , , and is the covariance of and . Then , is the correlation coefficient of the amplitudes, and .
- Single-mode coherent state (Section 6). States are Fock-coefficient sequences , with and . The coherent state is , and . The field operators are and . The intensity operator is . From these come , the normally ordered correlation , the factors of eqs. (30)-(31) and .
- Fresnel propagation (eq. 3). with .
Formalization Note Expectations in a coherent state are computed on Fock coefficients, where the series converge absolutely. The noise power spectrum is the forward Fourier transform in , which coincides with the inverse transform the paper mentions because the function is even in .
import Mathlib
/-!
Gureyev, Kozlov, Paganin, Nesterets, de Hoog and Quiney, *On the van Cittert - Zernike theorem for
intensity correlations and its applications*, arXiv:1706.02824v1 (2017): the circular Gaussian
field model, exposure-averaged intensities, cross-spectral densities and intensity autocovariances
of Sections 2-3 and the Appendix; the far-field quasi-homogeneous model of eqs. (9)-(10); the
flat-field noise quantities of Section 4; the coherence factors of Section 5; and the single-mode
coherent-state field operators of Section 6.
-/
open MeasureTheory ProbabilityTheory Real
open scoped ComplexConjugate
noncomputable section
namespace Arxiv1706_02824
section Classical
variable {Omega : Type*} [MeasurableSpace Omega]
/-- Section 2, the assumption before eq. (2): the complex amplitudes `U i` have circular Gaussian
statistics, i.e. every finite family of them is jointly Gaussian (as a vector of real and
imaginary parts), with `E[U i] = 0` and `E[U i U j] = 0` (Goodman, *Statistical Optics*). -/
def IsCircularGaussian {ι : Type*} (P : Measure Omega) (U : ι → Omega → ℂ) : Prop :=
IsGaussianProcess U P ∧ (∀ i, ∫ w, U i w ∂P = 0) ∧ (∀ i j, ∫ w, U i w * U j w ∂P = 0)
/-- Section 2, before eq. (6): the intensity averaged over one exposure of duration `T`,
`I_{T,R}(x) = T⁻¹ ∫_{-T/2}^{T/2} |U_R(x,t)|² dt`, for a field `U (x, t)`. -/
def timeAvgIntensity (U : ℝ × ℝ → Omega → ℂ) (T x : ℝ) (w : Omega) : ℝ :=
T⁻¹ * ∫ t in (-T / 2)..(T / 2), ‖U (x, t) w‖ ^ 2
/-- Eq. (6), first line (and eq. (A1)): the intensity autocovariance
`C_{T,R}(x₁,x₂) = ⟨I_{T,R}(x₁) I_{T,R}(x₂)⟩ - ⟨I_{T,R}(x₁)⟩⟨I_{T,R}(x₂)⟩`. -/
def intensityAutocov (P : Measure Omega) (U : ℝ × ℝ → Omega → ℂ) (T x1 x2 : ℝ) : ℝ :=
(∫ w, timeAvgIntensity U T x1 w * timeAvgIntensity U T x2 w ∂P) -
(∫ w, timeAvgIntensity U T x1 w ∂P) * (∫ w, timeAvgIntensity U T x2 w ∂P)
/-- Appendix, after eq. (A6): `W(x₁,x₂,ν)` is the cross-spectral density of the field,
`⟨U(x₁,ν) U*(x₂,ν')⟩ = W(x₁,x₂,ν) δ(ν - ν')` with `U(x,t) = ∫ U(x,ν) exp(i2πνt) dν` (eq. (A2));
equivalently `W(x₁,x₂,·)` is integrable and
`⟨U(x₁,t₁) U*(x₂,t₂)⟩ = ∫ W(x₁,x₂,ν) exp(i2πν(t₁ - t₂)) dν`. -/
def IsCrossSpectralDensity (P : Measure Omega) (U : ℝ × ℝ → Omega → ℂ)
(W : ℝ → ℝ → ℝ → ℂ) : Prop :=
∀ x1 x2, Integrable (W x1 x2) ∧ ∀ t1 t2,
∫ w, U (x1, t1) w * conj (U (x2, t2) w) ∂P =
∫ ν : ℝ, W x1 x2 ν * Complex.exp (2 * π * Complex.I * ((ν * (t1 - t2) : ℝ) : ℂ))
/-- Eq. (6), second line: `∬ W(ν₁) W*(ν₂) sinc²[π(ν₁ - ν₂)T] dν₁ dν₂` for a spectral
function `W = W_R(x₁,x₂,·)`, with `sinc y = sin y / y`. -/
def sincSqIntegral (W : ℝ → ℂ) (T : ℝ) : ℂ :=
∫ ν1, ∫ ν2, W ν1 * conj (W ν2) * ((Real.sinc (π * (ν1 - ν2) * T) ^ 2 : ℝ) : ℂ)
/-- Eq. (8'): the coherence time `T_c = ∫ s²(ν) dν` of cross-spectrally pure light with
normalised spectrum `s`. -/
def coherenceTime (s : ℝ → ℝ) : ℝ := ∫ ν, s ν ^ 2
/-- Appendix, before eq. (A10): `f_T(ν) = sin²(πνT)/(π²ν²T)`, so that
`sinc²(πνT) = (1/T) f_T(ν)`; written `T sinc²(πνT)`, which takes the limiting value `T`
at `ν = 0`. -/
def fejerKernelT (T ν : ℝ) : ℝ := T * Real.sinc (π * ν * T) ^ 2
/-- Section 3, after eq. (10): the Fourier transform with respect to the position variable,
`f̂(u) = ∫ exp(-i2πux) f(x) dx`. -/
def ft (f : ℝ → ℂ) (u : ℝ) : ℂ :=
∫ x : ℝ, Complex.exp (-(2 * π * Complex.I * ((u * x : ℝ) : ℂ))) * f x
/-- Section 2, after eq. (6): the wavelength `λ = c/ν` of temporal frequency `ν`. -/
def wavelength (c ν : ℝ) : ℝ := c / ν
/-- Eq. (9): the quasi-homogeneous model of the source-plane cross-spectral density,
`W₀(x₁',x₂',ν) = S₀((x₁'+x₂')/2, ν) g₀(x₁'-x₂', ν)`, where `S₀ ≥ 0` is the spectral density and
`g₀` the spectral degree of coherence, `g₀(0,ν) = 1`. -/
def IsQuasiHomogeneous (W0 : ℝ → ℝ → ℝ → ℂ) (S0 : ℝ → ℝ → ℝ) (g0 : ℝ → ℝ → ℂ) : Prop :=
(∀ x ν, 0 ≤ S0 x ν) ∧ (∀ ν, g0 0 ν = 1) ∧
∀ x1 x2 ν, W0 x1 x2 ν = (S0 ((x1 + x2) / 2) ν : ℂ) * g0 (x1 - x2) ν
/-- Eq. (10): the far-field cross-spectral density of a quasi-homogeneous source,
`W_R(x₁,x₂,ν) = exp(iψ)/(λR) Ŝ₀((x₁-x₂)/(λR), ν) ĝ₀((x₁+x₂)/(2λR), ν)`,
`ψ = π(x₁² - x₂²)/(λR)`, `λ = c/ν`. -/
def farFieldCSD (c R : ℝ) (S0 : ℝ → ℝ → ℝ) (g0 : ℝ → ℝ → ℂ) (x1 x2 ν : ℝ) : ℂ :=
Complex.exp (Complex.I * ((π * (x1 ^ 2 - x2 ^ 2) / (wavelength c ν * R) : ℝ) : ℂ)) /
((wavelength c ν * R : ℝ) : ℂ) *
ft (fun y => (S0 y ν : ℂ)) ((x1 - x2) / (wavelength c ν * R)) *
ft (fun y => g0 y ν) ((x1 + x2) / (2 * wavelength c ν * R))
/-- Section 4, after eq. (16): the autocorrelation `Γ(x') = ∫ f(y') f(x'+y') dy'` (used for
`Γ₀` of the source spectral density, and for `P₂` of the PSF after eq. (15)). -/
def autocorr (f : ℝ → ℝ) (x : ℝ) : ℝ := ∫ y, f y * f (x + y)
/-- Eq. (15): the convolution `(f * g)(r) = ∫ f(r - y) g(y) dy`. -/
def conv (f g : ℝ → ℝ) (r : ℝ) : ℝ := ∫ y, f (r - y) * g y
/-- Section 4, after eq. (13): the noise variance
`σ²(x,ν) = |Ŝ₀(0,ν)|² |ĝ₀(x/(λR),ν)|² / (λ²R²)`, `λ = c/ν`. -/
def noiseVariance (c R : ℝ) (S0 : ℝ → ℝ → ℝ) (g0 : ℝ → ℝ → ℂ) (x ν : ℝ) : ℝ :=
‖ft (fun y => (S0 y ν : ℂ)) 0‖ ^ 2 *
‖ft (fun y => g0 y ν) (x / (wavelength c ν * R))‖ ^ 2 /
(wavelength c ν ^ 2 * R ^ 2)
/-- Section 4, after eq. (13): the noise correlation `H(r,ν) = |Ŝ₀(r/(λR),ν)|²`, `λ = c/ν`. -/
def noiseCorrelation (c R : ℝ) (S0 : ℝ → ℝ → ℝ) (r ν : ℝ) : ℝ :=
‖ft (fun y => (S0 y ν : ℂ)) (r / (wavelength c ν * R))‖ ^ 2
/-- Eq. (15), last line, on a "stationary patch" around the mean coordinate `x = (x₁+x₂)/2`:
the autocovariance of the PSF-filtered intensity as a function of `r = x₁ - x₂`,
`T⁻¹ ∫ σ²(x,ν) (H * P₂)(r,ν) / H(0,ν) dν` (frequencies `ν > 0`). -/
def patchAutocov (c R T : ℝ) (S0 : ℝ → ℝ → ℝ) (g0 : ℝ → ℝ → ℂ) (Pf : ℝ → ℝ) (x r : ℝ) : ℝ :=
T⁻¹ * ∫ ν in Set.Ioi 0,
noiseVariance c R S0 g0 x ν * conv (fun r' => noiseCorrelation c R S0 r' ν) (autocorr Pf) r /
noiseCorrelation c R S0 0 ν
/-- Eq. (16), left side: the noise power spectrum `W_{T,R,x}(ξ)`, the Fourier transform of the
patch autocovariance with respect to `r = x₁ - x₂`. -/
def noisePowerSpectrum (c R T : ℝ) (S0 : ℝ → ℝ → ℝ) (g0 : ℝ → ℝ → ℂ) (Pf : ℝ → ℝ)
(x ξ : ℝ) : ℂ :=
ft (fun r => (patchAutocov c R T S0 g0 Pf x r : ℂ)) ξ
/-- Eq. (4): the mutual intensity `J_R(x₁,x₂) = ⟨U*(x₁) U(x₂)⟩` of quasi-monochromatic
amplitudes `V x`. -/
def mutualIntensity (P : Measure Omega) (V : ℝ → Omega → ℂ) (x1 x2 : ℝ) : ℂ :=
∫ w, conj (V x1 w) * V x2 w ∂P
/-- Eq. (4): the mean intensity `⟨I_R(x)⟩ = ⟨|U(x)|²⟩`. -/
def meanIntensity (P : Measure Omega) (V : ℝ → Omega → ℂ) (x : ℝ) : ℝ :=
∫ w, ‖V x w‖ ^ 2 ∂P
/-- Eq. (1): the intensity autocovariance `C_R(x₁,x₂) = ⟨I(x₁)I(x₂)⟩ - ⟨I(x₁)⟩⟨I(x₂)⟩` of
quasi-monochromatic amplitudes, `I(x) = |U(x)|²`. -/
def qmIntensityCov (P : Measure Omega) (V : ℝ → Omega → ℂ) (x1 x2 : ℝ) : ℝ :=
(∫ w, ‖V x1 w‖ ^ 2 * ‖V x2 w‖ ^ 2 ∂P) - meanIntensity P V x1 * meanIntensity P V x2
/-- Eq. (20): the second-order coherence factor
`γ^{(1,1)}(x₁,x₂) = J_R(x₁,x₂) / (⟨I(x₁)⟩^{1/2} ⟨I(x₂)⟩^{1/2})`. -/
def coherenceFactor11 (P : Measure Omega) (V : ℝ → Omega → ℂ) (x1 x2 : ℝ) : ℂ :=
mutualIntensity P V x1 x2 /
((Real.sqrt (meanIntensity P V x1) : ℂ) * (Real.sqrt (meanIntensity P V x2) : ℂ))
/-- Eq. (20): the correlation coefficient `c^{(1,1)}(x₁,x₂)` of the complex amplitudes,
`⟨(U(x₁) - ⟨U(x₁)⟩)* (U(x₂) - ⟨U(x₂)⟩)⟩` divided by the product of the standard deviations. -/
def ampCorrCoeff (P : Measure Omega) (V : ℝ → Omega → ℂ) (x1 x2 : ℝ) : ℂ :=
(∫ w, conj (V x1 w - ∫ w', V x1 w' ∂P) * (V x2 w - ∫ w', V x2 w' ∂P) ∂P) /
((Real.sqrt (∫ w, ‖V x1 w - ∫ w', V x1 w' ∂P‖ ^ 2 ∂P) : ℂ) *
(Real.sqrt (∫ w, ‖V x2 w - ∫ w', V x2 w' ∂P‖ ^ 2 ∂P) : ℂ))
/-- Eq. (19): the spatial correlation coefficient of intensities
`c^{(2,2)}(x₁,x₂) = C_R(x₁,x₂) / [C_R(x₁,x₁) C_R(x₂,x₂)]^{1/2}`. -/
def intensityCorrCoeff (P : Measure Omega) (V : ℝ → Omega → ℂ) (x1 x2 : ℝ) : ℝ :=
qmIntensityCov P V x1 x2 / Real.sqrt (qmIntensityCov P V x1 x1 * qmIntensityCov P V x2 x2)
/-- Eq. (21): the fourth-order coherence factor
`γ^{(2,2)}(x₁,x₂) = ⟨I(x₁)I(x₂)⟩ / (⟨I(x₁)⟩⟨I(x₂)⟩)`. -/
def coherenceFactor22 (P : Measure Omega) (V : ℝ → Omega → ℂ) (x1 x2 : ℝ) : ℝ :=
(∫ w, ‖V x1 w‖ ^ 2 * ‖V x2 w‖ ^ 2 ∂P) / (meanIntensity P V x1 * meanIntensity P V x2)
end Classical
section Quantum
/-- Section 6: the annihilation operator `a` of the single mode, acting on Fock-basis
coefficients, `(aψ)(n) = √(n+1) ψ(n+1)`. -/
def annihilation (ψ : ℕ → ℂ) : ℕ → ℂ := fun n => (Real.sqrt (n + 1) : ℂ) * ψ (n + 1)
/-- Section 6: the creation operator `a†` of the single mode, acting on Fock-basis
coefficients, `(a†ψ)(0) = 0`, `(a†ψ)(n+1) = √(n+1) ψ(n)`. -/
def creation (ψ : ℕ → ℂ) : ℕ → ℂ
| 0 => 0
| n + 1 => (Real.sqrt (n + 1) : ℂ) * ψ n
/-- Section 6: the Glauber coherent state `|α⟩`, with Fock coefficients
`exp(-|α|²/2) αⁿ / √(n!)`. -/
def coherentState (α : ℂ) : ℕ → ℂ := fun n =>
(Real.exp (-(‖α‖ ^ 2) / 2) : ℂ) * α ^ n / (Real.sqrt (n.factorial) : ℂ)
/-- The inner product `⟨φ|ψ⟩ = Σₙ φ(n)* ψ(n)` of Fock-basis coefficient sequences. -/
def fockInner (φ ψ : ℕ → ℂ) : ℂ := ∑' n, conj (φ n) * ψ n
/-- Section 6: `E⁺(x) = i (ħω/2)^{1/2} u(x) a`, the positive-frequency field operator of the
single mode with mode function `u`. -/
def fieldPos (hbar ω : ℝ) (u : ℝ → ℂ) (x : ℝ) (ψ : ℕ → ℂ) : ℕ → ℂ := fun n =>
Complex.I * (Real.sqrt (hbar * ω / 2) : ℂ) * u x * annihilation ψ n
/-- Section 6: `E⁻(x) = (E⁺)†(x) = -i (ħω/2)^{1/2} u*(x) a†`. -/
def fieldNeg (hbar ω : ℝ) (u : ℝ → ℂ) (x : ℝ) (ψ : ℕ → ℂ) : ℕ → ℂ := fun n =>
-Complex.I * (Real.sqrt (hbar * ω / 2) : ℂ) * conj (u x) * creation ψ n
/-- Section 6, after eq. (23): the intensity operator `G(x) = E⁻(x) E⁺(x)`. -/
def intensityOp (hbar ω : ℝ) (u : ℝ → ℂ) (x : ℝ) (ψ : ℕ → ℂ) : ℕ → ℂ :=
fieldNeg hbar ω u x (fieldPos hbar ω u x ψ)
/-- Section 6: the expectation value `⟨α|A|α⟩` in the coherent state `|α⟩`. -/
def cohExpect (α : ℂ) (A : (ℕ → ℂ) → ℕ → ℂ) : ℂ :=
fockInner (coherentState α) (A (coherentState α))
/-- Eq. (25): `C_α(x₁,x₂) = ⟨α|G(x₁)G(x₂)|α⟩ - ⟨α|G(x₁)|α⟩⟨α|G(x₂)|α⟩`; eq. (26):
`V_α(x) = C_α(x,x)`. -/
def cohIntensityAutocov (hbar ω : ℝ) (u : ℝ → ℂ) (α : ℂ) (x1 x2 : ℝ) : ℂ :=
cohExpect α (fun ψ => intensityOp hbar ω u x1 (intensityOp hbar ω u x2 ψ)) -
cohExpect α (intensityOp hbar ω u x1) * cohExpect α (intensityOp hbar ω u x2)
/-- Eq. (30), numerator: the normally ordered correlation
`⟨α|E⁻(x₁)E⁻(x₂)E⁺(x₁)E⁺(x₂)|α⟩`. -/
def normalOrderedCorr (hbar ω : ℝ) (u : ℝ → ℂ) (α : ℂ) (x1 x2 : ℝ) : ℂ :=
cohExpect α (fun ψ => fieldNeg hbar ω u x1 (fieldNeg hbar ω u x2
(fieldPos hbar ω u x1 (fieldPos hbar ω u x2 ψ))))
/-- Eq. (30): the normally ordered fourth-order coherence factor
`⟨α|E⁻(x₁)E⁻(x₂)E⁺(x₁)E⁺(x₂)|α⟩ / (⟨α|E⁻(x₁)E⁺(x₁)|α⟩⟨α|E⁻(x₂)E⁺(x₂)|α⟩)`. -/
def cohGamma22Normal (hbar ω : ℝ) (u : ℝ → ℂ) (α : ℂ) (x1 x2 : ℝ) : ℂ :=
normalOrderedCorr hbar ω u α x1 x2 /
(cohExpect α (intensityOp hbar ω u x1) * cohExpect α (intensityOp hbar ω u x2))
/-- Eq. (31): `γ_α^{(2,2)}(x₁,x₂) = ⟨α|G(x₁)G(x₂)|α⟩ / (I_α(x₁) I_α(x₂))` with
`I_α(x) = ⟨α|G(x)|α⟩`. -/
def cohGamma22 (hbar ω : ℝ) (u : ℝ → ℂ) (α : ℂ) (x1 x2 : ℝ) : ℂ :=
cohExpect α (fun ψ => intensityOp hbar ω u x1 (intensityOp hbar ω u x2 ψ)) /
(cohExpect α (intensityOp hbar ω u x1) * cohExpect α (intensityOp hbar ω u x2))
/-- Eq. (32): the squared signal-to-noise ratio `SNR²(x) = I_α(x)² / V_α(x)`. -/
def snrSq (hbar ω : ℝ) (u : ℝ → ℂ) (α : ℂ) (x : ℝ) : ℂ :=
cohExpect α (intensityOp hbar ω u x) ^ 2 / cohIntensityAutocov hbar ω u α x x
end Quantum
/-- Eq. (3): Fresnel propagation over distance `R` at wavelength `λ`,
`U_R(x) = exp(ikR)/(i√(λR)) ∫ exp(iπ(x - x')²/(λR)) U₀(x') dx'`, `k = 2π/λ`. -/
def fresnelProp (lam R : ℝ) (f : ℝ → ℂ) (x : ℝ) : ℂ :=
Complex.exp (Complex.I * ((2 * π / lam * R : ℝ) : ℂ)) /
(Complex.I * (Real.sqrt (lam * R) : ℂ)) *
∫ x', Complex.exp (Complex.I * ((π / (lam * R) * (x - x') ^ 2 : ℝ) : ℂ)) * f x'
end Arxiv1706_02824
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Common conventions (apply to every item below).
- is an arbitrary set with a -algebra.
- is an arbitrary measure on . It is not assumed to be a probability measure unless stated, so "expectations" below are plain integrals .
- Every integral (over , over with Lebesgue measure, or over an interval) is a Bochner integral. It is defined to be whenever the integrand is not integrable.
- Division by yields .
- of a real is .
- for , and .
- denotes complex conjugation.
IsCircularGaussian (circular Gaussian family). Let be an arbitrary index set, a measure on , and a family of complex-valued functions on . The family is called circular Gaussian when all three of the following hold:
- Gaussian process. For every finite set , the joint law (push-forward of ) of the vector is a Gaussian measure on , regarded as a real vector space. That is, every continuous real-linear functional has a real Gaussian law, possibly degenerate (zero variance). Gaussian measures have total mass , so this requires these laws to be probability measures.
- Zero mean. For every ,
- Zero pseudo-covariance. For every (including ),
where the product has no complex conjugate.
timeAvgIntensity (exposure-averaged intensity). Let be a field indexed by a position and a time , with . For real , and outcome , define
Edge cases:
- The integral is oriented. For the bounds are reversed, which flips its sign.
- For the value is , because .
- If is not integrable on the interval, the integral is .
intensityAutocov (intensity autocovariance). For a measure , a field as above, and real , define
where . All the junk-value conventions above apply. In particular when .
IsCrossSpectralDensity. For a measure , a field , and a function , the statement " is a cross-spectral density of " means: for all real ,
- the function is Lebesgue-integrable on ; and
- for all real ,
The left side is taken as if the integrand is not -integrable. No other condition on or is imposed (no measurability, no Gaussianity, no normalisation of ).
sincSqIntegral. For and real , this is the iterated integral (inner integral over , outer over )
Edge cases:
- Each integral is if its integrand is not integrable.
- For the sinc factor is identically .
coherenceTime. For any real function on , define
which is if is not integrable. No normalisation, sign condition or other property of is assumed.
fejerKernelT. For real , define
Consequently:
- for all ;
- ;
- is negative when .
ft (Fourier transform). For and , define
which is when the integrand is not integrable.
wavelength. For real , define . In particular when . No sign conditions are imposed.
IsQuasiHomogeneous. For , and , the triple is quasi-homogeneous when all of the following hold:
- for all real ;
- for all real ;
- for all real ,
No integrability, smoothness or slow-variation conditions are included.
farFieldCSD. For real , functions and , and real , set (with if ). Let and be the Fourier transforms of and . The value is
The prefactor is , with no square root. If (for example , or ), the whole expression is .
autocorr. For and , define
which is if the integrand is not integrable.
conv. For and , define
which is if the integrand is not integrable.
noiseVariance. For real , , , and real , with and the Fourier transforms in the first variable as above, define
This equals whenever .
noiseCorrelation. For real , , and real , with , define
where is the Fourier transform of . If , the argument becomes and for all .
patchAutocov. The inputs are real , functions and as above, a real function on (the point-spread function), and real . Write:
- and for the noise variance and noise correlation defined above;
- .
The value is
where
Edge cases:
- The integration is over only.
- The integrand is at any where .
- The value is if .
- The usual non-integrability conventions apply.
The quantity is a function of and only; no relation , to any field is imposed.
noisePowerSpectrum. With the same inputs as the patch autocovariance, plus real and , this is the Fourier transform in of (patch autocovariance above):
It is if the integrand is not integrable.
mutualIntensity. For a measure , complex amplitudes indexed by , and real , define
The conjugate is on the first argument.
meanIntensity. For a measure and amplitudes , define
which is if is not -integrable.
qmIntensityCov. For a measure , amplitudes , and real , define
where .
coherenceFactor11. For a measure , amplitudes , and real , define
where and . The value is if either mean intensity is , including when it is a non-integrability junk value.
ampCorrCoeff. For a measure , amplitudes , and real , let . Define
The "means" are raw integrals, not normalised by . The value is if either square root is .
intensityCorrCoeff. For a measure , amplitudes , and real , define the real number
where
The value is if the product is , because the square root is then .
coherenceFactor22. For a measure , amplitudes , and real , define the real number
where . The value is if the denominator is .
In the quantum part, a "state" is an arbitrary complex sequence , indexed from . No square-summability or normalisation is required, and operators act on all such sequences.
annihilation. For a sequence , define
creation. For a sequence , define
coherentState. For , is the sequence
with the convention , also for .
fockInner. For sequences , define
taken as an unconditional sum. It is defined to be if the series is not (absolutely) summable. The conjugate is on the first argument.
fieldPos. For real , a mode function , a position , and a sequence , define
where . If , the square root is and is the zero operator.
fieldNeg. For real , , , and a sequence , define
where and . If , this is the zero operator.
intensityOp. For real , , and , the operator on sequences is
with
Here , and .
cohExpect. For and any map from sequences to sequences, define
with . The sum is set to if it is not summable. need not be linear.
cohIntensityAutocov. For real , , , and real , define the complex number
- means applying first, then .
- , with the field operators, coherent state and summation conventions as defined above.
normalOrderedCorr. For real , , , and real , define
The operators are applied right to left: first , then , then , then . Here
Coherent state and summation conventions are as above.
cohGamma22Normal. For real , , , and real , define the complex number
with . The value is if the denominator is , for example if , , or .
cohGamma22. For real , , , and real , define the complex number
with and applied first in the numerator. The value is if the denominator is .
snrSq. For real , , , and real , define the complex number
where
The value is if .
fresnelProp (Fresnel propagation). For real , a function , and , define
Edge cases:
- If , then , the prefactor is a division by , and for every .
- The integral is if its integrand is not integrable.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.