Skip to content

Commit

Permalink
⬆️ Replace retworkx with rustworkx (#164)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dependabot[bot] and burgholzer authored Nov 4, 2022
1 parent e38d3a8 commit 1cc4741
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
Binary file modified mqt/qmap/libs/ibm_guadalupe_16.pickle
Binary file not shown.
Binary file modified mqt/qmap/libs/rigetti_16.pickle
Binary file not shown.
2 changes: 1 addition & 1 deletion mqt/qmap/subarchitectures.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from pathlib import Path
from typing import Dict, NewType, Set, Tuple

import retworkx as rx
import rustworkx as rx
from matplotlib import figure
from mqt.qmap import Architecture

Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ testpaths = ["test/python"]
addopts = ["-ra", "--strict-markers", "--strict-config", "--showlocals"]
log_cli_level = "INFO"
xfail_strict = true
filterwarnings = ["error"]

filterwarnings = [
"error",
# See https://github.com/Qiskit/rustworkx/pull/728
'ignore:RetworkxLoader.exec_module\(\) not found; falling back to load_module\(\):ImportWarning',
]
[tool.coverage.run]
source = ["mqt.qmap"]

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def build_extension(self, ext):
packages=find_namespace_packages(include=["mqt.*"]),
install_requires=[
"qiskit-terra>=0.20.2",
"retworkx[all]>=0.11.0,<0.12.0",
"rustworkx[all]>=0.12.0",
"importlib_resources>=5.0; python_version < '3.10'",
],
extras_require={
Expand Down
2 changes: 1 addition & 1 deletion test/python/test_subarchitectures.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pathlib import Path

import pytest
import retworkx as rx
import rustworkx as rx
from mqt.qmap import Architecture
from mqt.qmap.subarchitectures import (
SubarchitectureOrder,
Expand Down

0 comments on commit 1cc4741

Please sign in to comment.