QIO-1.3: The Quantum IO Monad is a library for defining quantum computations in Haskell

Safe HaskellNone
LanguageHaskell2010

QIO.Qft

Description

This module provides an implementation of the Quantum Fourier Transform in QIO.

Synopsis

Documentation

qft :: [Qbit] -> U Source #

Defines the unitary the represents appliying a Quantum Fourier Transform to the given quantum register.

qftAcu :: [Qbit] -> [Bool] -> [Bool] -> U Source #

The definition of the QFT unitary makes use of an accumulator, to repeatedly apply smaller QFTs to the tail of the given quantum register.

qftBase :: [Bool] -> Qbit -> U Source #

The "base" step involved in a QFT is a series of controlled rotations.

rotK :: Int -> Qbit -> U Source #

The rotation used in the QFT is a phase rotation, parameterised by the angle 1/(2^k)

tryQft :: Int -> QIO Int Source #

A test of the QFT unitary, over a quantum integer initialised to n.