| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Teleport
Description
Quantum teleportation example
Documentation
teleport :: QBit -> QM QBit Source #
0> : 46.0 (46.0 %) |1> : 54.0 (54.0 %)
>>>dist exampleTeleportRuns : 100 |0> : 100.0 (100.0 %) |1> : 0.0 (0.0 %)
The quantum teleportation algorithm 1. create EPR pair (a,b) 2. perform bell measurment on (psi, a) 3. perform corrections on b according to the bell measurement
exampleTeleport :: QM Bit Source #
Create a qubit, teleport it, and measure it