I am learning to manipulate Qbits and recently I saw the teleportation algorithm. I read about it in two places: Wikipedia and Lecture Notes from Ronald de Wolf (Page 7, 1.5 Example: Quantum Teleportation).
I'd like to understand how to operate with Qbits using linear algebra when an entanglement is present. In this case, we have 3 Qbits.
- Qbit 1: in possession of Alice and is going to be teleported to Bob
- Qbit 2: in possession of Alice
- Qbit 3: in possession of Bob
Qbit 2 and 3 are in Bell state: $\frac{1}{\sqrt{2}}(|00\rangle + |11\rangle)$. The full state of three Qbits 1, 2, 3 is $(\alpha_0 |0\rangle+\alpha_1|1\rangle) \otimes \frac{1}{\sqrt2}(|00\rangle+|11\rangle)$. In an extended (more painful) notation it would be:
$$\frac{\alpha_0}{\sqrt2}|000\rangle + 0 \cdot |001\rangle + 0 \cdot|010\rangle+ \frac{\alpha_0}{\sqrt2}|011\rangle + $$
$$\frac{\alpha_1}{\sqrt2}|100\rangle + 0 \cdot|101\rangle + 0 \cdot|110\rangle+ \frac{\alpha_1}{\sqrt2}|111\rangle + $$
Now I'd like to apply a CNOT gate (Controlled Not) to Qbits 1 and 2, and finally H gate (Hadamard transform) to Qbit 1. I know how CNOT operation affects Qbit 1 and 2, but it's not completely clear how does it affect Qbit 3. I'm wondering what is the $8 \times 8$ Matrix that is applied to the state (in extended notation) when is applied CNOT on Qbit 1 and 2.