qat.lang.SWAP
- qat.lang.SWAP
Definition of the \(SWAP\) gate (of arity \(2\)). This gate is part of the default gate set of myQLM and is defined in the default gate set
default_gate_set().This \(SWAP\) gate is defined by:
\[\begin{split}\begin{vmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ \end{vmatrix}\end{split}\]