Skip to content

Commit

Permalink
that was not the test I intended
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniolrm committed Jul 3, 2024
1 parent 949b601 commit a87341c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dacp/tests/test_eigvalsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_eigvals():
Test the eigenvalue with non-degenerate hamiltonians
"""
error_diff = eigvals_errors_test()
assert (error_diff > 0).any(), "Errors don't match the theoretical value."
assert (error_diff < 0).all(), "Errors don't match the theoretical value."


@pytest.mark.repeat(loop_n)
Expand All @@ -82,4 +82,4 @@ def test_eigvals_deg():
Test the eigenvalue method with degenerate hamiltonians
"""
error_diff = eigvals_errors_test(deg=True, random_vectors=2)
assert (error_diff > 0).any(), "Errors don't match the theoretical value."
assert (error_diff < 0).all(), "Errors don't match the theoretical value."

0 comments on commit a87341c

Please sign in to comment.