Skip to content

ShotCalibration ​

The calibration line, and the estimator bias a wrong shot-noise unit makes

9/9 passed in 0ms

TestWhat it doesResult
test_bias_signsAn assumed unit above the actual one divides the fitted transmittance by the ratio and lowers the estimated excess noise by (ratio - 1)/(eta*T).✅ pass
test_conventions_differThe self-consistent estimate is Jouguet Eq. (8)'s unbiased-slope form times the shot-noise ratio.✅ pass
test_flat_matchestlo_estimate's unbiased-slope row equals attacks.calib_xi bit for bit at five ratios.✅ pass
test_gap_hiddenThe excess noise a fixed ratio hides rises as the channel darkens, as (ratio - 1)/(eta*T).✅ pass
test_jouguet_hidesAt Jouguet's T = eta = 0.5 an intercept-resend raising the excess noise to 2.1 SNU is erased by attacks.calib_ratio's shot-noise ratio of 1.525.✅ pass
test_line_readstlo_calib returns the assumed and actual shot noise, their ratio, and the electronic floor in the assumed unit.✅ pass
test_loss_signatureThe fitted transmittance carries an apparent extra loss of 10*log10(ratio) dB, 3.0103 dB at a factor two.✅ pass
test_monitor_readsThe normalised zero-signal variance is 1.05 when honest and 0.85 at ratio 1.25, the electronic floor unmoved.✅ pass
test_range_movestlo_range is alpha*sqrt(ratio): a half-range fixed in photocurrent moves in shot-noise units.✅ pass