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