SurfaceOscillator
The transmitted oscillator, its shot-noise unit and its refusal
11/11 passed in 0ms
| Test | What it does | Result |
|---|---|---|
test_bias_signs | estimate() at a unit ratio of 1 returns the true channel untouched; an inflated ratio hides excess noise while it fakes extra channel loss. | ✅ pass |
test_leak_displaces | A leaking multiplexer displaces the measured quadrature rather than adding a variance, and an undeclared extinction returns None rather than zero. | ✅ pass |
test_local_limit | A lossless span with a back-to-back characterisation returns the locally generated limit: unit and ratio both 1, electronic noise unchanged, no light lost. | ✅ pass |
test_local_refused | q.Link refuses a transmitted oscillator by name on the quadrature path and the click one alike. | ✅ pass |
test_monitor_resolves | The monitor flags a 20% misnormalisation and not a 1e-6 one, and the noise it still hides falls with the sample count rather than with the attack. | ✅ pass |
test_oscillator_domains | q.TransmittedLO refuses an out-of-range photon number, multiplexer transmittance, extinction and delay, naming the parameter refused. | ✅ pass |
test_phase_absent | q.TransmittedLO has no linewidth field and refuses one: both modes leave one laser, so the linewidth that multiplies the delay is Alice's own. | ✅ pass |
test_phase_common | The residual phase variance is the Wiener 2pilinewidth*delay over the multiplexing delay alone, and a zero delay carries exactly none. | ✅ pass |
test_state_refused | covariance() returns a bona fide Gaussian state at a unit ratio of 1 and refuses one a misnormalisation has pushed below the vacuum. | ✅ pass |
test_unit_tracks | The operating shot-noise unit is the oscillator arm's transmittance, span times multiplexer, and the ratio to the characterisation level is its reciprocal. | ✅ pass |
test_vel_grows | Electronic noise referred to the operating unit grows as the oscillator arm loses light: 0.01 SNU quoted back to back reads 1.0 once the oscillator has crossed 20 dB. | ✅ pass |