-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix missing inverse definitions in
generate_basis_approximations
(#…
…13517) * fix missing inverse definitions in `generate_basis_approximation` * add missing basis gates to test * add bugfix release note * Update releasenotes/notes/fix-missing-inverse-definition-af7fe8d9f2193308.yaml * Fix reno annotation --------- Co-authored-by: Julien Gacon <gaconju@gmail.com> Co-authored-by: Julien Gacon <jules.gacon@googlemail.com>
- Loading branch information
1 parent
63445e9
commit 149d5a6
Showing
3 changed files
with
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,8 @@ | |
"tdg": "t", | ||
"s": "sdg", | ||
"sdg": "s", | ||
"sx": "sxdg", | ||
"sxdg": "sx", | ||
} | ||
|
||
_1q_gates = { | ||
|
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/fix-missing-inverse-definition-af7fe8d9f2193308.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,6 @@ | ||
fixes: | ||
- | | ||
Fixed a bug in the basis approximation generation for :class:`.SolovayKitaev`. | ||
Previously, generating discrete basis approximations using | ||
``generate_basis_approximations`` for a basis containing ``"sx"`` or | ||
``"sxdg"`` gates would fail. This has now been fixed. |
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