Skip to main content

JaxCont

Differentiable continuation and bifurcation analysis in JAX.

Tests Documentation Status PyPI MIT License

JaxCont turns an equilibrium continuation sweep into a JAX program. Follow branches through folds with pseudo-arclength continuation, detect and refine fold/Hopf events, and compose the analysis with jax.jit, jax.vmap, and automatic differentiation.

Why JaxCont?

  • Transform the whole analysis. Batch ensembles of branches with vmap and differentiate bifurcation locations for inverse design.
  • Stay on the branch. Adaptive pseudo-arclength continuation passes folds; natural continuation is available when the parameter remains regular.
  • See and validate the result. Plot stability-aware bifurcation diagrams and eigenvalue trajectories with JaxCont events plus MatCont, BifurcationKit, or analytic reference markers.

The current surface supports equilibrium and periodic-orbit continuation, their principal codimension-one events, and direct codimension-two point solvers. Branch switching, general connecting-orbit/BVP workflows, PRC/dPRC, and two-parameter curve continuation remain future work.

Installation

JaxCont requires Python 3.9 or newer.

pip install jaxcont

See the JAX installation guide when selecting CPU, GPU, or TPU support.

Quick start

Continue u² + p = 0 through its fold at p = 0:

import jax.numpy as jnp
import matplotlib.pyplot as plt
import jaxcont as jc

def saddle_node(u, p, args):
    return u**2 + p

problem = jc.bif_problem(
    saddle_node,
    u0=jnp.array([1.0]),
    p0=-1.0,
    state_names=["u"],
    param_name="p",
)

result = jc.continuation(
    problem,
    p_span=(-1.0, 0.2),
    settings=jc.ContinuationPar(ds=0.03, max_steps=200),
    events=[jc.Fold()],
)

print([(event.kind, event.p) for event in result.events])
result.plot(annotate=True, title="Saddle-node bifurcation")
plt.show()

The same result can drive a stability-spectrum plot:

from jaxcont.viz import plot_eigenvalues

plot_eigenvalues(result, shade_stability=True)

Explore

Development

git clone https://github.com/Ziaeemehr/JaxCont.git
cd JaxCont
python -m pip install -e ".[dev]"
python -m pytest

Contributions are welcome; see CONTRIBUTING.md, the roadmap, and the MatCont validation suite.

Citation

If JaxCont supports your research, cite the archived release using its GitHub/Zenodo DOI. Citation metadata is provided in CITATION.cff. Until the first archive is minted:

@software{ziaeemehr_jaxcont_2026,
  author  = {Ziaeemehr, Abolfazl},
  title   = {JaxCont: Differentiable Continuation and Bifurcation Analysis in JAX},
  year    = {2026},
  version = {0.3.0},
  url     = {https://github.com/Ziaeemehr/JaxCont}
}

JaxCont is distributed under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jaxcont-0.3.1.tar.gz (122.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jaxcont-0.3.1-py3-none-any.whl (77.3 kB view details)

Uploaded Python 3

File details

Details for the file jaxcont-0.3.1.tar.gz.

File metadata

  • Download URL: jaxcont-0.3.1.tar.gz
  • Upload date:
  • Size: 122.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for jaxcont-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0d6df0bc229d39db2714089509f8b68df2dfbf6fe0bc2aeed890107e5d7a6e5f
MD5 a90b68304eac98b7cede3f089baa6ea2
BLAKE2b-256 c77843a8d4b2641881686c94a4ca6711ccd5b12c19ea6456ed4068cb5f434af3

See more details on using hashes here.

Provenance

The following attestation bundles were made for jaxcont-0.3.1.tar.gz:

Publisher: publish.yml on Ziaeemehr/JaxCont

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jaxcont-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: jaxcont-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 77.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for jaxcont-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 885d6ff93e944754f19481aa073e2dc9bc17d9cc3e9f01402f41818ac62d37f9
MD5 022889c0f4d7695d6731278a275b6d55
BLAKE2b-256 c573748fb6f1e19db10cbaf5f0a2698f7d5011c1edf62c53139b4471bbe9b55f

See more details on using hashes here.

Provenance

The following attestation bundles were made for jaxcont-0.3.1-py3-none-any.whl:

Publisher: publish.yml on Ziaeemehr/JaxCont

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.4.0

2 files

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 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