forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove implicit broadcasting from
Pauli
/label construction of `Paul…
…iList` (Qiskit#9779) * Remove implicit broadcasting from `Pauli`/label construction of `PauliList` * Update releasenotes/notes/paulilist-do-not-broadcast-from-paulis-96de3832fba21b94.yaml Co-authored-by: Jake Lishman <[email protected]> --------- Co-authored-by: Jake Lishman <[email protected]> Co-authored-by: Jake Lishman <[email protected]>
- Loading branch information
1 parent
6d08086
commit 7137e88
Showing
3 changed files
with
17 additions
and
0 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
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/paulilist-do-not-broadcast-from-paulis-96de3832fba21b94.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,8 @@ | ||
--- | ||
fixes: | ||
- | | ||
A bug has been fixed which had allowed broadcasting when a | ||
:class:`.PauliList` is initialized from :class:`.Pauli`\ s or labels. For | ||
instance, the code ``PauliList(["XXX", "Z"])`` now raises a | ||
``ValueError`` rather than constructing the equivalent of | ||
``PauliList(["XXX", "ZZZ"])``. |
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