qml.devices.autograd_ops.RZ

RZ(theta)[source]

One-qubit rotation about the z axis.

Parameters

theta (float) – rotation angle

Returns

the diagonal part of the rotation matrix \(e^{-i \sigma_z \theta/2}\)

Return type

array[complex]