Skip to content

Commit

Permalink
fix: clifford condition test
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoRobbiati committed Mar 15, 2024
1 parent 0433177 commit 5cd6898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_gates_gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def test_cun(backend, name, params):

if name in ["CRX", "CRY", "CRZ"]:
theta = params["theta"]
if (theta % np.pi).is_integer():
if (theta % (np.pi / 2)).is_integer():
assert gate.clifford
else:
assert not gate.clifford
Expand Down

0 comments on commit 5cd6898

Please sign in to comment.