Skip to content

Commit

Permalink
test: stabilize dynamic MPF test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrossinek committed Nov 15, 2024
1 parent a8536aa commit 93eb800
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/backends/quimb_circuit/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ def test_end_to_end(self, time, expected_A, expected_b, expected_coeffs):

prob, coeffs = setup_frobenius_problem(model)
prob.solve()
np.testing.assert_allclose(coeffs.value, expected_coeffs)
np.testing.assert_allclose(coeffs.value, expected_coeffs, rtol=1e-6)
2 changes: 1 addition & 1 deletion test/backends/quimb_layers/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,4 @@ def test_end_to_end_custom_suzuki(self, time, expected_A, expected_b, expected_c

prob, coeffs = setup_frobenius_problem(model)
prob.solve()
np.testing.assert_allclose(coeffs.value, expected_coeffs)
np.testing.assert_allclose(coeffs.value, expected_coeffs, rtol=1e-6)
2 changes: 1 addition & 1 deletion test/backends/quimb_tebd/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ def test_end_to_end_builtin_suzuki(self, time, expected_A, expected_b, expected_

prob, coeffs = setup_frobenius_problem(model)
prob.solve()
np.testing.assert_allclose(coeffs.value, expected_coeffs)
np.testing.assert_allclose(coeffs.value, expected_coeffs, rtol=1e-6)
2 changes: 1 addition & 1 deletion test/backends/tenpy_layers/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,4 @@ def test_end_to_end(self, time, expected_A, expected_b, expected_coeffs):

prob, coeffs = setup_frobenius_problem(model)
prob.solve()
np.testing.assert_allclose(coeffs.value, expected_coeffs)
np.testing.assert_allclose(coeffs.value, expected_coeffs, rtol=1e-6)
2 changes: 1 addition & 1 deletion test/backends/tenpy_tebd/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ def test_end_to_end(self, time, expected_A, expected_b, expected_coeffs):

prob, coeffs = setup_frobenius_problem(model)
prob.solve()
np.testing.assert_allclose(coeffs.value, expected_coeffs)
np.testing.assert_allclose(coeffs.value, expected_coeffs, rtol=1e-6)

0 comments on commit 93eb800

Please sign in to comment.