qml.devices.tf_ops.CRot

CRot(a, b, c)[source]

Arbitrary two-qubit controlled rotation using three Euler angles.

Parameters
  • a (float) – rotation angles

  • b (float) – rotation angles

  • c (float) – rotation angles

Returns

unitary 4x4 rotation matrix \(|0\rangle\langle 0|\otimes \mathbb{I}+|1\rangle\langle 1|\otimes R(a,b,c)\)

Return type

tf.Tensor[complex]