S13 · Lesson 44 · Nonlinear and ultrafast lab
Second-harmonic growth with and without quasi-phase matching, a radix-2 FFT built from scratch, the frequency chirp that self-phase modulation writes on a pulse, and the Bessel-function sidebands of an electro-optic phase modulator
Lessons 40 to 43 described modulators, nonlinear optics and ultrafast pulses with formulas valid in tidy limits: phase matching with sinc², a chirp proportional to the intensity's slope, a phase modulator's sidebands. In this lab you'll compute each directly: integrate the second harmonic along a periodically poled crystal, build the fast Fourier transform that every pulse simulation relies on, measure the chirp self-phase modulation writes on a pulse, and find a phase modulator's sideband powers from Bessel functions. The fiber-pulse project (lesson 51) then uses the FFT for split-step propagation.
- The curves are the second-harmonic field's magnitude against distance, in units of the coherence length , without phase matching (bounded, oscillating) and with quasi-phase matching that flips the nonlinear coefficient every (growing steadily at of the perfectly matched rate).
- Unmatched, the harmonic generated in one coherence length is converted back in the next.
- Quasi-phase matching only reverses the sign before that happens, so the harmonic keeps growing.
Predict
An electro-optic phase modulator is driven harder and harder. At what modulation index does the optical carrier disappear from the spectrum entirely?
A sinusoidally phase-modulated field splits into sidebands at multiples of Ω with amplitudes , so the carrier's power is , which first vanishes at m = 2.405, the first zero of . All the power is then in the sidebands; the first pair peaks at m = 1.84, with 34% each. Task 4 finds both numerically.
Name it
What the lab computes
- Second-harmonic growth: in the undepleted, slowly varying limit, the harmonic's field after length L is proportional to ; with d constant it is bounded by , while flipping d every coherence length makes it grow as .
- The FFT: the radix-2 Cooley–Tukey algorithm computes the N-point DFT in operations by splitting it into even and odd halves recursively.
- Self-phase modulation's chirp: a pulse of intensity profile I(t) picks up a phase , so its instantaneous frequency shifts by . For a Gaussian intensity the largest shift is , and the spectrum broadens in proportion.
- Phase-modulation sidebands: (the Jacobi–Anger expansion), so sideband k carries of the power, with .
Check
Write shg_field(dk, L, Lc, qpm, n=20000): the magnitude of by the midpoint rule, with d = 1, or flipping sign every Lc when qpm is true.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write fft(a, inverse=False): a radix-2 FFT for a list whose length is a power of 2 (the inverse divides by N).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write spm_chirp(phimax, T0, n=4001): for a Gaussian intensity sampled on t from −4T₀ to 4T₀, compute φ(t) and the largest magnitude of its time derivative by central differences, returning that largest frequency shift in rad per unit time.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write sideband_power(m, k): the fraction of a phase-modulated field's power in sideband k, , using Bessel's integral with 2000 points (negative k has the same power), and carrier_zero(): the first m > 0 where the carrier's power vanishes, by bisection between 2 and 3.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why does self-phase modulation broaden a pulse's spectrum without changing its shape in time?
The Kerr effect makes the refractive index follow the instantaneous intensity, so each part of the pulse picks up a phase in proportion to its own intensity: most at the peak, less on the wings. The intensity profile itself is untouched, so in time the pulse keeps its shape. But a phase that changes with time is a shift of the instantaneous frequency: the rising edge, where the phase is increasing, is shifted one way and the falling edge the other. The pulse now contains frequencies it didn't have before, so its spectrum widens in proportion to the peak phase, and dispersion can then reshape the pulse in time, compressing or spreading it.