qfunc-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Teleport

Description

Quantum teleportation example

Synopsis

Documentation

teleport :: QBit -> QM QBit Source #

0> : 46.0 (46.0 %) |1> : 54.0 (54.0 %)

>>> dist exampleTeleport
Runs : 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