Rz Gate

The Rz gate is one of the Rotation operators. The Rz gate is a single-qubit rotation through angle θ\theta (radians) around the z-axis.

 Rz(θ)=(eiθ200eiθ2)\ R_z\left ( \theta \right ) = \begin{pmatrix} e^{-i \frac{\theta}{2}} & 0 \ 0 & e^{i \frac{\theta}{2}} \end{pmatrix}

        
          version 1.0
qubits 2
H q[0] # execute Hadard gate on qubit 0
Rz q[0],-1.12 # rotation around z-axis of -1.12 radians on qubit 0