Skip to content

Commit aaf14b1

Browse files
committed
Fetch update from main
1 parent 114b79b commit aaf14b1

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@ dynamic = ["version"]
3030

3131
dependencies = [
3232
"mqt.bench>=2.0.0",
33-
"qiskit!=1.3.2", # 1.3.2 causes a Qiskit error when using the CommutativeInverseCancellation pass, see https://github.com/Qiskit/qiskit/issues/13742
33+
"qiskit>=1.3.3",
3434
"pytket>=1.29.0", # lowest version that supports the used pytket AutoRebase pass instead of auto_rebase
3535
"pytket_qiskit>=0.71.0",
36+
# TODO(denialhaag): Remove once pytket_qiskit is updated
37+
# https://github.com/munich-quantum-toolkit/predictor/issues/471
38+
"qiskit-ibm-runtime>=0.30.0,<0.42.0",
3639
"sb3_contrib>=2.0.0",
3740
"stable-baselines3>=2.7.0",
3841
"tqdm>=4.66.0",
@@ -47,7 +50,6 @@ dependencies = [
4750
"numpy>=1.22,<2; sys_platform == 'darwin' and 'x86_64' in platform_machine and python_version < '3.13'", # Restrict numpy v2 for macOS x86 since it is not supported anymore since torch v2.3.0
4851
"torch>=2.8.0,<2.9.0; sys_platform == 'darwin' and 'x86_64' in platform_machine and python_version < '3.13'", # Restrict torch v2.3.0 for macOS x86 since it is not supported anymore.
4952
"typing-extensions>=4.1", # for `assert_never`
50-
"qiskit_ibm_runtime>=0.40.0,<0.42.0",
5153
"qiskit-ibm-transpiler==0.13.1; python_version < '3.13'", # Do not support python 3.13 yet
5254
"qiskit-ibm-ai-local-transpiler==0.4.2; python_version < '3.13'",
5355
]

src/mqt/predictor/rl/parsing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from pytket.circuit import Node
1919
from pytket.placement import place_with_map
2020
from qiskit import QuantumCircuit, QuantumRegister
21+
from qiskit.converters import circuit_to_dag, dag_to_circuit
2122
from qiskit.transpiler import Layout, PassManager, Target, TranspileLayout
2223
from qiskit.transpiler.passes import ApplyLayout
2324

@@ -239,8 +240,8 @@ def postprocess_vf2postlayout(
239240
apply_layout.property_set["final_layout"] = layout_before.final_layout
240241
apply_layout.property_set["post_layout"] = post_layout
241242

242-
altered_qc = apply_layout(qc)
243-
return altered_qc, apply_layout
243+
altered_qc = apply_layout.run(circuit_to_dag(qc))
244+
return dag_to_circuit(altered_qc), apply_layout
244245

245246

246247
def prepare_noise_data(device: Target) -> tuple[dict[Node, float], dict[tuple[Node, Node], float], dict[Node, float]]:

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)