qat.lang.vendors.quobly_gate_set
- qat.lang.vendors.quobly_gate_set()
Generate a
GateSetobject corresponding to the gate set of Quobly.The Quobly gate set is composed of:
Gate name
Notation
Arity
Definition
K gate
\(K(\phi)\)
1
\(\forall \phi \in\rm I\!R: \begin{vmatrix} 1 & -i \cdot e^{-i\phi} \\ -i \cdot e^{i\phi} & 1 \\ \end{vmatrix} = R_Z(\phi) \cdot R_X(\frac{\pi}{2}) \cdot R_Z(-\phi)\)
Z rotation
\(RZ(\theta)\)
1
\(\forall \theta \in\rm I\!R: \begin{vmatrix} e^{-i\theta/2} & 1 \\ 1 & e^{i\theta/2} \\ \end{vmatrix}\)
ZZ gate
\(ZZ(\pi/2)\)
2
\(\begin{vmatrix} 1 & 0 & 0 & 0 \\ 0 & i & 0 & 0 \\ 0 & 0 & i & 0 \\ 0 & 0 & 0 & 1 \\ \end{vmatrix}\)
from qat.lang.vendors import quobly_gate_set for gate_name in quobly_gate_set(): print(gate_name)
K ZZ RZ
- Returns:
Quobly gate set
- Return type: