diff --git a/pytket/extensions/aqt/backends/aqt.py b/pytket/extensions/aqt/backends/aqt.py index d4c12d9..b94cb95 100644 --- a/pytket/extensions/aqt/backends/aqt.py +++ b/pytket/extensions/aqt/backends/aqt.py @@ -30,6 +30,7 @@ from pytket.backends.resulthandle import _ResultIdTuple from pytket.circuit import Circuit, OpType, Qubit from pytket.passes import ( + AutoRebase, BasePass, DecomposeBoxes, EulerAngleReduction, @@ -39,7 +40,6 @@ SequencePass, SimplifyInitial, SynthesiseTket, - auto_rebase_pass, ) from pytket.predicates import ( GateSetPredicate, @@ -572,7 +572,7 @@ def _pytket_to_aqt_circuit( def _aqt_rebase() -> BasePass: - return auto_rebase_pass({OpType.XXPhase, OpType.Rz, OpType.PhasedX}) + return AutoRebase({OpType.XXPhase, OpType.Rz, OpType.PhasedX}) _xcirc = Circuit(1).Rx(1, 0) diff --git a/pytket/extensions/aqt/backends/aqt_multi_zone.py b/pytket/extensions/aqt/backends/aqt_multi_zone.py index 87e95cb..f2e6b16 100644 --- a/pytket/extensions/aqt/backends/aqt_multi_zone.py +++ b/pytket/extensions/aqt/backends/aqt_multi_zone.py @@ -23,6 +23,7 @@ from pytket.backends.resulthandle import _ResultIdTuple from pytket.circuit import Circuit, OpType, Qubit from pytket.passes import ( + AutoRebase, BasePass, DecomposeBoxes, EulerAngleReduction, @@ -31,7 +32,6 @@ RenameQubitsPass, SequencePass, SynthesiseTket, - auto_rebase_pass, ) from pytket.predicates import ( GateSetPredicate, @@ -542,4 +542,4 @@ def swap_position(qubit_1_: int, qubit_2_: int) -> None: def _aqt_rebase() -> BasePass: - return auto_rebase_pass({OpType.XXPhase, OpType.Rx, OpType.Ry}) + return AutoRebase({OpType.XXPhase, OpType.Rx, OpType.Ry})