-
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.
Browse files
Browse the repository at this point in the history
* change the default routing_method to sabre * reno * Update releasenotes/notes/sabre_level0-1524f01965257f3f.yaml Co-authored-by: Matthew Treinish <[email protected]> --------- Co-authored-by: Matthew Treinish <[email protected]> (cherry picked from commit b985b96) Co-authored-by: Luciano Bello <[email protected]>
- Loading branch information
1 parent
0093c65
commit 0c6acb7
Showing
2 changed files
with
14 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
upgrade_transpiler: | ||
- | | ||
The default routing pass used by optimization level 0 for :func:`.generate_preset_pass_manager` | ||
and :func:`.transpile` has been changed from :class:`.StochasticSwap` to :class:`.SabreSwap`. | ||
The :class:`.SabreSwap` pass performs exactly the same function but performs better in both | ||
runtime and output quality (in number of swap gates and depth) compared to | ||
:class:`.StochasticSwap`. For ``optimization_level=0`` this shouldn't matter because it's not | ||
expected to run routing for the typical use case of level 0. | ||
If you were relying on the previous default routing algorithm for any reason you can use the | ||
``routing_method`` argument for :func:`.transpile` and :func:`.generate_preset_pass_manager` | ||
to ``"stochastic"`` to use the :class:`.StochasticSwap` pass. |