I'm a self-learner of quantum computing and is at the very beginning. I do have some math and coding background though. I'm trying to understand how working with entangled qubits helps performing multiple computations at once, any my first confusion is with the description of the CX gate. It is said, that this is a "controlled not" gate, which swaps the amplitudes of the second qubit only if the first qubit is in the state of $1$. But,
this description seems strange to me, as to know in which state the first qubit is I guess we need to measure it,
the matrix transformation seems to always leave the first qubit unchanged and swap the amplitudes of the second one no matter what, indeed
$$ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0\end{bmatrix} \cdot\begin{bmatrix}\phi_0\\\phi_1\\\psi_0\\\psi_1\end{bmatrix} = \begin{bmatrix}\phi_0\\\phi_1\\\psi_1\\\psi_0\end{bmatrix} $$