:py:mod:`matrices.cnot` ======================= .. py:module:: matrices.cnot .. autoapi-nested-parse:: CNOT matrix. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: matrices.cnot.cnot .. py:function:: cnot() Produce the CNOT matrix :cite:`WikiCNOT`. The CNOT matrix is defined as .. math:: \text{CNOT} = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \end{pmatrix}. .. rubric:: Examples >>> from toqito.matrices import cnot >>> cnot() [[1 0 0 0] [0 1 0 0] [0 0 0 1] [0 0 1 0]] .. rubric:: References .. bibliography:: :filter: docname in docnames :return: The CNOT matrix.