Can anyone explain how the CNOT matrix below is a valid presentation for the four-qubit states that follow after?
|0 0> -> |0 0>
|0 1> -> |0 1>
|1 0> -> |1 1>
|1 1> -> |1 0>
Source: Wikipedia
Quantum Computing Stack Exchange is a question and answer site for engineers, scientists, programmers, and computing professionals interested in quantum computing. It only takes a minute to sign up.
Sign up to join this communityCan anyone explain how the CNOT matrix below is a valid presentation for the four-qubit states that follow after?
|0 0> -> |0 0>
|0 1> -> |0 1>
|1 0> -> |1 1>
|1 1> -> |1 0>
Source: Wikipedia
The one concept that I think would really help you is knowing how to turn those 4 states, $|00\rangle, |01\rangle, |10\rangle, |11\rangle$, into vectors, so that you can do the matrix multiplication.
Let me show you.
$$ \begin{align} |00\rangle = \begin{bmatrix} 1 \\ 0 \\ 0 \\ 0 \end{bmatrix},|01\rangle = \begin{bmatrix} 0 \\ 1 \\ 0 \\ 0 \end{bmatrix}, |10\rangle = \begin{bmatrix} 0 \\ 0 \\ 1 \\ 0 \end{bmatrix}, |11\rangle = \begin{bmatrix} 0 \\ 0 \\ 0 \\ 1 \end{bmatrix} \end{align} $$
Now if you do the matrix multplication: $\rm{CNOT} \times |00\rangle$
You will see that you will get exactly what you said, which is $|00\rangle$, and the same is true for the rest of them!
This is using the convention that $|0\rangle = \begin{bmatrix} 1 \\ 0 \end{bmatrix}$ and $|1\rangle = \begin{bmatrix} 0 \\ 1 \end{bmatrix}$, and $|ab\rangle = |a\rangle \otimes |b\rangle$ where $\otimes$ is the left Kronecker product.