Commit a7991d3
Avoid using rustworkx 0.16.0 methods in vf2_utils (backport Qiskit#14513) (Qiskit#14533)
* Avoid using rustworkx 0.16.0 methods in vf2_utils (Qiskit#14513)
* Avoid using rustworkx 0.16.0 methods in vf2_utils
In Qiskit#14218 the vf2_utils module was updated to use the
`PyDiGraph.neighbors_undirected()` method which was added in 0.16.0.
However that PR neglected to bump the minimum required version of
rustworkx to 0.16.0 from 0.15.0 which is the current minim version
listed. While we could bump the minimum version (see Qiskit#14507) to
rustworkx 0.16.0 using this method isn't strictly necessary and Qiskit#14218
was backported to stable branches and backporting a version bump is not
desireable. This commit instead just updates the rustworkx usage to use
APIs in 0.15.0.
This PR will need to be backported to stable/1.4 and stable/2.0 to fix
compatibility with the listed rustworkx requirement. However, in the
backport a fix note will be needed to document that the release fixes
compatibility with the listed requirement.
* Correctly handle duplicates across successors and predecessors
(cherry picked from commit 9aa1a29)
* Add release note
---------
Co-authored-by: Matthew Treinish <[email protected]>1 parent c100656 commit a7991d3
File tree
2 files changed
+11
-1
lines changed- qiskit/transpiler/passes/layout
- releasenotes/notes
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments