FuzzClick
Threshold detection: click probability, interferometer ports and full runs
4/4 passed in 131ms
| Test | What it does | Result |
|---|---|---|
test_click_exterior | run_clicks refuses a dark or afterpulse probability of 1, a zero delay, a train too short for its delay, and a non-positive mu or symbol rate. | ✅ pass |
test_click_extreme | Across ten decades of amplitude click_prob is finite and at most 1, and interfere returns finite ports or raises, as it does at 1e300. | ✅ pass |
test_click_run | Over 12 runs every rate and the QBER lie in [0, 1], visibility stays under the configured contrast and mu_bob = t*mu, an ideal receiver gives QBER 0, and the per-slot record sums to the counters. | ✅ pass |
test_click_scalar | Over 400 points click_prob returns a probability and interfere's ports are non-negative and sum to half the incoming flux whatever the visibility, nulling at perfect contrast with equal amplitudes. | ✅ pass |