Skip to content

ClickBackground ​

Phase 5b: Raman and Rayleigh flux as one per-gate floor beside the dark

9/9 passed in 257ms

TestWhat it doesResult
test_background_reads_as_darkA Raman flux through bg_floor drives the DPS QBER exactly as an equal dark probability does, q.ClickDetector(dark=...) being the composition point with no separate QBER term.✅ pass
test_floor_composesbg_floor is 1−(1−d)e−η∑Φ: an empty list is the bare dark, fluxes sum, and one flux matches click_prob at that photon number.✅ pass
test_modes_count_the_gateThe mode count is passbandgatepol, so doubling the filter width, the gate or the polarisations doubles the photons one occupancy delivers.✅ pass
test_poisson_beats_linearbg_floor exponentiates where Eraerds' Eq. (11) is linear, a form their note under Eq. (15) says carries no Poisson statistics, so the linear form reads high at every flux.✅ pass
test_raman_matches_powerKumar's Eq. (6) occupancy over passbandgate2 reproduces Eraerds' Eq. (11) Pram/(hν)⋅dtgate, Eq. (6)'s 1/2 being the oscillator's and the 45 pm filter carrying no polarisation factor.✅ pass
test_rayleigh_split_is_opticsThe 1/2 in rayleigh_photons, the oscillator's polarisation selectivity, and the 1/2 in split, two detectors dividing an unpolarised return, cancel, so the engine takes the unpolarised number.✅ pass
test_rayleigh_takes_the_gateAn elastic return is continuous: a gate takes gate/period of one period's photons and split this detector's share, a full-period gate at split=1 returning its input.✅ pass
test_rejects_nonsenseThe passband, gate, polarisation count, split and a saturating flux are each refused by name.✅ pass
test_thermal_bounds_poissonSpontaneous Raman is chaotic: the M-mode law 1−(1−d)(1+ηn)−M reads below the Poisson one at equal flux, the gap closing as the mode count rises at fixed flux.✅ pass