Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.4.0 instead.

solprop

CI Documentation codecov Ruff basedpyright PyPI Python 3.14 Licence: GPL-3.0-or-later REUSE

Ultrafast nonlinear pulse propagation in Python — from few-cycle pulses in gas-filled hollow-core fibres to multimode solid-core fibres and free-space beams.

Everything, fast, with rigour. solprop aims to be one unified, highly accurate code for nonlinear pulse propagation, scaling from a laptop to a GPU cluster, with every model derived, cited and verified against analytic and independent references (About solprop).

It solves the unidirectional pulse propagation equation (UPPE) and the generalised nonlinear Schrödinger equation (GNLSE), for the full electric field or its envelope, in waveguides and in free space. Use it for soliton self-compression to sub-cycle pulses, resonant dispersive-wave emission into the vacuum and deep ultraviolet, supercontinuum generation, multimode and graded-index beam dynamics, filamentation, photoionisation and plasma, and Raman frequency combs.

Vacuum-ultraviolet dispersive-wave emission in a helium-filled capillary

A 7.5 fs pulse at 800 nm self-compresses in a helium-filled capillary with a pressure gradient to vacuum and emits a resonant dispersive wave at 120–150 nm: spectral and temporal evolution along the 1.5 m fibre, and the exit spectrum. Four coupled modes, ionisation and plasma included; about half a minute on a laptop.

from solprop.driver import prop_capillary
from solprop.plotting import prop_2d

run = prop_capillary(
    125e-6,  # core radius, m
    1.5,  # length, m
    "He",
    (0.8, 0.0),  # pressure gradient, bar: entrance to exit
    wavelength=800e-9,
    fwhm=7.5e-15,
    energy=275e-6,
    modes=4,  # the first four HE_1m modes
    trange=400e-15,
    wavelength_limits=(90e-9, 4e-6),
)
prop_2d(run, "wavelength")

What it does

  • Waveguides
    • Gas-filled hollow capillaries, one or many modes, with tapers, pressure gradients and gas flow; a coherent wall that couples the modes and converts between them.
    • Antiresonant hollow-core fibres (the Vincetti model); rectangular and planar guides; modes tabulated from any mode solver.
    • Step-index and graded-index fibres with full vector modes, through a general modal route for any guide that supplies its own electric and magnetic fields — including guides that change along their length.
  • Free space: beams in bulk gases and solids on radial, Cartesian and line grids, with the exact (non-paraxial) diffraction operator, absorbing spatial boundaries, and the Kerr, plasma and Raman responses of the guided routes: self-focusing, filamentation and ionisation in cells, jets and windows, and planar guides resolved across their width.
  • Media and nonlinear responses: noble and molecular gases and their mixtures, glasses and metals, all from the curated material library optmat; Kerr and third-harmonic nonlinearity; photoionisation with optmat's atomic and molecular rate models, and plasma on field and envelope grids; rotational and vibrational Raman responses, scalar and vector; quantum shot noise; multi-colour inputs. An optional helium TDSE atomic response, for research, replaces Kerr and plasma by a microscopic atomic current; its native backend is not yet publicly available.
  • Accurate numerics: two adaptive integrators, a low-call exponential Adams method (the default of capillary, radial and planar runs) and an embedded Runge–Kutta pair (the default of GNLSE, waveguide and Cartesian runs; the defaults), with the linear propagation integrated exactly, absorbing boundaries as rates, and every backend tested against a reference implementation within derived error bounds.
  • Workflows: HDF5 output with resume, statistics along the fibre, parameter scans on process pools and Slurm clusters, processing and plotting, soliton and dispersive-wave design tools, and pulse compressors (Taylor phase, chirped mirrors, materials, gratings and prisms). One import, import solprop.sol as sol, sets up an interactive session.

Fast CPUs and GPUs: the native backend

