Skip to content

Commit

Permalink
increase tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
AmintorDusko committed Apr 29, 2024
1 parent a8da735 commit e377bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/lightning_qubit/test_measurements_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def test_single_return_value(self, measurement, observable, lightning_sv, tol):
result = m.measure_final_state(tape)

# a few tests may fail in single precision, and hence we increase the tolerance
assert np.allclose(result, expected, max(tol, 1.0e-5))
assert np.allclose(result, expected, max(tol, 1.0e-4))

@flaky(max_runs=5)
@pytest.mark.parametrize("shots", [None, 1000000])
Expand Down

0 comments on commit e377bdc

Please sign in to comment.