Apply one Hadamard gate independently to each qubit. These gates act in parallel, so the quantum circuit implements with gates and depth one.
Parallel Hadamard gates implementing the binary Fourier transform
. Details. For a computational basis state, factorization givesThe exponent is the dot product over the finite field , because multiplying the separate signs adds their exponents modulo two. This is the Walsh-Hadamard transform, equivalently the quantum Fourier transform on the finite Abelian group .
In particular, the all-zero input becomes the uniform coherent superposition . It is a useful initial operation because an oracle can then act on all amplitudes in one call, and subsequent interference can reveal a global property. Measurement alone does not read all function values: the later interference step is what turns the preparation into an algorithmic advantage.
The first Hadamard transform prepares a uniform superposition in the first register while the second stays zero. The Boolean quantum oracle, now with an -bit output register and bitwise addition, therefore givesThis state is normalized because distinct labels are orthogonal, even when their oracle outputs coincide. Addition in the oracle is bitwise exclusive-or, making the oracle reversible; replacing the first register by would not define a unitary gate for a two-to-one function.
For the later recovery steps we use the intended nonzero hidden-period promise . Then two-to-one behavior and force each fibre to be exactly . The printed allowance does not explicitly exclude zero. If zero were allowed without a nonzero-period promise, the displayed identity would hold trivially for every function and would not specify Simon's problem. That distinction is addressed again in the query count.
Only strings in the image of can be observed. Choose one preimage of an observed string. Under the nonzero-period promise its two preimages are and . The Born rule gives probability to this second-register outcome, and conditional normalization leaves the first-register coset stateThe relative plus sign is retained: measuring the output register reveals which fibre was sampled but does not reveal which member of the fibre was present. Measuring its bits successively gives the same projection onto the observed full string as measuring the whole register at once.
Apply the Hadamard transform to the conditional coset state. The amplitude of a first-register output isWhen over , the two terms cancel exactly. When , their squared modulus is . ThusThere are orthogonal outputs, so these probabilities sum to one. The distribution is independent of the particular observed fibre. It is the Single-sample distribution in Simon's algorithm: each run gives a uniform random equation restricting the hidden period to the orthogonal complement over the binary field.
Each independent run uses one oracle call and gives a uniformly sampled equation . Collect linearly independent equations and use Gaussian elimination over . Their solution space has dimension one and consists of , so the promised nonzero solution identifies uniquely.
To quantify the expected query count for Simon sampling, write . If the existing equations have rank , their span contains of the possible samples. A fresh equation raises the rank with probability . The mean waiting time is the corresponding geometric distribution mean, givingThe last sum is less than : its first term is and its remaining terms are bounded by . Hence the expected number of quantum queries is . For a fixed high-confidence budget, use samples. Failure to span means that a nonzero linear functional on the -dimensional sampling space annihilates every sample. Each such functional has probability , so the union bound gives failure probability at most . Thus queries suffice for failure probability at most . For , the nonzero string is known already and no samples are needed.
Classically, a collision between distinct queried arguments immediately yields . Random queries produce this collision after order calls, by the birthday problem. Conversely, choose the nonzero period uniformly and label the fibres randomly. Before a collision, queries can exclude at most periods, their pairwise argument differences; every remaining period has the same no-collision transcript distribution. When , those exclusions occupy a vanishing fraction of the candidate periods, and neither collision discovery nor guessing a remaining period has a constant success probability. More quantitatively, conditioned on no previous collision, the next query tests at most of at least remaining periods; summing these conditional probabilities proves the same square-root lower bound. Therefore the optimal bounded-error classical query count is , exponentially larger in than the quantum count.
Articles by others on the same topic
There are currently no matching articles.
