Lecture 11 - Multiple Qubit Gates

There are an infinite number of multi-qubit gates. We can see a list via:

But for our studies we can just study the two-qubit gates and see how it extends to n states or whatever.

Some highlights are:

The thing is that a lot of these are just online when you need them.

Controlled Gates

When the control qubit is in |1, the gate will be applied to the target qubit. When the control qubit is in |0 then nothing will be applied to the target qubit.

This brings up the question if you have something in between like |+ or something weird. You have to look at the matrix itself to get this information.

Single qubit gates in a two-qubit world (Kronecker product or the Tensor Product).

Practice

Let's try cPHASE(12|00+12|01), where here the phase is π, reflected by the following matrix:
Pasted image 20240429154653.png

The result will be:

12(|00+|01)$$Fordoingthesamegateon$12(|00+|01+|10+|11)$weget:

\boxed{\frac{1}{2}(\ket{00} + \ket{01} + \ket{10} - \ket{11})}

Fordoing$SWAP(12|00+i2|01i2|10+12|11)$weget:

\boxed{\frac{1}{2}(\ket{00} - i\ket{01} + i\ket{10} + \ket{11})}

For $\sqrt{\text{SWAP}}$ of the same vector above we get the same as the input. To check if something is entangled, you just try to "factor" out constants and the left $0$ or $1$ in our states to see if we can have two measurements that have the same state. If not, then it's entangled. # Entangling vs. Non-entangling Gates *Entangling Gates* are able to entangle two (or more) qubits, while *non-entangling* gates can never entangle two qubits. Entangling gates do not entangle all states! Entangling: - cNOT, cPHASE, $\sqrt{SWAP}$ - Non-entangling: $SWAP$