cirq.SupportsPhase
An effect that can be phased around the Z axis of target qubits.
cirq.SupportsPhase(
*args, **kwargs
)
Methods
_phase_by_
View source
_phase_by_(
phase_turns: float, qubit_index: int
)
Returns a phased version of the effect.
Specifically, returns an object with matrix P U P^-1 (up to global
phase) where U is the given object's matrix and
P = Z(qubit_index)**(2 * phase_turns). For example, an X gate phased
by 90 degrees would be a Y gate.
Args |
phase_turns
|
The amount to phase the gate, in fractions of a whole
turn. Multiply by 2π to get radians.
|
qubit_index
|
The index of the target qubit the phasing applies to.
|
Returns |
The phased gate or operation.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-27 UTC."],[],[]]