qat.lang.vendors.RXX
- qat.lang.vendors.RXX
Definition of the \(RXX\) gate (of arity \(2\)). This gate is not included in the default gate set of myQLM, but in the gate set
aqt_gate_set().from qat.lang import qrout from qat.lang.vendors import RXX @qrout def circ(alpha): RXX(alpha)(0, 1)
This \(RXX\) gate is defined by:
\[\begin{split}\forall \theta \in\rm I\!R: \begin{vmatrix} cos(\theta/2) & 0 & 0 & -i \cdot sin(\theta/2) \\ 0 & cos(\theta/2) & -i \cdot sin(\theta/2) & 0 \\ 0 & -i \cdot sin(\theta/2) & cos(\theta/2) & 0 \\ -i \cdot sin(\theta/2) & 0 & 0 & cos(\theta/2) \\ \end{vmatrix}\end{split}\]