describe the teleportation protocol. One common one is by using the notation of quantum gates. In the above derivation, the unitary transformation that is the change of basis (from the standard product basis into the Bell basis) can be written using quantum gates. Direct calculation shows that this gate is given by where H is the one qubit Walsh-Hadamard gate and is the Controlled NOT gate. Entanglement swapping Teleportation can be applied not just to pure states, but also mixed states, that can be regarded as the state of a single subsystem of an entangled pair. The so-called entanglement swapping is a simple and illustrative example. If Alice and Bob share an entangled pair, and Bob teleports his particle to Carol, then Alice's particle is now entangled with Carol's particle. This situation can also be viewed symmetrically as follows: Alice and Bob share an entangled pair, and Bob and Carol share a different entangled pair. Now let Bob perform a projective measurement on his two particles in the Bell basis and communicate the result to Carol. These actions are precisely the teleportation protocol described above with Bob's first particle, the one entangled with Alice's particle, as the state to be teleported. When Carol finishes the protocol she now has a particle with the teleported state, that is an entangled state with Alice's particle. Thus, although Alice and Carol never interacted with each other, their particles are now entangled. A detailed diagrammatic derivation of entanglement swapping has been given by Bob Coecke, presented in terms of categorical quantum mechanics. Algorithm for swapping Bell pairs An important application of entanglement swapping is distributing Bell states for use in entanglement distributed quantum networks. A technical description of the entanglement swapping protocol is given here for pure Bell states. Alice and Bob locally prepare known Bell pairs resulting in the initial state: Alice sends qubit to a third party Carol Bob sends qubit to Carol Carol performs a Bell projection between and that by chance results in the measurement outcome: In the case of the other three Bell projection outcomes, local corrections given by Pauli operators are made by Alice and or Bob after Carol has communicated the results of the measurement. Alice and Bob now have a Bell pair between qubits and Generalizations of the teleportation protocol The basic teleportation protocol for a qubit described above has been generalized in several directions, in