Skip to main content

A differentiable simulation library for fuzzy dark matter in JAX

Project description

jaxion logo

jaxion

Repo Status PyPI Version Status Test Status Coverage Ruff asv Readthedocs Status License Software DOI

A simple JAX-powered simulation library for numerical experiments of fuzzy dark matter, stars, gas + more!

Author: Philip Mocz (@pmocz)

Jaxion is built for multi-GPU scalability and is fully differentiable. It is a high-performance JAX-based simulation library for modeling fuzzy dark matter alongside stars, gas, and cosmological dynamics. Being differentiable, Jaxion can seamlessly integrate with pipelines for inverse-problems, inference, optimization, and coupling to ML models.

Jaxion is the simpler companion project to differentiable astrophysics code Adirondax

Install Jaxion

Install with:

pip install jaxion

or see the docs for how to build from source.

Examples

Check out the examples/ directory for demonstrations of using Jaxion.

cosmological_box dynamical_friction heating_gas
heating_stars kinetic_condensation logo_inverse_problem
soliton_binary_merger soliton_merger tidal_stripping

Try it out!

Launch a live demo in Google Colab: Open In Colab

High-Performance

Jaxion is scalable on multiple GPUs!

timing

Contributing

Jaxion welcomes community contributions of all kinds. Open an issue or fork the code and submit a pull request. Please check out the Contributing Guidelines

TODO/Wishlist

  • cosmological initial condition generator
  • add cosmological factors to gas evolution

Links

Cite this repository

If you use this software, please cite it as below.

@software{Mocz_Jaxion_2025,
   author = {Mocz, Philip},
      doi = {10.5281/zenodo.17438467},
    month = apr,
    title = {{Jaxion}},
      url = {https://github.com/JaxionProject/jaxion},
  version = {0.0.11},
     year = {2026}
}

Project details


Download files

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

Source Distribution

jaxion-0.0.12.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

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

jaxion-0.0.12-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file jaxion-0.0.12.tar.gz.

File metadata

  • Download URL: jaxion-0.0.12.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jaxion-0.0.12.tar.gz
Algorithm Hash digest
SHA256 d8d673f07ef2bd16ac523d4d3e4701a03107e474b5ef733a3ed9e422d26e1de3
MD5 f2deb25da0342b6e3a41a9036cf6cc2e
BLAKE2b-256 791af8b68f7d6ec469ed785bf8c0b0672123d797e4bf2d6abc9f2e003b9be41d

See more details on using hashes here.

File details

Details for the file jaxion-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: jaxion-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jaxion-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 1871c0b8b2b85bc6901659870386b0ab32d1ae10328d547026818c433d286269
MD5 af7a0c384b338e5981dc541ef9af3b8d
BLAKE2b-256 471c477e79970f9523b501c70d3d7a1e844bac36e995c7b89b8509f099f58fe7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page