-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Context:** Earlier `PauliSentence.to_mat(wire_order)` failed with exception when it had `only empty PauliWords`. This has been fixed under this PR. **Description of the Change:** Earlier when `PauliWord` didn't have wires the function `_pw_wires` defaulted to `PauliSentence` wires. Now rather than `PauliSentence` itself, it defaults to `wire_order` **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** Fixes #5354 --------- Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com> Co-authored-by: Christina Lee <christina@xanadu.ai>
- Loading branch information
1 parent
45f8e75
commit 2faade8
Showing
3 changed files
with
20 additions
and
3 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
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