Repository navigation
Admit delays by what wrapped light can do, not by a fixed share of the headroom - #19
Merged
Merged
Conversation
…e headroom The delay check admitted only |tau| <= 0.75 time_headroom. It now also admits a longer delay when light that wraps the periodic time window can drive at most 1e-5 of the input's peak nonlinear polarization at the other pulse (pnps.absorber.wrap_coupling, from the existing absorber, walk-off and input spectrum). The absorber, input and propagation are unchanged, so every delay admitted before gives bit-identical results. The scans check all their delays before the first point. No number of the validation ladder moves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2e-5 of the trace peak is inside the 3e-5 target, not a third of it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Before this change, the delay check (
pnps.simulate._check_delay) admitted only|tau| <= 0.75 * time_headroom. It now also admits a longer delay when the wrap coupling is at most1e-5:Pis the input's temporal power over its peak, from the 1-D input spectrum (Setup.e_omega_input). The chirp or the injected field is included.A(x)ispnps.absorber.wrap_attenuation: the least amplitude attenuation of any light that has walkedx. Over the bins with walk-offw >= x, it ismin gamma_omega * x * L / w, taken from the existinggamma_omegaandgroup_walkoff.Cbounds the Kerr polarization that light wrapping the periodic window can drive at the other pulse, in units of the input's peak. It is computed bypnps.absorber.wrap_coupling, and the limit ispnps.absorber.WRAP_COUPLING_LIMIT.1e-5: the radiated light is at most1e-5of the signal's peak amplitude, so it moves a trace by at most2e-5of its peak. That is inside the3e-5the production step and windows are chosen for.run_scanandrun_separation_scancheck every chosen delay before building the backend. A refused delay now stops a scan before its first point instead of partway through.run_delay_point,simulate_delay_point,visit_nonlinearandSeparation.pointshare the same guard.docs/model.md, plustrace-simulation.mdandaccuracy.md). The decision is recorded indocs/dev/decisions.md, and the change has a changelog fragment.Why
The FROG2 campaign needs −40 to +80 fs for the 1 fs pulse and −60 to +80 fs for the chirped pulses, on the 600-point grid (
trange250 fs, which is 260.18 fs on the grid;time_headroom55 fs; 40 µm). The old symmetric rule allowed ±41.25 fs. A delay point has only two pulse positions, so the old worst case (pulses at ±headroom) is not the right one.What it admits on the production window (computed,
build_setuponexamples/runs/frog2_pilot.toml)time_headroom55 fstime_headroom65 fsThe bound is symmetric in
tau. TOD's late wing is extreme-UV light up to 35 fs behind the pulse, and it walks late. At +80 fs it reaches the other pulse after about 150 fs of walk-off, just where the lap budget starts, so it needs more headroom.A bound that follows the transient grating was considered and not taken. The wrapped gate light needs both gates to make signal, so it enters at second order. That bound would admit TOD at 55 fs, but it holds only for the TG signal, and the large windows also collect the arms' own Kerr light. The generic bound holds for any layout and window.
Verified
uv run poe check: everything passes, 406 tests passed and 2 skipped.uv run poe test-reference: 404 passed and 2 skipped (macOS, Apple silicon).tests/test_delay_check.py:C= 1.9e-5;wrap_attenuationandwrap_couplingagree with direct evaluations;Cis monotone in|tau|;Not covered
Pleaves out the chromatic holes. Their spectral edges give the formed input a pedestal of about 1e-6 of peak power across the whole window at every delay. Read through the formed input,Cis already 1.1e-3 at zero delay (pilot at 192²). That is the holes, not the delay, and the docs say so.uv run poe covcannot reach 100 % on macOS: a CPU-affinity test is skipped there. CI's coverage lane is the gate.🤖 Generated with Claude Code