Skip to content

PolarisationCarrier ​

Polarisation encoding: misalignment from a frame rotation, not a knob

6/6 passed in 2ms

TestWhat it doesResult
test_carrier_reducesAn undescribed frame has contrast exactly 1.0, pol_error returns the misalignment, and the polarisation link equals the plain one in rate, qber and gain.✅ pass
test_contrast_composespol_error composes misalignment and frame rotation as contrasts, 1 - 2e = (1 - 2e_miss) C to 1e-14, not as summed error rates.✅ pass
test_drift_linkThrough q.Link a 50 mrad drift lifts the qber from 3.31% to 3.545% and keeps 0.898 of the key rate, reporting tracking, optics misalignment, derived misalignment and contrast as separate rows.✅ pass
test_frame_guardsq.ReferenceFrame refuses an unknown model, a field the chosen tracking model does not consume, a free frame with no rate, and dispersion without a width.✅ pass
test_pmd_linkPMD contrast is the field overlap sqrt(mode_overlap), not the intensity overlap, and the link scales DGD by sqrt(length) to 0.5 ps at 25 km and refuses PMD with no span.✅ pass
test_tracking_mattersA 5 mrad tracked frame and a 0.1 rad/sqrt(s) free walk over 1 s differ over 100x in error rate, and free-walk contrast decays from 1 to 0 with the interval.✅ pass