I implemented teleportation described on this page: Teleporation
Here, as we are trying to teleport the quantum state from Alice (q0) to Bob(q2).
Bob, on receiving the bits from Alice needs to apply appropriate transformations on his qubit based on Alice measurement to reconstruct Alice's state which are as follows:
Please help me to understand the logic behind applying X-gate in case bits received are 01 or applying z-gate in case bits received are 10..