-
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.
Support parameter broadcasting with
GlobalPhase
(#5923)
**Context:** `GlobalPhase` does not support broadcasting yet. **Description of the Change:** Introduce broadcasting to `GlobalPhase`, using the code from `PauliRot` with `set(pauli_word) == {"I"}`. The latter falls back to the `GlobalPhase` implementation. Also fixes a small bug where the global phase returned by `one_qubit_decomposition` gains a broadcasting dimension even if the input matrix does not have one. **Benefits:** Broadcasting support & Bug fix Unlocks #4460 **Possible Drawbacks:** **Related GitHub Issues:** Implements #5815 Fixes #5880 [sc-65316]
- Loading branch information
Showing
5 changed files
with
115 additions
and
56 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
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