Starting from , the first layer of Hadamard gates givesThe Boolean quantum oracle then givesUsing the Walsh-Hadamard transform identitythe 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 isFor 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 andthe unnormalized second-register amplitude for outcome isIf , 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 thereforeThus 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
There are currently no matching articles.