qml.devices.tf_ops.CRY

CRY(theta)[source]

Two-qubit controlled rotation about the y axis.

Parameters

theta (float) – rotation angle

Returns

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

Return type

tf.Tensor[complex]