Setup

Given an -bit Unitary Operator , can we know whether this function is constant with a single evaluation?

Solution

We can solve the above in 3 steps, represented by the circuit below

Proof of correctness

  • We have .

  • After applying to the 2nd Qubit we get

  • Applying the Hadamard gate to both matrices, we get the superposition , up to normalisation.

  • Applying we get .

  • After applying the Hadamard gates on each bit individually, we get the Quantum state , up to normalisation, where is the binary representation of , i.e. .

  • Complete the proof above.

More generically, there is always a way of building an Operator such that .