diff --git a/pyproject.toml b/pyproject.toml index 2ba2b5904..61b827cf6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,6 +20,7 @@ dynamic = ["version"] dependencies = [ "pytket-qiskit>=0.53.0,<0.54.0", # manages the dependencies for qiskit and tket in a combined fashion + "pytket>=1.29.0", # lowest version that supports the used pytket AutoRebase pass instead of auto_rebase "qiskit_optimization>=0.6", "qiskit_nature[pyscf]>=0.7", "qiskit_finance>=0.4.1", diff --git a/src/mqt/bench/tket_helper.py b/src/mqt/bench/tket_helper.py index 623442afd..b5a44b7ba 100644 --- a/src/mqt/bench/tket_helper.py +++ b/src/mqt/bench/tket_helper.py @@ -9,13 +9,13 @@ from pytket.architecture import Architecture from pytket.extensions.qiskit import qiskit_to_tk from pytket.passes import ( + AutoRebase, CXMappingPass, FullPeepholeOptimise, PeepholeOptimise2Q, PlacementPass, RoutingPass, SynthesiseTket, - auto_rebase_pass, ) from pytket.placement import GraphPlacement, LinePlacement from pytket.qasm import circuit_to_qasm_str @@ -46,7 +46,7 @@ def get_rebase(gate_set: list[str]) -> BasePass: "ecr": OpType.ECR, "measure": OpType.Measure, } - return auto_rebase_pass({op_dict[key] for key in gate_set if key in op_dict}) + return AutoRebase({op_dict[key] for key in gate_set if key in op_dict}) @overload