solprop runs out of the box on a NumPy reference backend and a compiled Numba CPU backend. For speed on large problems — multimode and general modal guides, broadband supercontinuum grids, free-space beams — add the optional native backend, solprop-native, built from native/ in this repository: C++ kernels built with Kokkos, using OpenMP, FFTW and a vendor BLAS on multi-core CPUs, or CUDA and HIP on NVIDIA and AMD GPUs. Once it is installed, solprop uses it automatically; your scripts do not change. See The native backend and Performance tuning.

Installation

solprop needs Python 3.14 (3.15 is not yet supported: some dependencies have no wheels for it) and runs on Linux, macOS and Windows:

pip install "solprop[native]"   # with the compiled native backend (recommended)
pip install solprop             # elsewhere: the NumPy and Numba backends only

The native extra installs a precompiled wheel of the native backend, the fastest way to run solprop, on macOS on Apple silicon (osx-arm64), Linux on x86-64 (linux-64), Linux on aarch64 (linux-aarch64) and Windows on x86-64 (win-64). On other platforms, and for GPUs, build it from source (below). Installation covers environment checks and a first run.

Building from source

Both packages build from one clone of the repository:

git clone https://github.com/LupoLab/solprop.git
cd solprop
pip install . ./native          # solprop and the native backend, for this machine's CPU

The native build needs a C++20 compiler, CMake, FFTW and, for speed, a BLAS. A GPU build (NVIDIA with CUDA, AMD with HIP, on Linux) is always compiled from source, with the device enabled through CMake options. Building the native backend gives the requirements, the commands for Linux, macOS, CUDA and HIP, and every build option. To work on solprop itself, see Contributing.

Documentation

The manual is at solprop.readthedocs.io:

  • Introduction — installation, capabilities, spatial descriptions, and first propagation calculations.
  • User guide — simulation setup, waveguides and free space, materials and nonlinear responses, numerical methods, results, workflows, and performance, including the detailed equations and approximation limits.
  • Examples — introductory lessons, focused demonstrations, and full worked simulations, organised by what they teach.
  • Developer’s guide — contributing, architecture, implementation contracts, testing, tooling, proposals, and project history.
  • API — the complete reference for functions, classes, and modules.

Users of solprop's predecessor, Luna.jl, can start with noteworthy differences from Luna.

About

solprop continues more than two decades of pulse-propagation codes by John Travers and colleagues, most recently Luna.jl; About solprop tells the story. solprop itself is developed almost entirely by AI coding agents under the lead developer's direction, within a strict harness of derivations, reference comparisons, convergence checks and complete test coverage; the same page explains how, and what that means for users. The code is free software under the GNU General Public License, version 3 or (at your option) any later version, and the documentation is under CC BY 4.0. Contributions are welcome: see CONTRIBUTING.md. If you use solprop in published work, please cite the repository and the version you used.

Metadata

Release files for solprop 0.1.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 solprop 0.1.0
File Size Uploaded Provenance Actions
solprop-0.1.0.tar.gz 24.9 MB With provenance Details for solprop-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 27.8 MB

Release files / solprop-0.1.0.tar.gz

Download URL solprop-0.1.0.tar.gz
Size 24.9 MB
Tags Source
SHA-256 checksum
How to use checksums
83e6e58750fcb1bf878ad9df71aad7f443fe3694ed6bba74ad38fd3522e5b2a2
BLAKE2b-256 checksum
How to use checksums
5db26f3f3572a906525a1cdd6649257aaf4066dea85fd5aa9872b00e5dec987f
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 1, 2026.

Transparency log

Release files / solprop-0.1.0-py3-none-any.whl

Download URL solprop-0.1.0-py3-none-any.whl
Size 2.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0e55d636c3279178eb39a152056315a206858b65670d037d18a00ceb900d9830
BLAKE2b-256 checksum
How to use checksums
276f78b21bb3a742cf96d336d90fc9db737c3a695e171797a9cdb264df0e9231
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 1, 2026.

Transparency log

Security for solprop 0.1.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 solprop-0.1.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 1, 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