Skip to content

Commit

Permalink
CI: try using cotengra@althash
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmgray committed Dec 5, 2023
1 parent 884a466 commit ba21dab
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
4 changes: 3 additions & 1 deletion ci/requirements/py-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
dependencies:
- autoray>=0.6.7
- cotengra>=0.5.3
# - cotengra>=0.5.3
- coverage
- cytoolz
- joblib
Expand All @@ -16,3 +16,5 @@ dependencies:
- pytest-cov
- scipy
- tqdm
- pip:
- git+https://github.com/jcmgray/cotengra.git@althash
3 changes: 2 additions & 1 deletion ci/requirements/py-jax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
dependencies:
- autoray>=0.6.7
- cotengra>=0.5.3
# - cotengra>=0.5.3
- coverage
- cytoolz
- joblib
Expand All @@ -19,3 +19,4 @@ dependencies:
- pip
- pip:
- jax[cpu]
- git+https://github.com/jcmgray/cotengra.git@althash
4 changes: 3 additions & 1 deletion ci/requirements/py-slepc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- defaults
dependencies:
- autoray>=0.6.7
- cotengra>=0.5.3
# - cotengra>=0.5.3
- coverage
- cytoolz
- joblib
Expand All @@ -22,3 +22,5 @@ dependencies:
- slepc=*=*complex*
- slepc4py
- tqdm
- pip:
- git+https://github.com/jcmgray/cotengra.git@althash
3 changes: 2 additions & 1 deletion ci/requirements/py-tensorflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
dependencies:
- autoray>=0.6.7
- cotengra>=0.5.3
# - cotengra>=0.5.3
- coverage
- cytoolz
- joblib
Expand All @@ -19,3 +19,4 @@ dependencies:
- pip
- pip:
- tensorflow
- git+https://github.com/username/repo.git@branch_name
4 changes: 3 additions & 1 deletion ci/requirements/py-torch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- conda-forge
dependencies:
- autoray>=0.6.7
- cotengra>=0.5.3
# - cotengra>=0.5.3
- coverage
- cpuonly
- cytoolz
Expand All @@ -19,3 +19,5 @@ dependencies:
- pytorch
- scipy
- tqdm
- pip:
- git+https://github.com/username/repo.git@branch_name
2 changes: 1 addition & 1 deletion tests/test_tensor/test_tensor_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def test_contract_hotrg_two_layer_rand_peps(self):
bond_dim=2,
)
norm = psi.make_norm()
xe = norm.contract(all, optimize="auto-hq", cache_expression=False)
xe = norm.contract(all, optimize="auto-hq")
xt = norm.contract_hotrg(max_bond=5)
assert xt == pytest.approx(xe, rel=1e-4)

Expand Down

0 comments on commit ba21dab

Please sign in to comment.