-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
TopologicalSorter
without error checking
For representative examples in Qiskit, this reduces the runtime of interacting with the topological sorter by around 15-20%.
- Loading branch information
1 parent
5d53c59
commit becd5bc
Showing
3 changed files
with
47 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
features: | ||
- | | ||
:class:`.TopologicalSorter` now has a ``check_args`` keyword argument, which can be set to | ||
``False`` to disable the runtime detection of invalid arguments to | ||
:meth:`~.TopologicalSorter.done`. This provides a memory and runtime improvement to the online | ||
sorter, at the cost that the results will be undefined and likely meaningless if invalid values | ||
are given. |
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