Skip to content

Commit

Permalink
Bound Diffrax version (qiskit-community#226)
Browse files Browse the repository at this point in the history
* Bounding diffrax and equinox versions. The latest versions require
the latest version of JAX, but due to an unresolved bug in JAX,
Dynamics is only compatible with jax<=0.4.6. This commit also
adds a release note stating exactly what versions of these packages
will work with the latest version of dynamics.
  • Loading branch information
DanPuzzuoli committed Jun 8, 2023
1 parent 81dcfce commit 5a1aec0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions releasenotes/notes/diffrax-bound-0bd80c01b7f4b48f.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
issues:
- |
Due to a bug in JAX, Dynamics can only be used with jax<=0.4.6. As they depend on newer versions
of JAX, Dynamics is also now only compatible with diffrax<=0.3.1 and equinox<=0.10.3.
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ deps =
-r{toxinidir}/requirements-dev.txt
jax<=0.4.6
jaxlib<=0.4.6
diffrax
equinox<=0.10.3
diffrax<=0.3.1

[testenv:lint]
deps =
-r{toxinidir}/requirements-dev.txt
jax<=0.4.6
jaxlib<=0.4.6
diffrax
equinox<=0.10.3
diffrax<=0.3.1
commands =
black --check {posargs} qiskit_dynamics test
pylint -rn -j 0 --rcfile={toxinidir}/.pylintrc qiskit_dynamics/ test/
Expand Down

0 comments on commit 5a1aec0

Please sign in to comment.