-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix inconsistent Pauli gate multiplication #7603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+103
−52
Merged
Changes from 2 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e17c7d9
Update PauliString.__mul__ and __rmul__ to handle GateOperations
ToastCheng fc2abac
Update Gate._mul_with_qubits and _rmul_with_qubits
ToastCheng 0247926
Consolidate the PauliString conversion logic
ToastCheng 498b1e6
Cleanup special cases in PauliString multiplication functions
ToastCheng c172c21
Fix PauliString convertion logic
ToastCheng a12c82f
Remove redundant multiplication cases in PauliString
ToastCheng 4f1e08e
Add PauliString multiplication unit tests
ToastCheng 6ea83a0
Handle DensePauliString/PauliString multiplication
ToastCheng 1c25b43
Handle Operation in _try_interpret_as_pauli_string
ToastCheng a15cb41
Remove _as_pauli_string
ToastCheng 0ba3672
Remove PauliString type check in _attempt_value_to_pauli_index
ToastCheng 7a516c9
Remove casting in PauliString.__mul__
ToastCheng 7b9c99f
Add commute test cases for DSP and GateOperation
ToastCheng 87337dc
Explicitly return None in the end of _try_interpret_as_pauli_string
ToastCheng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.