I understand the simple quantum teleportation protocol and why it uses X and Z gate at the end of the circuit.
I was researching about the Qiskit and I came across this video
https://www.youtube.com/watch?v=mMwovHK2NrE
which uses the following algorithm for quantum teleportation.
I don't understand why they use CX and CZ gate with qubits $q_0$ and $q_1$ as controls and qubit $q_2$ as the target at the end.
Please try to explain why they're using CZ and CX gate at the end of the circuit.
cx
andcz
gates at the end of the circuit $\endgroup$