Deutsch
Description
The Deustch Oracle algorithm
type Oracle = (QBit, QBit) -> QM (QBit, QBit) Source #
constant :: Oracle Source #
An oracle with a constant function
balanced :: Oracle Source #
An oracle with a balanced function
deutsch :: Oracle -> QM Bit Source #
Will return a 1 if balanced and 0 if constant.