qfunc-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

DeutschJozsa

Description

The Deustch-Jozsa Oracle algorithm

Synopsis

Documentation

type Oracle = ([QBit], QBit) -> QM ([QBit], QBit) Source #

balanced :: Oracle Source #

An oracle with a balanced function

constant :: Oracle Source #

An oracle with a constant function

deutschJozsa :: Int -> Oracle -> QM [Bit] Source #

Will return a list of ones if balanced and list of zeros if constant. Size is the number of qubit inputs to the oracle.