Skip to content

Commit

Permalink
Fix test for synthesis guard.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhartman committed Jul 20, 2023
1 parent 8a7ebbf commit 8784260
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion qiskit/transpiler/preset_passmanagers/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
working={"none", "stochastic", "sabre"}, not_working={"lookahead", "basic"}
),
"translation_method": _ControlFlowState(
working={"translator", "synthesis", "unroller"}, not_working=set(),
working={"translator", "synthesis", "unroller"},
not_working=set(),
),
"optimization_method": _ControlFlowState(working=set(), not_working=set()),
"scheduling_method": _ControlFlowState(working=set(), not_working={"alap", "asap"}),
Expand Down
2 changes: 0 additions & 2 deletions test/python/transpiler/test_preset_passmanagers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1550,8 +1550,6 @@ def test_invalid_methods_raise_on_control_flow(self, optimization_level):

with self.assertRaisesRegex(TranspilerError, "Got routing_method="):
transpile(qc, routing_method="lookahead", optimization_level=optimization_level)
with self.assertRaisesRegex(TranspilerError, "Got translation_method="):
transpile(qc, translation_method="synthesis", optimization_level=optimization_level)
with self.assertRaisesRegex(TranspilerError, "Got scheduling_method="):
transpile(qc, scheduling_method="alap", optimization_level=optimization_level)

Expand Down

0 comments on commit 8784260

Please sign in to comment.