Installation¶
qjax requires Python 3.10+ and depends only on jax and matplotlib.
Install¶
Add it to your project with uv (recommended):
or install it with pip:
Tip
For GPU/TPU acceleration, install the matching JAX build first by following the
JAX installation guide;
qjax then runs on whatever JAX backend is available.
Contributing (from a clone)¶
To work on qjax itself, clone the repository and create the development
environment with uv:
Then run the checks:
Optional dependency groups¶
| Group | Installs |
|---|---|
dev |
pytest, pytest-cov, ruff, mypy, hypothesis, matplotlib — the full check suite |
plots |
matplotlib — everything under qjax.plots |
examples |
matplotlib, numpy — run the scripts in examples/ |
docs |
mkdocs-material, mkdocstrings — build this documentation |
Build the documentation locally:
uv sync --extra docs
uv run mkdocs serve # live preview on http://127.0.0.1:8000
uv run mkdocs build --strict # what CI runs: broken links fail the build
mkdocs build writes the static site to site/.