Skip to content

CrossModulation ​

The discrete-modulation engine reduced to the Gaussian key-rate layer

5/5 passed in 69ms

TestWhat it doesResult
test_alice_marginalM-PSK of amplitude α has VA=2α2 for every M, so the discrete penalty lives in z alone.✅ pass
test_dm_receiverdm_rate on the true channel with a real receiver equals dm_rate on the merged channel with an ideal one, pinning heterodyne's mu = 2.✅ pass
test_gaussian_limitdm_holevo at z=TVA(VA+2) with an unbounded alphabet equals cv_rate at ideal heterodyne to 1e-10 over 336 points, VA 1e-3 to 1e3, T 1e-4 to 0.99, ξ 0 to 1.✅ pass
test_transparent_seamAt T=1, where both eigenvalues sit within sqrt(eps) of vacuum, dm_holevo and cv_rate agree to 1e-12 on I_AB and 2e-6 on chi_BE, twice an offline 1.2e5-point worst of 9.6e-7, cv_rate reading Eve low.✅ pass
test_untrusted_detectorWith η and vel folded into the channel by hand, dm_holevo reproduces cv_rate's untrusted mode to 1e-13.✅ pass