Skip to main content

thunder4D

Tests Docs

Transverse-resolved Herriott-cell UPPE solver for Nonlinear Dynamics close to Experimental Reality, 4D: a 4D (x, y, z, t) UPPE solver for multipass cells, with a design helper that goes from a laser to a ready-to-run cell, and a graphical interface.

Documentation: https://victorkolt.github.io/thunder4D

Install

pip install thunder4d               # or: uv add thunder4d
pip install "thunder4d[gpu]"        # NVIDIA GPU (CuPy)
pip install "thunder4d[gui]"        # graphical interface: thunder4d-gui
pip install "thunder4d[numba]"      # faster CPU runs (Numba kernels)
pip install "thunder4d[fftw]"       # FFTW transforms on the CPU (fft_backend="fftw")

Example

1 mJ, 200 fs at 1030 nm through 26 passes of a cell filled with 0.7 bar of argon, then the best uniform compression.

import thunder4d as th
from thunder4d import diagnostics as dg

cfg = th.default_input(
    laser={"energy_J": 1e-3, "duration_fs": 200},
    medium={"gas": "Ar", "pressure_bar": 0.7},
    cell={"roc_m": 0.6, "separation_m": 1.183, "n_passes": 26},
    grid={"lambda_min_nm": 900, "lambda_max_nm": 1180},
)
b = th.run_input(cfg)                              # coarse grid: a few seconds on a laptop
print(dg.compress(b.grid, b.sim.Aw)["fwhm_fs"])    # 23.6 fs

Validation

Against published experiments, on the benchmark grids. Values are simulation (paper).

experiment compressed transmission run time (CPU)
Grebing 2020, 1 mJ, 200 fs, Ar 26.9 fs (31 fs) 0.984 (0.96) 1 min
Kaumanns 2018, 18 mJ, 1.3 ps, Ar 46.9 fs (41 fs) 0.955 (0.957) 16 min
Rueda 2021, 0.29 mJ, 42 fs, Ar 6.9 fs (8.1 fs) 0.715 (0.737) 6 min

Details in the benchmark report.

License

MIT

Metadata

Release files for thunder4d 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thunder4d 1.3.0
File Size Uploaded Provenance Actions
thunder4d-1.3.0.tar.gz 119.6 kB With provenance Details for thunder4d-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for thunder4d 1.3.0
File Interpreter ABI Platform Actions
thunder4d-1.3.0-py3-none-any.whl Python 3 none any Details for thunder4d-1.3.0-py3-none-any.whl

Total release size: 257.5 kB

Release files / thunder4d-1.3.0.tar.gz

Download URL thunder4d-1.3.0.tar.gz
Size 119.6 kB
Tags Source
SHA-256 checksum
How to use checksums
430765b806c1aca6748336d5f363e75ed23af884bdfff1eeb49563c7f0a08b87
BLAKE2b-256 checksum
How to use checksums
6fec94e10931fd49a7ae528cbb89594395294e910e636e688ba737f8a9e34e2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / thunder4d-1.3.0-py3-none-any.whl

Download URL thunder4d-1.3.0-py3-none-any.whl
Size 137.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31192065ea3d0237c018c713290ede92be3197215e969910dd87a00d63a1060c
BLAKE2b-256 checksum
How to use checksums
5e5cf898ea724d8a5906a627aa19730db3083b3e3fe653d252f45b5b6e1c3214
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Security for thunder4d 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for thunder4d-1.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page