-
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.
Fix
Optimize1qGatesDecomposition
length heuristic (#6553)
* fix 1q optimization heuristic * drop unnecessary brackets Co-authored-by: Ali Javadi-Abhari <ajavadia@users.noreply.github.com> * actually fill out reno template :P * maker linter happier * make lev happier * add a GH link to the sloppy synth warning Co-authored-by: Matthew Treinish <mtreinish@kortar.org> * improve source linking in changelog Co-authored-by: Matthew Treinish <mtreinish@kortar.org> * remember target basis name * update circuit definitions * improve linter cheerfulness * increase reluctance to decompose calibrated gates * change .basis slot to ._decomposers * my local linter thinks everything is fine :/ * add some U3 special cases * make black happy * fix a claimed circular import * add a couple more rewrite tests * satisfy black * avoid lambda = ± pi in 1Q KAK * optimize on strict length * more thorough gate elision during 1Q synthesis * respond to most of Lev's feedback * add an 'allow_non_canonical' parameters * normalize K rolls * Update qiskit/quantum_info/synthesis/one_qubit_decompose.py Co-authored-by: Lev Bishop <18673315+levbishop@users.noreply.github.com> * Update qiskit/quantum_info/synthesis/one_qubit_decompose.py Co-authored-by: Lev Bishop <18673315+levbishop@users.noreply.github.com> * add some Euler special case tests for pushing a K(pi) through an A(alpha) * add some Euler special case tests for pushing a K(pi) through an A(alpha) * Update one_qubit_decompose.py a by-hand attempt at reformatting the docstring * ok linter Co-authored-by: Ali Javadi-Abhari <ajavadia@users.noreply.github.com> Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: Lev Bishop <18673315+levbishop@users.noreply.github.com>
- Loading branch information
1 parent
09f9c10
commit b32a531
Showing
9 changed files
with
309 additions
and
114 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
5 changes: 5 additions & 0 deletions
5
.../fixed-bug-in-Optimize1qGatesDecomposition-skipping-short-sequences-044a64740bf414a7.yaml
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,5 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixes a bug in :func:`~qiskit.transpiler.passes.Optimize1qGatesDecomposition` previously causing certain | ||
short sequences of gates to erroneously not be rewritten. |
Oops, something went wrong.