CPHASE01

pyquil.gates.CPHASE01(angle, control, target)[source]

Produces a controlled-phase gate that phases the |01> state:

CPHASE01(phi) = diag([1.0, exp(1j * phi), 1.0, 1.0])

This gate applies to two qubit arguments to produce the variant of the controlled phase instruction that affects the state 01.

Parameters:
  • angle (Union[Expression, MemoryReference, int64, int, float, complex]) – The input phase angle to apply when q1 is in the |1> state and q2 is in the |0> state.
  • control (Union[Qubit, QubitPlaceholder, int]) – Qubit 1.
  • target (Union[Qubit, QubitPlaceholder, int]) – Qubit 2.
Return type:

Gate

Returns:

A Gate object.