qml.devices.tf_ops.RX

RX(theta)[source]

One-qubit rotation about the x axis.

Parameters

theta (float) – rotation angle

Returns

unitary 2x2 rotation matrix \(e^{-i \sigma_x \theta/2}\)

Return type

tf.Tensor[complex]