Skip to content

Commit

Permalink
Update predicates_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdilkes committed Nov 21, 2024
1 parent da64baa commit 135fa39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytket/tests/predicates_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,15 +1109,15 @@ def test_auto_rebase_deprecation(recwarn: Any) -> None:

def test_get_pre_conditions() -> None:
pre_cons = GreedyPauliSimp().get_pre_conditions()
gate_set = pre_cons[0].gate_set
gate_set = pre_cons[0].gate_set # type: ignore
assert OpType.CX in gate_set
assert OpType.Measure in gate_set


def test_get_post_conditions() -> None:
gate_set = {OpType.CX, OpType.Rz, OpType.H, OpType.Reset, OpType.Measure}
post_cons = AutoRebase(gate_set).get_post_conditions()
assert post_cons[0].gate_set == gate_set
assert post_cons[0].gate_set == gate_set # type: ignore


if __name__ == "__main__":
Expand Down

0 comments on commit 135fa39

Please sign in to comment.