CROTXGate

class CROTXGate(theta)

Represent a controlled rotation gate about the X axis.

\[CROTX = RX(\theta) \otimes |0\rangle\langle0| + RX(-\theta) \otimes |1\rangle\langle1|\]

The gate’s first qubit is the control. The formula is in Qiskit’s order, with the control as the right factor.

Parameters:

theta – Rotation angle of the conditional X rotation.

Methods

inverse([annotated])

Return the same gate at \(-\theta\), which keeps the inverse native.