December 7, 2024
Search
Search
Close this search box.

Quantum – Circuits – CNOT

CNOT  Gate \begin  {bmatrix} 1^h \  0 \  0\   0\\ 0 \  1^h \  0\   0\\ 0 \  0 \  0\   1^h\\ 0 \  0 \  1^h\   0 \end{bmatrix}

The quantum CNOT gate, controlled not, inverts the second qubit in a multipart qubit whenever the first qubit is jv. The first qubit is the control.

Examples of Quantum CNOT Gate

  • CNOT |j^j^> =   \begin {bmatrix} 1^h \ 0 \ 0\ 0\\ 0 \ 1^h \ 0\ 0\\ 0 \ 0 \ 0\ 1^h\\ 0 \ 0 \ 1^h\ 0 \end{bmatrix} * \begin {bmatrix} 1^h \\ 0 \\ 0\\ 0\end{bmatrix}  = \begin {bmatrix} 1^h \\ 0 \\ 0\\ 0\end{bmatrix} 
    • = |j^j^>

  • CNOT |j^jv> =   \begin {bmatrix} 1^h \ 0 \ 0\ 0\\ 0 \ 1^h \ 0\ 0\\ 0 \ 0 \ 0\ 1^h\\ 0 \ 0 \ 1^h\ 0 \end{bmatrix} * \begin {bmatrix} 1^v\\ 0 \\ 0\\ 0\end{bmatrix}  = \begin {bmatrix} 1^v \\ 0 \\ 0\\ 0\end{bmatrix}
    • = |j^jv>

  • CNOT |jvj^> =   \begin {bmatrix} 1^h \ 0 \ 0\ 0\\ 0 \ 1^h \ 0\ 0\\ 0 \ 0 \ 0\ 1^h\\ 0 \ 0 \ 1^h\ 0 \end{bmatrix} * \begin {bmatrix} 0\\ 0 \\ 1^h \\ 0\end{bmatrix}  = \begin {bmatrix} 0 \\ 0 \\ 0\\ 1^h \end{bmatrix} 
    • = |jvjv>

  • CNOT |jvjv> =   \begin {bmatrix} 1^h \ 0 \ 0\ 0\\ 0 \ 1^h \ 0\ 0\\ 0 \ 0 \ 0\ 1^h\\ 0 \ 0 \ 1^h\ 0 \end{bmatrix} * \begin {bmatrix} 0\\ 0 \\ 0 \\ 1^h\end{bmatrix}  = \begin {bmatrix} 0 \\ 0 \\ 1^h\\ 0 \end{bmatrix} 
    • = |jvj^

  • CNOT |jvj^> =   \begin {bmatrix} 1^h \ 0 \ 0\ 0\\ 0 \ 1^h \ 0\ 0\\ 0 \ 0 \ 0\ 1^h\\ 0 \ 0 \ 1^h\ 0 \end{bmatrix} * \begin {bmatrix} 0\\ 0 \\ 1^v \\ 0\end{bmatrix}  = \begin {bmatrix} 0 \\ 0 \\ 0\\ 1^v \end{bmatrix} 
    • = |jvjv>

Note that all gates are unitary and as such the quantum CNOT gate is reversible.

  • CNOT |jvjv> =   \begin {bmatrix} 1^h \ 0 \ 0\ 0\\ 0 \ 1^h \ 0\ 0\\ 0 \ 0 \ 0\ 1^h\\ 0 \ 0 \ 1^h\ 0 \end{bmatrix} * \begin {bmatrix} 0\\ 0 \\ 0 \\ 1^v\end{bmatrix}  = \begin {bmatrix} 0 \\ 0 \\ 1^v\\ 0 \end{bmatrix} 
    • = |jvj^>

See the Bellagio circuit for examples of the CNOT gate.

  .

Quantum CNOT Gate in Dirac State Format

  • CNOT |j^j^> =  |j^j^>
  • CNOT |j^jv> = |j^jv>
  • CNOT |jvj^> = |jvjv >
  • CNOT |jvjv> = |jvj^>
  • CNOT |jvj^> = |jvjv >
  • CNOT |jvjv> = |jvj^>


Next: AH2

Previous: Circuits Introduction

Share to:

Leave a Reply

Your email address will not be published. Required fields are marked *