Skip to content

Commit

Permalink
📌 adjusted pytket dependency and fixed deprecation warning (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
nquetschlich authored Jun 18, 2024
1 parent 29aa26f commit 74f2316
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/mqt/bench/tket_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 74f2316

Please sign in to comment.