Skip to content

FuzzClick ​

Threshold detection: click probability, interferometer ports and full runs

4/4 passed in 131ms

TestWhat it doesResult
test_click_exteriorrun_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_extremeAcross 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_runOver 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_scalarOver 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