How the model is put on solprop, and the measurements behind it#
This page records the identities the bridge (pnps.bridge) relies on and the
measurements that justify them. The code cites its sections.
Grids and the raw-DFT convention#
solprop’s EnvelopeGrid.from_limits(thickness, lam0, lam_lims, trange, thg=False, fft_size="smooth") reproduces pnps.grids.time_grid() exactly. This was measured
on the production configuration, the tiny test configuration and a 192-point one. The
two grids share:
the same
n_t(600, 96 and 300) anddt;the carrier, to one ulp;
the frequency axis, to 4e-14 relative;
the band mask, bit for bit;
the centred time axis, exactly.
FreeGrid(1.1 r_max, n, 1.1 r_max, n) (no collar_fraction) reproduces
pnps.grids.space_grid(): k_x to 2 ulp, with no room for a real-space collar in
the grid itself. solprop’s on-axis reconstruction weight equals (-1)**(ix+iy)/N to 1e-18. The
bridge checks the grid identities on every build (pnps.exceptions.GridRuleError).
Both codes store the state as the unnormalised DFT in the same sign convention. An input
is therefore handed over by a no-copy reshape to (n_y n_x, 1, n_t), with no
conjugation. solprop’s statistics are physical in this package’s units up to the three
constants of pnps.statistics.
The operator#
Index. solprop’s default silica, optmat’s fit, agrees with this package’s index to about 1e-13, the fit’s own evaluation floor (a frequency moved by one ulp changes \(n\) by about 1.4e-13). Both are exactly zero outside the active band.
Frame.
Frame(omega0, subtract_beta0=True, beta0=beta0_ref + beta1_ref*omega0, beta1=beta1_ref)makes solprop’s co-moving frame this package’s \(\beta_1\omega + \beta_0^\mathrm{ref}\), to 3e-16.Prefactor. solprop writes \(-i\omega^2/(2\varepsilon_0 c^2\,\mathrm{Re}\,k_z)\) where this package writes \(-i\mu_0\omega^2/(2\,\mathrm{Re}\,k_z)\), with \(\mu_0\) taken as \(1/(\varepsilon_0 c^2)\) (
pnps.reference.MU), so the two carry one constant and \(\chi^{(3)}\) is handed to solprop unchanged. (SciPy’s tabulated \(\mu_0\) would not do: it and \(\varepsilon_0\) are each rounded to their published digits, and \(\mu_0\varepsilon_0 c^2 = 1 + 1.19\times10^{-12}\).) The prefactor of a non-propagating bin is \(-i\omega/2\) in both.Spectral absorber. \(\gamma_\omega\), an amplitude rate, becomes solprop’s power rate \(2\gamma_\omega\) in an
Absorberwith no temporal rates: the band edges as its collar, and the lap budget’s share as a custom rate (solprop.boundaries.custom_absorber), so that solprop’sabsorbed_powerreports the two apart. Its sum is this package’s \(\gamma_\omega\) bit for bit (pnps.absorber.band_edges()). This package has no temporal window: the lap budget lives in \(\gamma_\omega\), and with no temporal rates solprop takes no temporal pass.
The transverse-wavevector ramp#
A ramp damping the outer momentum band with an amplitude rate of up to 5e6 /m does no measurable work on a grid that the sizing rule keeps 1.5 times clear of the mixing products: removing it moved every observable by at most 1.3e-14 of the peak at zero delay (and 6.8e-16 at 3 fs), measured at the production pixel size, on 192 points, a 130 fs window, 0.1 µJ and 40 µm.
Since solprop 0.2 the bridge applies solprop’s safety ramp (its design proposal SEP 40,
listed among solprop’s proposals),
Config.transverse_absorber: a raised cosine over the outer tenth of the momentum
grid, whose strength is solprop’s design and not a setting. Content in the ramp’s upper
half loses about 10.5 nepers over the grid’s half-width, the distance in which light
walking sideways would cross the grid and come back. That is 9.9e3 /m on the production grid and 1.29e4 /m on the tiny one, against the
1e7 /m pnps set under solprop 0.1. Over a 40 µm slab the ramp removes at most 0.4 nepers
of power, so in this package it is close to inert. Nothing is lost by that: light in a
40 µm slab walks under 30 µm sideways, far short of the 403 µm half-width, and
the ramp cannot remove an alias that in-band content generates, which is the sizing
rule’s job. The shape and the designed strength are re-derived in
pnps.absorber.transverse_rate() and pnps.absorber.transverse_strength() and
checked against solprop’s to 1e-12. The observed-order rung of the ladder runs with it
off, because the tiny test grid, a quarter of the sizing rule’s, fills the ramp’s bins
and its rate would hold the march pre-asymptotic there.
Evanescent census#
On the production grid (768 points, 366 µm, 250 fs window) the largest transverse wavenumber is 4.24e6 /m. That is 0.559 of the smallest active material wavenumber, 7.58e6 /m at 1200 nm, so no active \((\omega, k_\perp)\) pair is evanescent and solprop’s 200 /m evanescent clamp cannot act.
On the 2x transverse refinement (1536 points) 1.3e-4 of the pairs are evanescent. All
are at 1083–1200 nm, far outside the 143–600 nm band and inside the lap-budget
absorber’s full-strength region (200 nepers of amplitude over 40 µm). The clamp is inert
there too. The bridge leaves it at solprop’s default and records
evanescent_clamp = 200.0.
The reductions through solprop#
reduction="solprop" reads the observables from solprop’s far-field statistics
(pnps.statistics gives the mapping and the constants). The agreement with the
host reduction is bounded before it is measured.
The two reductions sum the same terms in different orders, with window weights that
differ by rounding. With KAPPA = 8 (2 + D/2w) eps the absolute error of a weight, the
bounds per frequency bin are:
collected spectra: \(|\delta i_\mathrm{win}| \le p\,\mathrm{KAPPA}\,\varepsilon P + (2N + 64)\varepsilon\, i_\mathrm{win}\), with \(P = \sum_c |E|^2\) and \(p = 2\) for amplitude weighting, 1 for quadrature;
on-axis spectra: \(|\delta A| \le (\mathrm{KAPPA} + N + 64)\varepsilon \sum_c |E|/N\);
unit-weight sums: \((2 N n_t + 64)\varepsilon\) relative.
Measured on the tiny configuration, relative to the peak:
quantity |
measured |
|---|---|
|
1.1e-15 |
|
2.0e-15 |
|
9.9e-16 |
|
2.1e-16 |
|
2.5e-15 |
|
3.3e-15 |
tanh amplitude windows |
up to 1.2e-11 |
The tanh tail \(1 - \tanh x\) is computed with an absolute error of an ulp, which the bright beamlets behind the tail amplify. The worst measured deviation is 3e-4 to 6e-4 of the bound. At the production shape on a GPU the two agree to 3e-15 of the peak (Accuracy: control, verification, and limits).
Photon number and the growth guard#
What is conserved. solprop couples the nonlinear polarization into a column with \(\omega^2 / (2 c^2 \varepsilon_0 \operatorname{Re} k_z)\), and this package measures with \(\eta = c \operatorname{Re} k_z / \omega\). The photon number \(N = \sum \eta |E|^2 / \omega\) then changes at the rate \(\sum \operatorname{Im}(E^* P_\mathrm{NL}) / c\varepsilon_0\), the grid sum of \(\operatorname{Im}(E^* P_\mathrm{NL})\) over \((x, y, t)\) by Parseval, which vanishes for the envelope Kerr response without third-harmonic generation and for a real Raman response. The energy \(\sum \eta |E|^2\) has no such identity: the Kerr response moves it. Every absorber removes photons. So the photon number, not the energy, is the invariant a lossless run must keep, and the only thing that can raise it is the march and rounding.
All the measurements below are on the tiny configuration (tests/helpers.py), lossless
(gamma_max=0, transverse_absorber=False), 1e-8 J, 5 µm, zero delay, rk4ip, on an
18-core Apple silicon Mac. \(B\) is the peak nonlinear phase
pnps.bridge.peak_kerr_rate() × 5 µm.
Photon number against step. The photon number converges to rounding, the energy to a fixed change:
h (µm) |
area holes: ΔE/E |
ΔN/N |
supergaussian 16: ΔE/E |
ΔN/N |
|---|---|---|---|---|
0.625 |
+1.10e-9 |
+2.5e-10 |
+9.14e-10 |
+1.9e-10 |
0.3125 |
+8.19e-10 |
+2.3e-11 |
+7.14e-10 |
+1.7e-11 |
0.156 |
+7.65e-10 |
+1.1e-12 |
+6.72e-10 |
+8.3e-13 |
0.078 |
+7.62e-10 |
+3.9e-14 |
+6.70e-10 |
+2.9e-14 |
linear |
-2e-16 |
0 |
0 |
0 |
The photon residue falls by 11, 21 and 28 per halving, approaching \(h^5\). With Raman (1e-7 J) the energy falls by 1.67e-6, from the red shift, while the photon residue again converges (1.6e-8, 1.4e-9, 6.7e-11). Material absorption lowers both.
The energy change is the Kerr exchange. At a converged step (0.156 µm) the relative
energy change is \(8.4\times10^{-8}\,B\) to ±4 %. It is linear in the pulse energy (so
the absolute change is quadratic): 7.7e-11, 2.3e-10, 7.6e-10, 2.3e-9 and 7.5e-9 at
1e-9, 3e-9, 1e-8, 3e-8 and 1e-7 J. It does not follow alias_fraction:
n, r_max (µm) |
holes |
delivered / energy |
B |
ΔE/E |
ΔE/E / B |
alias_fraction |
|---|---|---|---|---|---|---|
64, 91.5 |
area |
0.0512 |
0.00902 |
+7.65e-10 |
8.48e-8 |
1.7e-3 |
64, 91.5 |
supergauss 16 |
0.0482 |
0.00800 |
+6.72e-10 |
8.39e-8 |
1.3e-3 |
48, 91.5 |
area |
0.0713 |
0.01256 |
+1.07e-9 |
8.48e-8 |
0.14 |
96, 91.5 |
area |
0.0405 |
0.00712 |
+6.05e-10 |
8.49e-8 |
0 |
48, 68.6 |
area |
0.0497 |
0.00901 |
+7.93e-10 |
8.80e-8 |
1.9e-3 |
96, 137.25 |
area |
0.0527 |
0.00901 |
+7.51e-10 |
8.33e-8 |
1.4e-3 |
64, 137.25 |
area |
0.0867 |
0.01483 |
+1.27e-9 |
8.58e-8 |
0.30 |
128, 183 |
area |
0.0535 |
0.00902 |
+7.41e-10 |
8.21e-8 |
1.2e-3 |
96, 91.5 |
supergauss 16 |
0.0381 |
0.00632 |
+5.31e-10 |
8.40e-8 |
0 |
The area holes deliver 1.062 times the supergaussian’s energy into a focal spot 1.062 times smaller, so their \(B\) is 1.128 times larger, and their exchange 1.139 times. That, and nothing at the box edge, is why the old energy bound of 1e-9 passed the supergaussian holes and stopped the area holes: at the test’s step (0.625 µm) the march adds 2–3e-10 to the converged exchange, which puts the two on either side of 1e-9.
Where it goes. The net +7.6e-10 is the residue of a spectral broadening: the energy blue of the centroid rises by 3.943e-6 of the beam and the energy red of it falls by the same to 2e-4. With the photon number fixed, the net is a photon-weighted blue shift of 7.6e-10. By region (hard discs in momentum, mapped to the mask plane by \(k_\perp = \omega r / c f\); R the hole radius; regions in the last three rows overlap the others), h = 0.078 µm, as a fraction of the beam’s energy:
region |
share at z = 0 |
ΔE, area |
ΔN, area |
ΔE, supergauss 16 |
|---|---|---|---|---|
three arms, r < R |
0.978 |
-1.07e-6 |
-2.03e-6 |
-4.6e-7 |
three rims, R < r < 1.5 R |
0.021 |
+5.3e-7 |
+1.50e-6 |
+6.0e-8 |
1 mm window |
0 |
+3.76e-8 |
+3.5e-8 |
+3.00e-8 |
2 mm window less the 1 mm |
0 |
+3.18e-8 |
+3.0e-8 |
+2.38e-8 |
everything else |
0 |
+4.71e-7 |
+4.6e-7 |
+3.49e-7 |
outer momentum band (overlaps) |
1.7e-3 |
+2.49e-6 |
+1.80e-6 |
+1.83e-6 |
band edges in frequency (overlaps) |
2.7e-5 |
+2.8e-8 |
+6.6e-8 |
+2.5e-8 |
The windows are dark at z = 0, so their change is the four-wave-mixing signal: 3.8e-8
of the beam in the 1 mm window, 7.8e-8 in the signal region
(Setup.signal_region). The exchange’s net is 1 % of the signal at this energy and is
not in the windows; it scales as \(B\), the signal as \(B^2\), so their ratio falls as the
inverse of the pulse energy.
Edge light. The area holes’ Airy tails fill the box: on this k range the outer 5 % of the box (worst face) holds 1.2e-3 of the launch at r_max 91.5 µm, 2.5e-4 at 366 µm and 1.2e-4 at 732 µm (solprop’s monitor reports 1.1e-4 at the production shape).
Linearly it cannot reach a window. A linear run on a box of half the size, started from the large box’s input folded onto it (the same field sampled at every second wavevector), equals the large run folded, to 1.5e-15: the periodic grid propagates wrapped tails exactly.
Its own nonlinear products do not reach a window. Removing everything beyond 0.85 of the half-box (2.8e-3 of the energy, a raised-cosine edge 5 % wide) changes the four-wave-mixing signal (the nonlinear run less the linear one) in both windows by 1.3e-9 of its peak; beyond 0.5 of the half-box (1.2e-2 of the energy), 1e-8.
The box size does. At a fixed k range, folding the 732 µm box’s input onto a smaller box and running both changes the signal in the windows (hard discs, the same wavevectors on both sides) by:
r_max (µm) against 732 µm
83 fs window: max / rms of peak
125 fs window
183
1.9e-3 / 6.1e-4
1.5e-3 / 4.6e-4
366
5.2e-5 / 1.8e-5
6.0e-5 / 1.9e-5
On the test configuration’s 42 fs window it is 4e-3 at both radii: the far light arrives delayed in proportion to its distance (about 40 fs at 805 µm for these holes) and the short window folds it back onto the pulse. This is the periodic images of the far tails crossing the focus, equivalently the hole spectra sampled at the box’s momentum spacing, and so a property of
r_max, not of the light in the outer 5 %.
The guard. pnps.bridge.Bridge.observations() stops a run whose photon number
grows between two planes by more than pnps.bridge.Bridge.photon_allowance():
rounding (fifteen transforms of \(M\) points per step at \(\log_2 M\,\varepsilon\) each, two
sums at \(\sqrt{M}\,\varepsilon\), all doubled for a quadratic quantity) plus the march’s
\(10^{-2} (\Gamma h)^2\) per step, with \(\Gamma\) = pnps.bridge.Bridge.kerr_rate.
The march term starts at second order in \(\Gamma\) because a step with a unitary linear
part conserves \(N\) exactly at first order (each stage’s increment is \(P_\mathrm{NL}\) of a
linearly propagated state); the measured residue is quadratic in the pulse energy to
0.3 % over a factor of 100. Its coefficient \(\Delta N / (\Gamma h)^2\) for one step from
the entrance:
configuration |
h = 0.31 |
0.625 |
1.25 |
2.5 |
5 |
10 µm |
|---|---|---|---|---|---|---|
TG, rk4ip, 1e-8 J |
3.3e-5 |
1.3e-4 |
3.4e-4 |
5.3e-4 |
6.1e-4 |
8.0e-4 |
TG, rk4ip, 1e-6 J |
3.1e-5 |
1.3e-4 |
3.3e-4 |
4.6e-4 |
3.6e-4 |
2.3e-4 |
TG, dopri5, 1e-8 J |
1.3e-6 |
-9.2e-6 |
2.5e-5 |
3.6e-5 |
3.2e-5 |
6.9e-5 |
TG, rk4ip, Raman, 1e-7 J |
2.0e-5 |
8.1e-5 |
2.1e-4 |
3.3e-4 |
3.7e-4 |
4.9e-4 |
SD, rk4ip, 1e-7 J |
6.5e-5 |
2.5e-4 |
6.3e-4 |
9.7e-4 |
1.1e-3 |
1.45e-3 |
SD, dopri5, 1e-7 J |
2.5e-6 |
-1.8e-5 |
4.5e-5 |
6.3e-5 |
4.3e-5 |
1.1e-4 |
It rises steeply while the step resolves the pulse’s dispersion (about 1e6 /m of phase across the 1 fs pulse’s band) and by 1.3 per doubling beyond 2.5 µm, so one step through a 40 µm slab would reach about 2.5e-3; the guard’s 1e-2 is four times that. Later steps add less: the 1 fs pulse disperses within a few micrometres of silica, and the residue stops growing (2.55e-10 at both 5 and 20 µm at 0.625 µm).
pnps.bridge.peak_kerr_rate() is the arms’ on-axis spectral amplitudes summed
coherently, which a transform-limited input at zero delay attains: it matches the peak
of the formed input’s transform to 5e-5 (TG) and 2e-5 (SD). At the production shape
(768², r_max 366 µm, 0.1 µJ) it is 1.38e4 /m, a nonlinear phase of at most 0.55 rad in
40 µm.
How tight it is. On the test configuration at 0.625 µm the allowance for a 2.5 µm interval is 5e-8 against a march residue of 2.5e-10, and at 2.5 µm 2e-7 against 1.1e-8. At the production shape and h = 0.5 µm it is 9.5e-7 for a 1 µm interval and 3.9e-5 for all 40 µm, where the march residue, from the coefficient at 0.625 µm, is about 1e-8. The slack is the coefficient’s growth with the step and the 40 µm over which the allowance sums against the few micrometres over which the 1 fs pulse is intense; it costs an exponential instability 5 (one interval) to 8 (the whole slab) e-folds before it is caught. What it buys: no run is stopped by its physics. An energy bound must sit above the Kerr exchange, \(8.4\times10^{-8} B\), which passes the old 1e-6 at \(B = 12\) rad (the pilot’s 10 µJ point reaches about 55), and was 1300 times the test configuration’s energy change.