AttacksSource
Trojan-horse light injection into Alice's transmitter
7/7 passed in 0ms
| Test | What it does | Result |
|---|---|---|
test_delta_first | Eq. (7)'s coin imbalance is mu_out/2 to first order and not a probability, peaking at 0.5335 near 3*pi/4. | ✅ pass |
test_double_pass | probe_isolation follows Eq. (15) term by term: reflection once, attenuator and filter twice, isolator once per stage. | ✅ pass |
test_lucamarini_budget | Lucamarini arXiv:1506.01989 Sec. IV's 170 dB three ways: summed over their split by Eq. (15), solved from their 1e-6 target by Eq. (16), and spent back to 1e-6 by Eq. (4). | ✅ pass |
test_phase_rises | probe_phase equals the measured error rate at zero leak, rises with the leak and as the single-photon yield falls, and clamps at 1/2. | ✅ pass |
test_probe_domains | The injection functions refuse a fractional isolator stage, a zero modulator clock, a QBER past 1/2 and a zero single-photon yield. | ✅ pass |
test_probe_reading | probe_break leaves the observed QBER unmoved while Eve's phase error rate rises above it, and the Reading refuses key_rate. | ✅ pass |
test_rate_refused | probe_rate raises NotImplementedError naming its missing pieces: THA-exposed decoys, a per-basis yield, a four-state BB84 map, and flaws.rs's no-side-channel assumption. | ✅ pass |