ClickOptics
Phase 5b: threshold-detector and delay-interferometer closed forms
5/5 passed in 1ms
| Test | What it does | Result |
|---|---|---|
test_rejects_nonsense | Efficiency, dark probability, visibility and interferometer delay are each refused by name. | ✅ pass |
test_stencil_flux | One slot's ports sum to half the two pulses' photons at any visibility or phase, where the /sqrt(2) two-mode form would double every count rate. | ✅ pass |
test_stencil_overflow | interfere raises once click_prob saturates. | ✅ pass |
test_stencil_ports | In-phase pulses fill the constructive port and anti-phase the destructive one. | ✅ pass |
test_stencil_visibility | Imperfect contrast scales the interference term alone, so an in-phase slot reproduces | ✅ pass |