toqito.matrices.cnot ==================== .. py:module:: toqito.matrices.cnot .. autoapi-nested-parse:: CNOT matrix generates the CNOT operator matrix. Module Contents --------------- .. py:function:: cnot() Produce the CNOT matrix [@WikiCNOT]. The CNOT matrix is defined as \[ \text{CNOT} = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \end{pmatrix}. \] .. rubric:: Examples ```python exec="1" source="above" from toqito.matrices import cnot print(cnot()) ``` :returns: The CNOT matrix.