Model
Scope. The solver models what the equations below state: one optical mode, or one photon in two paths with a polarization marker, together with idealised linear optics and detectors described by efficiency, dark counts and timing jitter.
Random events are Born-rule samples from these probabilities. The solver does not simulate quantized fields in space and time, spatial modes, detector dead time or afterpulsing.
The double-slit tool is a classical scalar-diffraction calculation and makes no statement about photons.
① Mach–Zehnder with a which-path marker. Both beam splitters use the matrix S = [[t, i r], [i r, t]]. After BS1 and the marker the state is
BS2 is a 50:50 splitter. The detection probabilities are Pk = Tr[(Πk ⊗ Πpol) U ρ U†], where Πpol is the identity or a polarizer projector |χ⟩⟨χ|.
The port-1 probability is a sinusoid in φ. Its visibility, its distinguishability and its predictability are
Detector: each detector clicks when the photon arrives and is detected, with probability η, or on a dark count, with probability pd per gate. So P(click k) = 1 − (1 − ηPk)(1 − pd).
② Photon-number statistics. States are built in the truncated basis |0⟩…|N⟩ and renormalised. The discarded probability P(n > N) is reported. The detector applies the loss channel and then adds Poisson dark counts of mean d:
③ HBT. Light is split 50:50 onto two time-tagging detectors. For a stationary source,
The event streams are generated as follows. Coherent light gives independent Poisson processes. Chaotic light uses a complex Gaussian field whose intensity sets the rate of an inhomogeneous Poisson process at each detector.
The emitter is a renewal process in which each emission is followed by an exponential pump wait and an exponential decay wait, and each photon is routed at random. Each detector adds Poisson dark counts at rate rd and Gaussian timing jitter σ. The prediction is
- wa, wb
- probabilities of arm a (1 − R₁) and arm b (R₁)
- ρa, ρb
- marker (polarization) states attached to each arm: |H⟩ and cos θ|H⟩ + sin θ|V⟩
- γ
- unobserved path dephasing: the environment gains information that no one reads
- χ
- transmission axis of the eraser polarizer, measured from H
- η
- detection efficiency, modelled as a beam splitter of transmission η into a perfect detector
- d, pd, rd
- dark counts: mean per gate (②), probability per gate (①), rate in counts/s (③)
- N
- Fock-basis cutoff. The truncation error is the exact P(n > N) of the untruncated state
- τc, τ₀
- coherence time τc = ∫|g¹(τ)|²dτ for thermal light, and antibunching time τ₀ = 1/(Γpump + Γdecay) for the emitter
- σ
- rms timing jitter of each detector. The two jitters add in quadrature, so the correlation is smeared by √2σ
Derivation: complementarity, loss channel and g² of chaotic light
Visibility and distinguishability. Take γ = 0. Behind BS2, port 1 carries (1/√2)(t|ma⟩ − r eiφ|mb⟩), so P₁ = ½[1 − 2tr Re(eiφ⟨ma|mb⟩)].
This oscillates with visibility V = 2√(wawb)|⟨ma|mb⟩|. The best measurement on the marker identifies the path with success probability (1 + D)/2 (Helstrom), where D = ‖waρa − wbρb‖₁.
For pure markers, the 2 × 2 matrix wa|ma⟩⟨ma| − wb|mb⟩⟨mb| has trace wa − wb and determinant −wawb(1 − |⟨ma|mb⟩|²).
Its eigenvalues therefore have opposite signs, and D² = (λ₁ − λ₂)² = 1 − 4wawb|⟨ma|mb⟩|² = 1 − V². Dephasing multiplies V by (1 − γ) but leaves D unchanged, which gives the strict inequality.
Eraser. A polarizer at χ projects the marker onto |χ⟩. The amplitudes become t cos χ and r eiφ cos(θ − χ), so for θ = 90° and χ = ±45° the conditional fringes have V = 1.
The +45° and −45° subsets are shifted by π, and their sum reproduces the fringe-free total. Choosing a polarizer after the photon has passed BS2 therefore changes no probability of the whole ensemble. Erasure is a selection of a subensemble; it does not act back on the photon.
Loss. A photon-number state |n⟩ that meets a beam splitter of transmission η leaves k photons with binomial probability C(n,k)ηk(1 − η)n−k, because each photon is transmitted independently.
The probability generating function transforms as G(s) → G(1 − η + ηs). A coherent state has G = en̄(s−1), which becomes eηn̄(s−1), a coherent state again. A thermal state has G = 1/(1 + n̄ − n̄s), which becomes thermal with ηn̄.
The factorial moments scale as ⟨n(n−1)⟩ → η²⟨n(n−1)⟩, so g²(0) is unchanged by loss while Q → ηQ.
Chaotic light. The field is a complex Gaussian random process, so ⟨E*(t)E*(t+τ)E(t+τ)E(t)⟩ = ⟨|E|²⟩² + |⟨E*(t)E(t+τ)⟩|² (Isserlis/Wick). This gives the Siegert relation g² = 1 + |g¹|².
Photodetection of such a field is a doubly stochastic (Cox) Poisson process. This is exactly the quantum prediction for thermal light, whose Glauber–Sudarshan P-function is a positive Gaussian.
A single emitter cannot emit two photons at once. After a click it is in its ground state and must be re-excited, so g²(0) = 0. No positive P-function, and hence no classical intensity, can give g²(0) < 1.
Worked example — how good is a single-photon source?
A quantum-dot source has antibunching time τ₀ = 1 ns. Each HBT detector records 180 kcps of signal and 20 kcps of uncorrelated background, which includes dark counts, and has jitter σ = 0.3 ns.
Uncorrelated counts add a flat pedestal. With ρ = 180/200 = 0.9 at each detector, the pedestal alone limits the dip to g²(0) = 1 − ρ² = 0.19.
Jitter then fills the dip. For g² − 1 = −e−|τ|/τ₀, averaging over a Gaussian of rms s = √2σ = 0.424 ns gives
So g²meas(0) = 1 − 0.81 × 0.735 = 0.405. The emitter itself is perfect: g²(0) = 0. Background subtraction corrects the factor ρ², and deconvolving the jitter recovers the 0.735 factor.
A value below 0.5 is the usual criterion for a single emitter, because two independent emitters give g²(0) ≥ 0.5.
Load Emitter, real detectors. It uses a detected rate of 1 Mcps and 111 kcps of dark counts, which gives the same ρ = 0.9, and the measured centre bins agree with 0.405 within the error, apart from a small bin-averaging correction.