Skip to content

Commit

Permalink
Merge pull request #31 from Ericgig/bugfix.dep.version.update
Browse files Browse the repository at this point in the history
Update for jax 0.4.23 and dimensions PR
  • Loading branch information
Ericgig authored Feb 7, 2024
2 parents 1319909 + efbf4a7 commit 4a4eeb8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
# to see if something hung.
timeout-minutes: 60
run: |
pytest --durations=0 --durations-min=1.0 --verbosity=1 --cov=qutip_jax --cov-report= --color=yes -W ignore::UserWarning:qutip
pytest --durations=0 --durations-min=1.0 --verbosity=1 --cov=qutip_jax --cov-report= --color=yes -W ignore::UserWarning:qutip -W "ignore:Complex dtype:UserWarning"
# Above flags are:
# --durations=0 --durations-min=1.0
# at the end, show a list of all the tests that took longer than a
Expand Down
3 changes: 1 addition & 2 deletions src/qutip_jax/jaxarray.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import jax.numpy as jnp
from jax import tree_util
from jax.config import config
from jax import tree_util, config
import numbers
import numpy as np

Expand Down
4 changes: 1 addition & 3 deletions src/qutip_jax/qutip_trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
def qobj_tree_flatten(qobj):
children = (qobj.to("jax").data,)
aux_data = {
"dims": qobj.dims,
"type": qobj.type,
"superrep": qobj.superrep,
"_dims": qobj._dims,
# Attribute that depend on the data are not safe to be set.
"_isherm": None,
"_isunitary": None,
Expand Down

0 comments on commit 4a4eeb8

Please sign in to comment.