Skip to content

Commit

Permalink
Replace deprecated pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec committed Nov 20, 2024
1 parent 5ac3761 commit e7bb8d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pytket/extensions/aqt/backends/aqt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -39,7 +40,6 @@
SequencePass,
SimplifyInitial,
SynthesiseTket,
auto_rebase_pass,
)
from pytket.predicates import (
GateSetPredicate,
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions pytket/extensions/aqt/backends/aqt_multi_zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -31,7 +32,6 @@
RenameQubitsPass,
SequencePass,
SynthesiseTket,
auto_rebase_pass,
)
from pytket.predicates import (
GateSetPredicate,
Expand Down Expand Up @@ -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})

0 comments on commit e7bb8d5

Please sign in to comment.