Use the available unitaries to prepare
in the first register and
in the answer qubit. The quantum phase kickback identity gives
Choose a unitary with , apply to the first register, and measure it. Its amplitude at is
This equals or for a constant string and zero for a balanced string. Thus outcome means constant, while every other outcome means balanced, with certainty after one oracle query. This is the Deutsch-Jozsa test with an arbitrary uniform-state unitary.
With the restricted operations, begin in and apply to the first register:
Now apply
For every basis state this compute-phase-uncompute construction acts as
The first register is therefore the same phase state used in part (a). Apply and measure. Again, outcome occurs with probability one for a constant string and probability zero for a balanced string. The construction uses exactly two queries to and only the permitted operations.

Articles by others on the same topic (0)

There are currently no matching articles.