QIO-1.0: The Quantum IO Monad is a library for defining quantum computations in Haskell
QIO.QioSyn
type CC = Complex RRSource
amp :: CC -> RRSource
type RR = FloatSource
newtype Qbit Source
Constructors
Instances
type Rotation = (Bool, Bool) -> CCSource
data U Source
data QIO a Source
rot :: Qbit -> Rotation -> USource
swap :: Qbit -> Qbit -> USource
cond :: Qbit -> (Bool -> U) -> USource
ulet :: Bool -> (Qbit -> U) -> USource
urev :: U -> USource
unot :: Qbit -> USource
uhad :: Qbit -> USource
uphase :: Qbit -> RR -> USource
mkQbit :: Bool -> QIO QbitSource
applyU :: U -> QIO ()Source
measQbit :: Qbit -> QIO BoolSource
rid :: RotationSource
rnot :: RotationSource
rhad :: RotationSource
rphase :: RR -> RotationSource
rrev :: Rotation -> RotationSource
show' :: U -> Int -> Int -> StringSource
spaces :: Int -> StringSource