Rotation about the z-axis (source code)

= Rotation about the z-axis
{title2=$R_z(\theta)$}

The one-qubit <rotation gate> is $R_z(\theta)=\operatorname{diag}(e^{-i\theta/2},e^{i\theta/2})$. It implements the two relative phases needed in <simulation of a computable diagonal Hamiltonian>.