qml.devices.tf_ops.CRX

CRX(theta)[source]

Two-qubit controlled rotation about the x axis.

Parameters

theta (float) – rotation angle

Returns

unitary 4x4 rotation matrix \(|0\rangle\langle 0|\otimes \mathbb{I}+|1\rangle\langle 1|\otimes R_x(\theta)\)

Return type

tf.Tensor[complex]