qfunc-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Deutsch

Description

The Deustch Oracle algorithm

Synopsis

Documentation

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.