Skip to main content

chaotax logo

🚨 This is a pre-release for me to cite in my dissertation. It is based on software I once wrote for APEBench (but did not yet have the time to release) slightly rewritten and enhanced. Please check back end of May 2026 for a full release with extended features, documentation, and examples.

chaotax

Simple JAX-based tool to compute Lyapunov spectra and exponents of dynamical systems using autodiff.

PyPI Tests docs-latest License

Installation • Quickstart • Documentation • Related

Chaotax estimates Lyapunov exponents and spectra of dynamical systems using JAX's automatic differentiation (JVP-based linearisation). It works with any one-step state transition function, is JIT-compilable, and GPU/TPU-ready.

Installation

pip install chaotax

Requires Python 3.10+ and JAX 0.4.13+. See the JAX install guide.

Quickstart

Estimate the largest Lyapunov exponent of a system given a one-step transition function:

import jax
import jax.numpy as jnp
import chaotax

# Define a one-step stepper (e.g., Lorenz via RK4)
def lorenz_stepper(u):
    ...
    return u_next

u_0 = jnp.array([1.0, 0.0, 0.0])
eps_0 = jax.random.normal(jax.random.PRNGKey(0), u_0.shape)

estimate_le = chaotax.lyapunov(lorenz_stepper, rollout_steps=20_000, dt=0.01)
le = estimate_le(u_0, eps_0)

Compute the full Lyapunov spectrum:

estimate_spectrum = chaotax.lyapunov_spectrum(lorenz_stepper, rollout_steps=20_000, dt=0.01)
spectrum = estimate_spectrum(u_0, eps_0=jnp.eye(3))
# Returns exponents in descending order, e.g. [+, 0, -] for Lorenz

Documentation

Documentation is available at fkoehler.site/chaotax.

Related

  • Exponax — Exponential and explicit time steppers for PDEs in JAX
  • Picardax — Time-implicit differentiable PDE solvers in JAX

License

MIT, see here.


fkoehler.site  ·  GitHub @ceyron  ·  X @felix_m_koehler  ·  LinkedIn Felix Koehler

Metadata

Release files for chaotax 0.0.1

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

Source distribution (sdist)

Source distribution for chaotax 0.0.1
File Size Uploaded
chaotax-0.0.1.tar.gz 80.6 kB Details

Built distribution (wheel)

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

Total release size: 87.0 kB

Release files / chaotax-0.0.1.tar.gz

Download URL chaotax-0.0.1.tar.gz
Size 80.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6950530940e4059162d4a1869737a15a40c7368bd86c2309c84f82fb5e57db0f
BLAKE2b-256 checksum
How to use checksums
5ccf64dafb81b343015da2a9be5b14688d710aa1909d5817778c3c24b850c844
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 11, 2026.

Transparency log

Release files / chaotax-0.0.1-py3-none-any.whl

Download URL chaotax-0.0.1-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f439dd20581736b25f3b1748948b684c4acf9ec888d1398dd0cf07da98a3bbb
BLAKE2b-256 checksum
How to use checksums
3a5f811a7f5a048da701eaa1834d0f1e35b5273b3cdf8608e05b465b10d41ed1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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