Repository navigation
0.16.0
pip install maiman==0.16.0
Four-wave mixing is solved exactly now, where it used to be a truncated series.
Constant tones: every order at once
tone_solver integrates the coupled equations of the launched tones and every product above
mixing_floor through the span (kernels.fwm_tone_solve, a Dormand–Prince pair). Cross-phase,
depletion and every order of mixing are in them. It lands on the split-step to five digits where
the series was 25 % off at 30 mW over 20 km, or 2.3 times out over four spans. It carries:
- two polarizations, coupled by silica's isotropic Kerr tensor;
- PMD, applied at each tone's own frequency, with the waveplates at the pieces' midpoints;
- stimulated Raman scattering, as a power coupling that leaves the mixing phases alone.
Modulated channels: one wide grid
composite_fwm split-steps every band on one composite grid, so modulated channels mix
exactly. It carries two polarizations and PMD (measured from the first band), lets outer slots keep
a wide product's skirt, and adds Raman inside the step. The step is Yoshida's fourth-order
composition, so a step several times longer gives the same answer; products agree to about 2e-4.
Phases that are carried, not drawn
A mixing product's carrier phase is carried from span to span, expanded about the first band with
the β2 the mixing uses, and a coherent receiver beats its local oscillator by the phase both paths
carry. With carry_phase and cascaded_fwm, second-order products add across spans as the
split-step's do.
The second-order series stays as the cheap path. A new test pins why it stops there: split by
order against the exact tone equations, one 10 km span at 10 mW is 0.82 of the exact power at
γ², 1.15 with γ³ and 1.03 with γ⁴. The model's folded pump phase (0.89) already beats the next
truncation.
Around it
- Pump loop: proportional and derivative terms, a loop filter, a delay, a noisy detector, a
dither, and back-calculation anti-windup (Åström & Hägglund). - EDFA: ASE shaped by a measured erbium spectrum, held to Giles and Desurvire's closed forms.
- Gratings: solved in TM as well as TE, with Li's inverse rule for the field across the
walls. A finite grating coupler is solved with its guided light carried off, and converges with
a stronger absorber and room for the beam. - W-Port receivers: real log-likelihood ratios, with the shaper's prior on the amplitude bit;
802.3 error blocks mark what a failed CRC32 covered. - Lasers: junction heating through a Foster network of package stages. Fibres take a
dispersive surrounding medium from Sellmeier terms.
65 components, 2274 tests, every physics block checked against a closed-form or independently
computed result in CI.
🤖 Generated with Claude Code