For a generator of a group of order and , the function hides the subgroup of . Each fiber is an affine coset . Measuring the function register gives its normalized coset state. Applying the positive-exponent quantum Fourier transform to both input registers gives amplitudeThe finite geometric series vanishes off and equals on that line. Thus each allowed output pair has probability , independently of the coset offset. If , a modular inverse recovers .
Let . A supported sample guarantees . Dividing its linear congruence by gives an invertible coefficient modulo and a unique residue there. The compatible discrete logarithms modulo are for . Only determines the discrete logarithm from the sample alone; conveys no information for .
For , a periodic coset state in the computational basis of isIt is the coset state of the subgroup translated by .
For a finite abelian group , defines the regular representation on the basis labelled by . The linear characters give the common eigenbasisCharacter orthogonality proves orthonormality, and changing variables by the translation in a group proves the eigenvalue formula.
Simon's problem asks for the hidden string promised by exactly when . It is the hidden subgroup problem on with hidden subgroup .
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.
Simon's algorithm prepares hidden-subgroup coset states, applies the quantum Fourier transform over , and samples vectors satisfying over . Repeated samples and Gaussian elimination recover with oracle queries and polynomial computation.
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.
If the hidden string is zero, one oracle-Hadamard run samples every with probability . If the hidden string is nonzero, it samples every satisfying with probability and every other string with probability zero. Pairing with makes the forbidden amplitudes cancel.