qat.lang.vendors.iqm_gate_set
- qat.lang.vendors.iqm_gate_set()
Generate a
GateSetobject corresponding to the gate set of IQM.The IQM gate set is composed of:
Gate name
Notation
Arity
Definition
PRX gate
\(PRX(\theta, \phi)\)
1
\(\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}\)
Z rotation
\(RZ(\theta)\)
1
\(\forall \theta \in\rm I\!R: \begin{vmatrix} e^{-i\theta/2} & 0 \\ 0 & e^{i\theta/2} \\ \end{vmatrix}\)
CZ gate
\(CZ\)
2
\(\begin{vmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & -1 \\ \end{vmatrix}\)
from qat.lang.vendors import iqm_gate_set for gate_name in iqm_gate_set(): print(gate_name)
PRX RZ CSIGN
- Returns:
IQM gate set
- Return type: