DeutschJozsa
Description
The Deustch-Jozsa Oracle algorithm
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.