Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Implements the quantum teleportation protocol with 3 qubits.
import Quipper
main = print_simple Preview $ do
alice <- qinit False
bob <- qinit False
msg <- qinit True
hadamard alice
controlled_not alice bob
controlled_not msg alice
hadamard msg
c1 <- measure msg
c2 <- measure alice
if c2 then gate_X bob else return ()
if c1 then gate_Z bob else return ()
measure bobQuipper is a functional programming language designed for scalable quantum computing. It provides a high-level framework for constructing, manipulating, and simulating quantum circuits.
Origin & Creator
Quipper was developed by Microsoft Research and academia (e.g., Bernhard Ömer and colleagues) around 2008-2013 as a functional language tailored for quantum computation.
Industrial Note
Quipper is mainly used in research for algorithm development, circuit synthesis, and testing large-scale quantum protocols rather than direct execution on real quantum hardware.