qml.devices.tf_ops.CRZ

CRZ(theta)[source]

Two-qubit controlled rotation about the z axis.

Parameters

theta (float) – rotation angle

Returns

diagonal part of the 4x4 rotation matrix \(|0\rangle\langle 0|\otimes \mathbb{I}+|1\rangle\langle 1|\otimes R_z(\theta)\)

Return type

tf.Tensor[complex]