Skip to content

Commit

Permalink
Switch from retworkx to rustworkx package (Qiskit#9162)
Browse files Browse the repository at this point in the history
* Switch from retworkx to rustworkx package

In the retworkx/rustworkx 0.12.0 release the package was renamed from
retworkx to rustworkx which was done at the request of the networkx
maintainers [1]. While the retworkx name continues to work for backwards
compatibility, it is best to move off of the legacy name and start using
the new name sooner rather than later. This commit updates all the
retworkx usage to the new rustworkx and updates our requirements list to
directly depend on rustworkx.

[1] https://qiskit.org/documentation/rustworkx/release_notes.html#prelude

* Fix release note path

* Update releasenotes/notes/rustworkx-not-retworkx-b7c4da600df58701.yaml

Co-authored-by: Jake Lishman <[email protected]>

Co-authored-by: Jake Lishman <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 18, 2022
1 parent 67d1fcb commit b4660f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/python/algorithms/minimum_eigensolvers/test_qaoa.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from scipy.optimize import minimize as scipy_minimize
from ddt import ddt, idata, unpack

import retworkx as rx
import rustworkx as rx

from qiskit import QuantumCircuit
from qiskit.algorithms.minimum_eigensolvers import QAOA
Expand Down
2 changes: 1 addition & 1 deletion test/python/algorithms/test_measure_error_mitigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from test.python.algorithms import QiskitAlgorithmsTestCase
from ddt import ddt, data, unpack
import numpy as np
import retworkx as rx
import rustworkx as rx
from qiskit import QuantumCircuit, execute
from qiskit.quantum_info import Pauli
from qiskit.exceptions import QiskitError
Expand Down
2 changes: 1 addition & 1 deletion test/python/algorithms/test_qaoa.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import numpy as np
from scipy.optimize import minimize as scipy_minimize
from ddt import ddt, idata, unpack
import retworkx as rx
import rustworkx as rx

from qiskit.algorithms import QAOA
from qiskit.algorithms.optimizers import COBYLA, NELDER_MEAD
Expand Down

0 comments on commit b4660f1

Please sign in to comment.