The single-atom response of high-order harmonic generation: strong-field approximation (SFA) dipole, spectrum and harmonic dipole, and the analytic dipole phase of each quantum path.
Documentation: https://melvinrdn.github.io/hhgsfa
pip install hhgsfa # or: uv add hhgsfa
pip install "hhgsfa[numba]" # parallel SFAHarmonic 21 of a 1030 nm driver in argon against the intensity, from the SFA and from the analytic model.
import numpy as np
from hhgsfa import analytic, sfa
I = np.linspace(0.8e18, 2.4e18, 200) # [W/m²], 0.8 to 2.4e14 W/cm²
d_sfa = sfa.harmonic_dipole(I, 21, "Ar", 1030e-9)
d_analytic = analytic.harmonic_dipole(I, 21, ("1", "2"), "Ar", 1030e-9) # short and long pathsThe SFA dipole of a 10 fs pulse in argon, every return kept, 512 points per cycle. Both codes give the same harmonics to 10⁻⁷.
| code | run time |
|---|---|
| StrongFieldApproximation.jl, 1 thread | 22 s |
| hhgsfa, numpy | 1.7 s |
| hhgsfa, numba, 1 thread | 0.22 s |
| hhgsfa, numba, 24 threads | 0.09 s |
Details in the benchmark.
MIT