Skip to content

Commit

Permalink
Fix flaky teleportation example test (#2249)
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc authored and CirqBot committed Oct 1, 2019
1 parent 7a9c598 commit 0d1eacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/examples_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_example_runs_qaoa():

def test_example_runs_quantum_teleportation():
expected, teleported = examples.quantum_teleportation.main()
assert np.all(np.isclose(expected, teleported, rtol=1e-4))
assert np.all(np.isclose(expected, teleported, atol=1e-4))


def test_example_runs_superdense_coding():
Expand Down

0 comments on commit 0d1eacc

Please sign in to comment.