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

QIO.QArith

Documentation

ifElseQ :: Qbit -> U -> U -> USource

ifQ :: Qbit -> U -> USource

carry :: Qbit -> Qbit -> Qbit -> Qbit -> USource

addBits :: [Qbit] -> [Qbit] -> Qbit -> USource

addBits' :: [Qbit] -> [Qbit] -> [Qbit] -> Qbit -> USource

adder :: QInt -> QInt -> Qbit -> USource

tadder :: (Int, (Int, Bool)) -> QIO (Int, (Int, Bool))Source

tRadder :: (Int, (Int, Bool)) -> QIO (Int, (Int, Bool))Source

tBiAdder :: (Int, (Int, Bool)) -> QIO (Int, (Int, Bool))Source

multMod :: Int -> Int -> QInt -> QInt -> USource

condMultMod :: Qbit -> Int -> Int -> QInt -> QInt -> USource

modExpStep :: Qbit -> Int -> Int -> QInt -> Int -> USource

modExp :: Int -> Int -> QInt -> QInt -> USource