Skip to content

Commit 1cc4741

Browse files
⬆️ Replace retworkx with rustworkx (#164)
This PR replaces `retworkx` with the new and renamed `rustworkx`. Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: burgholzer <burgholzer@me.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: burgholzer <burgholzer@me.com>
1 parent e38d3a8 commit 1cc4741

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed
1000 Bytes
Binary file not shown.

mqt/qmap/libs/rigetti_16.pickle

1.63 KB
Binary file not shown.

mqt/qmap/subarchitectures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from pathlib import Path
1919
from typing import Dict, NewType, Set, Tuple
2020

21-
import retworkx as rx
21+
import rustworkx as rx
2222
from matplotlib import figure
2323
from mqt.qmap import Architecture
2424

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ testpaths = ["test/python"]
3838
addopts = ["-ra", "--strict-markers", "--strict-config", "--showlocals"]
3939
log_cli_level = "INFO"
4040
xfail_strict = true
41-
filterwarnings = ["error"]
42-
41+
filterwarnings = [
42+
"error",
43+
# See https://github.com/Qiskit/rustworkx/pull/728
44+
'ignore:RetworkxLoader.exec_module\(\) not found; falling back to load_module\(\):ImportWarning',
45+
]
4346
[tool.coverage.run]
4447
source = ["mqt.qmap"]
4548

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def build_extension(self, ext):
105105
packages=find_namespace_packages(include=["mqt.*"]),
106106
install_requires=[
107107
"qiskit-terra>=0.20.2",
108-
"retworkx[all]>=0.11.0,<0.12.0",
108+
"rustworkx[all]>=0.12.0",
109109
"importlib_resources>=5.0; python_version < '3.10'",
110110
],
111111
extras_require={

test/python/test_subarchitectures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from pathlib import Path
22

33
import pytest
4-
import retworkx as rx
4+
import rustworkx as rx
55
from mqt.qmap import Architecture
66
from mqt.qmap.subarchitectures import (
77
SubarchitectureOrder,

0 commit comments

Comments
 (0)