RY

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

Produces the RY gate:

RY(phi) = [[cos(phi / 2), -sin(phi / 2)],
           [sin(phi / 2), cos(phi / 2)]]

This gate is a single qubit Y-rotation.

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

A Gate object.