forked from quantumlib/Cirq
-
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.
Override gate.controlled() for GlobalPhaseGate to return a ZPowGate (q…
…uantumlib#6073) * Override gate.controlled() for GlobalPhaseGate to return a ZPowGate * Test unitary equivalence * Override controlled only if gate is not parameterized * Fix typo * Fix type check * another attempt at fixing types * Add a comment and additional tests
- Loading branch information
1 parent
0346162
commit 1e3d8ce
Showing
2 changed files
with
49 additions
and
2 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