Metadata-Version: 2.5
Name: hhgsfa
Version: 0.1.0
Summary: Strong-field approximation and analytic dipole phase for high-order harmonic generation
Project-URL: Documentation, https://melvinrdn.github.io/hhgsfa
Project-URL: Repository, https://github.com/melvinrdn/hhgsfa
Author: Melvin Redon
License-Expression: MIT
License-File: LICENSE
Keywords: attosecond,dipole phase,hhg,high-harmonic generation,strong-field approximation
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: >=3.11
Requires-Dist: numpy>=1.24
Requires-Dist: scipy>=1.10
Provides-Extra: numba
Requires-Dist: numba>=0.59; extra == 'numba'
Description-Content-Type: text/markdown

# hhgsfa

[![CI](https://github.com/melvinrdn/hhgsfa/actions/workflows/ci.yml/badge.svg)](https://github.com/melvinrdn/hhgsfa/actions/workflows/ci.yml)
[![Docs](https://github.com/melvinrdn/hhgsfa/actions/workflows/docs.yml/badge.svg)](https://melvinrdn.github.io/hhgsfa)

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

## Install

```bash
pip install hhgsfa            # or: uv add hhgsfa
pip install "hhgsfa[numba]"   # parallel SFA
```

## Example

Harmonic 21 of a 1030 nm driver in argon against the intensity, from the SFA and from the analytic model.

```python
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 paths
```

## License

MIT
