RZ

pyquil.gates.RZ(angle, qubit)[source]

Produces the RZ gate:

RZ(phi) = [[cos(phi / 2) - 1j * sin(phi / 2), 0]
           [0, cos(phi / 2) + 1j * sin(phi / 2)]]

This gate is a single qubit Z-rotation.

Parameters:
  • angle – The angle to rotate around the z-axis on the bloch sphere.
  • qubit – The qubit apply the gate to.
Returns:

A Gate object.