cirq.Rot11Gate.phase_by

Rot11Gate.phase_by(phase_turns, qubit_index)[source]

Returns a phased version of the effect.

For example, an X gate phased by 90 degrees would be a Y gate.

Parameters:
  • phase_turns – The amount to phase the gate, in fractions of a whole turn.
  • qubit_index – The index of the target qubit the phasing applies to.
Returns:

The phased gate or operation.