Quantum Gates

Define how group of qubits are affected.

Controlled-Not Gate (CNOT)

The CNOT gate acts on two qubits. One is the control qubit and the other is the target qubit.

$$ CNOT = \begin{bmatrix} 1 \ 0 \ 0 \ 0 \\ 0 \ 1 \ 0 \ 0 \\ 0 \ 0 \ 0 \ 1 \\ 0 \ 0\ 1\ 0 \\ \end{bmatrix} $$

image.png

$$ ⁍ $$

Table:

Toffoli Gate (CCNOT)

image.png

$$ ⁍ $$