SHIFT_PHASE

pyquil.gates.SHIFT_PHASE(frame, phase)[source]

Produce a SHIFT-PHASE instruction.

Parameters
  • frame (Frame) – The frame on which to shift the phase.

  • phase (Union[Expression, MemoryReference, int64, int, float, complex]) – The value, in radians, to add to the existing phase.

Return type

ShiftPhase

Returns

A ShiftPhase instance.