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 99daaf4 commit 605c8d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytket/extensions/qulacs/backends/qulacs_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
Predicate,
)
from pytket.circuit import Pauli
from pytket.passes import auto_rebase_pass
from pytket.passes import AutoRebase
from pytket.pauli import QubitPauliString
from pytket.utils.operators import QubitPauliOperator
from pytket.utils.outcomearray import OutcomeArray
Expand Down Expand Up @@ -155,7 +155,7 @@ def required_predicates(self) -> List[Predicate]:
]

def rebase_pass(self) -> BasePass:
return auto_rebase_pass(set(_TWO_QUBIT_GATES) | _1Q_GATES)
return AutoRebase(set(_TWO_QUBIT_GATES) | _1Q_GATES)

def default_compilation_pass(self, optimisation_level: int = 1) -> BasePass:
assert optimisation_level in range(3)
Expand Down

0 comments on commit 605c8d8

Please sign in to comment.