-
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 {Pauli,SparsePauliOp}.apply_layout to raise an error with negativ…
…e or duplicate indices (#12385) (#12386) * fix apply_layout to raise an error with negative or duplicate indices * reno * Fix Sphinx syntax * Fix my own Sphinx lookup problem --------- Co-authored-by: Jake Lishman <jake@binhbar.com> (cherry picked from commit fe275a0) Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com>
- Loading branch information
1 parent
a938606
commit 70eae3c
Showing
5 changed files
with
40 additions
and
5 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
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/fix-apply-layout-duplicate-negative-indices-cf5517921fe52706.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 :meth:`.SparsePauliOp.apply_layout` and :meth:`.Pauli.apply_layout` | ||
to raise :exc:`.QiskitError` if duplicate indices or negative indices are provided | ||
as part of a layout. |
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