Skip to content

Commit

Permalink
Slightly loosen absolute tolerance on matmul test.
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgestar committed Aug 7, 2022
1 parent 67aa5cf commit 2aee70c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qutip/tests/core/data/test_operators_hypothesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,7 @@ def test_data_matmul_operator(a, b):
qst.note(result=result, a=a, b=b)
with qst.ignore_arithmetic_warnings():
expected = a.to_array() @ b.to_array()
qst.assert_allclose(result.to_array(), expected)
qst.assert_allclose(
result.to_array(), expected,
atol=1e-12, treat_inf_as_nan=True,
)

0 comments on commit 2aee70c

Please sign in to comment.