Skip to content

Commit

Permalink
orth centre absence testing
Browse files Browse the repository at this point in the history
  • Loading branch information
meandmytram committed Feb 19, 2024
1 parent 59a8b95 commit 1a06971
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/mps/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ def test_mps_utils_create_simple_product_state():
assert np.isclose(mps_4.tensors, mps_4_tensors).all()
assert np.isclose(mps_5.tensors, mps_5_tensors).all()
assert np.isclose(mps_6.tensors, mps_6_tensors).all()
assert mps_1.orth_centre is None
assert mps_2.orth_centre is None
assert mps_3.orth_centre is None
assert mps_4.orth_centre is None
assert mps_5.orth_centre is None
assert mps_6.orth_centre is None
with pytest.raises(ValueError):
create_simple_product_state(4, "0", form="Mixed-canonical")

Expand Down

0 comments on commit 1a06971

Please sign in to comment.