Quantum teleportation using Blueqat SDK

Yuichiro Minato
May 19 · 3 min read


I would like to implement quantum teleportation using Blueqat SDK on universal gate machine.

What is Blueqat?

Blueqat is an open source library for quantum computer.

Blueqat is provided as Python (ver 3.6+) library. You can install by pip.

pip install blueqat

Quantum teleportation

Although it is named teleportation, it does not mean particles move instantaneously to different places in space. When observing the state of one of the two particles of quantum entanglement, the other state is confirmed instantaneously.

Quantum teleportation occurs between two particles in the quantum entanglement relationship of EPR pairs.


As introduced above, quantum states can be photographed by generating quantum entanglement, measuring it, manipulating it, and manipulating the final qubits of the transfer destination with the measurement result.

Looking at the circuit

First prepare the state of q0. Next, q1 and q2 make quantum entanglement. You can achieve quantum entanglement state called EPR pair by applying H gate to q1 and CNOT on q1 and q2. And it is called bell measurement, make measurements by generating tangle at q0, q1 and applying H gate to q 0. In this case, we will substitute CX / CZ circuit instead of measurement. Originally we will do the measurement instead of CX / CZ and apply X gate, Z gate.

Blueqat code is,

Let’s prepare |0> and try the circuit

We succeded to transfer the state of first qubit to the third qubit.

And next we try |1>

And finally try on superposition of 0 and 1.

The overlayed state has shifted so that 0 and 1 come to q2 in about half probability.

If you have any questions or suggestions, please feel free to contact us by our Slack community. (Join from here)

Yuichiro Minato

Written by

MDR, Quantum Computing@Tokyo, https://mdrft.com/