Skip to content
Advertisement

Tag: quantum-computing

Deutsch algorithm with NOT gate as oracle

I tried to implement Deutsch algorithm using qiskit. The following is a code. enter image description here I expected that the first classical bit is 0 (that is, the function corresponding to that oracle is a constant function). But, the output is the following. Why does the output imply the function is a balanced one? Answer Deutsch algorithm applies the

Advertisement