Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with jax 0.4.11 #231

Closed
wshanks opened this issue Jun 11, 2023 · 0 comments · Fixed by #232
Closed

Incompatibility with jax 0.4.11 #231

wshanks opened this issue Jun 11, 2023 · 0 comments · Fixed by #232
Labels
bug Something isn't working

Comments

@wshanks
Copy link
Contributor

wshanks commented Jun 11, 2023

With jax >=0.4.11, import qiskit_dynamics fails trying to import DeviceArray from jax which was removed in 0.4.11. The end of the traceback is:

  File "/home/conda/feedstock_root/build_artifacts/qiskit-dynamics_1686354044341/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.11/site-packages/qiskit_dynamics/dispatch/backends/jax.py", line 20, in <module>
    from jax.interpreters.xla import DeviceArray
ImportError: cannot import name 'DeviceArray' from 'jax.interpreters.xla'

I saw this here in the conda-forge build of qiskit-dynamics. The documentation of the removal from jax is here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant