Skip to content

Commit

Permalink
Replace deprecated pass. (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec authored Nov 20, 2024
1 parent 96089b1 commit c655141
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pytket/extensions/pyquil/backends/forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
BasePass,
EulerAngleReduction,
CXMappingPass,
auto_rebase_pass,
AutoRebase,
KAKDecomposition,
SequencePass,
SynthesiseTket,
Expand Down Expand Up @@ -139,7 +139,7 @@ def required_predicates(self) -> List[Predicate]:
]

def rebase_pass(self) -> BasePass:
return auto_rebase_pass({OpType.CZ, OpType.Rz, OpType.Rx})
return AutoRebase({OpType.CZ, OpType.Rz, OpType.Rx})

def default_compilation_pass(self, optimisation_level: int = 2) -> BasePass:
assert optimisation_level in range(3)
Expand Down Expand Up @@ -384,7 +384,7 @@ def required_predicates(self) -> List[Predicate]:
]

def rebase_pass(self) -> BasePass:
return auto_rebase_pass({OpType.CZ, OpType.Rz, OpType.Rx})
return AutoRebase({OpType.CZ, OpType.Rz, OpType.Rx})

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

0 comments on commit c655141

Please sign in to comment.