Rotation gates: Rx, Ry and Rz
The rotation gates , and turn the sphere by any angle θ about the x, y or z axis. The Pauli gates, S and T are special cases, and together these rotations can make any one-qubit gate.
In the app, R(θ) ▾ on the gate bar picks the axis and the angle. A ghost arrow previews the result while you drag the slider; Apply plays it.
The matrices
All three are the general rotation with the axis along x, y or z, where .
Half angles, again
The matrices use for the same reason the Bloch sphere does: a turn of θ on the sphere is a turn of θ/2 between state vectors. One surprise follows. A full turn, , brings every arrow back where it started, but its matrix is , not : the state comes back with a global phase of . Only two full turns give .
The named gates as rotations
Each named gate is a rotation times a global phase, which doesn't change how it turns the sphere:
| Gate | As a rotation |
|---|---|
Any gate from rotations
Every one-qubit gate can be written as three rotations, about z, then y, then z, times a global phase. These are its Z-Y-Z Euler angles:
Or as one rotation, by some angle about some axis: that's what the app's Gate panel reports for every gate, and what the Gate Lab finds for any sequence.
Try it
See also: Gates are rotations · S and T · The Gate Lab