Skip to main content

RZGate

Function RZGate 

Source
pub fn RZGate() -> UnitaryExpression
Expand description

The single-qubit RZ gate (rotation around the Z-axis).

$$ RZ(\theta) = \begin{pmatrix} e^{-i\theta/2} & 0 \\ 0 & e^{i\theta/2} \end{pmatrix} $$