The promise is Simon's problem. If , then implies , so is an injective function. If , then each value has exactly the two preimages and ; thus is two-to-one and is constant on the two-element cosets of .
Starting from , the first layer of Hadamard gates gives
The Boolean quantum oracle then gives
Using the Walsh-Hadamard transform identity
the final state is
When , the function is injective, so the states are distinct computational basis states and hence form an orthonormal set. Therefore, for arbitrary signs ,
In the final state, the second-register amplitude vector associated with outcome is
For injective , part (ii) says that its squared norm is . By the Born rule for a product-basis measurement, every is therefore observed with probability : the input register is uniformly distributed.
Now let and choose one representative from each pair . Since and
the unnormalized second-register amplitude for outcome is
If , every paired contribution cancels, so the probability is zero. If , every coefficient has magnitude two. The distinct pair values give orthogonal states, so the squared norm before the overall factor is . The probability is therefore
Thus one run samples uniformly from the strings in the orthogonal complement over the binary field , which is the sampling step in Simon's algorithm.

Articles by others on the same topic (0)

There are currently no matching articles.