A two-query network begins in , calls , flips the input with , calls again, and measures the answer wire in Z. The successive states are
The measured answer is zero for constant functions and one for balanced functions. The circuit is drawn in i.
Explicit oracle circuits follow from the form :
Thus the four circuits, respectively for the truth tables in i, are the identity on both wires; a NOT on the answer wire; a CNOT from input to answer; and a CNOT together with an answer NOT. The latter commute, so their order is immaterial. These circuits leave the input wire unchanged and XOR precisely into the answer.

Articles by others on the same topic (0)

There are currently no matching articles.