SET_PHASE

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

Produce a SET-PHASE instruction.

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

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

Return type

SetPhase

Returns

A SetPhase instance.