Skip to content

Commit

Permalink
Avoid probabilistic test failing. (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
BoxiLi committed Mar 7, 2022
1 parent b7f19b5 commit 5b84162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_optpulseprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@ def test_with_model(self):
num_result = processor.run_state(init_state=init_state).states[-1]
ideal_result = qc.run(init_state)
assert (
pytest.approx(qutip.fidelity(num_result, ideal_result), 1.0e-6)
pytest.approx(qutip.fidelity(num_result, ideal_result), 1.0e-5)
== 1.0
)

0 comments on commit 5b84162

Please sign in to comment.