Skip to content

Commit

Permalink
revert changes in test_expval
Browse files Browse the repository at this point in the history
  • Loading branch information
multiphaseCFD committed Jun 8, 2024
1 parent 68dda84 commit 1c6acdc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_expval.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,10 @@ def circuit():

circ = qml.QNode(circuit, dev)
circ_def = qml.QNode(circuit, dev_def)
rel_tol = 0 if device_name != "lightning.tensor" else 0.25
assert np.allclose(circ(), circ_def(), tol, rtol=rel_tol)
if device_name != "lightning.tensor":
assert np.allclose(circ(), circ_def(), tol)
else:
assert np.allclose(circ(), circ_def(), rtol=0.25)


@pytest.mark.parametrize(
Expand Down

0 comments on commit 1c6acdc

Please sign in to comment.