-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance improvements for collect_2q_blocks (#6433)
* Use find_successors_by_edge in quantum_successors * Add is_successors to DAGCircuit and collect_2q * Replace qargs with _qargs in collect_2q_blocks * Replace op with _op in collect_2q_blocks * Add tests for is_sucessor/is_predecessor * Modify requirements.txt temporarily to fetch latest retworkx code * Correct syntax in requirements.txt to temporarily fetch latest retworkx * Use Qiskit/retworkx@main * Update requirements.txt * Add release note about retworkx upgrade * Update releasenotes/notes/bump-retworkx-59c7ab59ad02c3c0.yaml Co-authored-by: Matthew Treinish <[email protected]> * Fix indentation in release note Co-authored-by: Matthew Treinish <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
33e7448
commit 0240377
Showing
5 changed files
with
107 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
features: | ||
- | | ||
Added two new methods, :meth:`~qiskit.dagcircuit.DAGCircuit.is_successor` and | ||
:meth:`~qiskit.dagcircuit.DAGCircuit.is_predecessor`, to the | ||
:class:`~qiskit.dagcircuit.DAGCircuit` class. These functions are used to check if a node | ||
is either a successor or predecessor of another node on the :class:`~qiskit.dagcircuit.DAGCircuit`. | ||
upgrade: | ||
- | | ||
The minimum version of the `retworkx <https://pypi.org/project/retworkx/>`_ dependency | ||
was increased to version `0.9.0`. This was done to use new APIs introduced in that release | ||
which improved the performance of some transpiler passes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters