For an unknown nonzero period, a collision reveals the period . Birthday problem sampling finds one using queries with bounded error. A matching lower bound follows by choosing the period and output labels randomly: without a collision, queries rule out at most candidate periods. For , almost all periods remain consistent with the transcript. The exponential separation is in query complexity, compared with Simon's algorithm's linear quantum query count.
Expected query count for Simon sampling Created 2026-10-14 Updated 2026-11-05
With a nonzero hidden period, Simon's algorithm samples uniformly from its -dimensional orthogonal complement over the binary field. At rank , a new sample raises the rank with probability . Summing the geometric waiting times gives an expected queries. After samples, the probability of insufficient rank is less than , by a union bound over the nonzero linear functionals that could annihilate all samples.
Each run of Simon's algorithm uses one oracle call and returns one uniform sample from . Collect samples as rows of a matrix and solve over the two-element field using Gaussian elimination. Once the rows have matrix rank , the kernel is , so the promised nonzero vector is uniquely determined. Dependent samples, including , must be allowed for; exactly runs need not suffice.
For a rough quantitative estimate, put . When the existing samples span an -dimensional vector subspace of , the next sample increases the matrix rank with probability . The random spanning of a binary vector space estimate givesAlternatively, samples fail to span with probability less than : failure means some nonzero linear functional on the -dimensional space vanishes on every sample, and a union bound gives . ConsequentlyThe Gaussian elimination requires only a polynomial amount of classical work, for example bit operations for samples. The degenerate case needs no calls because the promise already specifies .
Classically, distinct inputs with equal function values reveal . Uniformly sampling distinct inputs finds such a function collision after roughly calls, by the birthday square-root scale. For sampled inputs, the expected number of colliding pairs is . The usual randomized classical query complexity of Simon's problem is therefore exponential in , on the scaleA straightforward exhaustive classical search instead uses calls. The square-root collision estimate is the sharper classical comparison; the quantum advantage concerns access to the promised quantum oracle, rather than an explicit table of all function values.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 3 15C b iv Solution Created 2026-09-24 Updated 2026-10-03
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.
Prepare , query the oracle, and measure or discard the output register. For , the input register becomes the coset stateApply , the quantum Fourier transform over . The two amplitudes interfere destructively unless the binary inner product satisfiesand every vector in this orthogonal subspace is sampled uniformly. Repeat until independent equations have been collected, then use Gaussian elimination over to find their one-dimensional null space; its nonzero vector is . This is Simon's algorithm. It uses oracle queries with high probability and polynomial classical work. When , the function is injective and the samples eventually span all of , which distinguishes that case with arbitrarily high probability.
Quantum oracle 2026-10-25
A quantum oracle supplies coherent access to a function through a specified unitary operator. For a function with binary string output, the standard construction retains the input and adds the output into an answer quantum register by bitwise exclusive or. This operation is its own inverse, even when the function is not injective. A Boolean quantum oracle is the single-output-bit case; Simon's algorithm uses several answer qubits. Other encodings, such as a modular-addition quantum oracle or a phase gate encoding, require their own explicit query conventions.
Random spanning of a binary vector space Created 2026-10-25 Updated 2026-10-31
Take independent uniform samples from a -dimensional vector space over the two-element field. At current matrix rank , the existing span contains of the possible vectors, so a new sample increases the matrix rank with probability . The mean waiting time for that increase is by the geometric distribution. Adding the waiting times gives . For , the bound follows by separating and using for ; for , no samples are needed.
After samples, failure to span implies that some nonzero linear functional vanishes on all samples. Each fixed nonzero functional does so with probability ; the union bound over the possibilities gives failure less than . This provides both an expected sample count and a fixed-budget high-success version of Simon's algorithm.
Simon coset state 2026-10-25
In Simon's algorithm, conditioning on a function value leaves the first quantum register in an equal coherent sum of its two preimages. This is a pure state, even though discarding the second quantum register without retaining its outcome generally leaves a mixed state. The label depends on the measured value; the period does not.