Discrete-logarithm Fourier sampling 2026-10-06
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 .
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 53 2 3 Solution 2026-10-14
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.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 53 2 4 Solution 2026-10-14
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.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 324 1 b iii Solution Created 2026-10-03 Updated 2026-10-06
Apply the same positive-exponent quantum Fourier transform to each of the two quantum registers. The amplitude at of the coset state isThe finite geometric series is when and zero otherwise. ThereforeThere are allowed pairs, with following the uniform distribution on a finite set. The factor changes the probability amplitudes by phases depending on the output label , but has no effect on their probabilities. Using an inverse rather than forward quantum Fourier transform on both quantum registers gives the same support relation.
A modular inverse of exists precisely when . In that case the discrete logarithm isIt cannot generally be determined from every allowed pair. Put . The supported linear congruence has solutions modulo , and determines only modulo ; gives no information when . For instance and are compatible with both and . One may verify a candidate by modular exponentiation, checking . Repeated discrete-logarithm Fourier sampling finds an invertible with per-trial probability , which has the same totient lower bound from the Mertens product as before. When , the group is trivial and are determined without Fourier samples.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 324 1 b ii Solution Created 2026-10-03 Updated 2026-10-06
Let be the unique discrete logarithm of the measured value , so that . The fiber calculation gives exactly the pairs with , where . The initial amplitude of each pair is , so the Born rule assigns probability to this outcome.
After projective measurement and normalization, the first two quantum registers are in the coset stateThe measured third quantum register factors as and may be omitted. There is no loss of coherence between the terms in this post-measurement state: the quantum measurement reveals the common function value, not an individual input pair.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 324 1 b i Solution Created 2026-10-03 Updated 2026-10-06
First require . A discrete logarithm to a generator of a group of exists only for nonzero ; the printed membership inadvertently also permits zero, for which is undefined. Zero can be rejected before any quantum circuit.
Put and write . Since is a generator of a group of order , the map is a bijection from to the multiplicative group of a finite field. Hence every nonzero has a unique with . Equality of powers of is equality of their exponents modulo , givingThe fiber over is an affine coset of the subgroup , and contains exactly pairs. This identifies the hidden subgroup problem underlying discrete-logarithm Fourier sampling; knowing numerically is not needed to construct the coset state.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 324 1 a iii Solution Created 2026-10-03 Updated 2026-10-05
Measure the coset state in the common eigenbasis of the group shift operators. Its overlap isThe character-sum cancellation lemma makes this sum when is trivial on , and zero otherwise. Hence, with the annihilator of a subgroup of a finite abelian group,Since , this is the uniform distribution on a finite set . The factor has modulus one, so the distribution is independent of . This is abelian hidden-subgroup Fourier sampling.
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.
Periodic coset state 2026-10-03
For , a periodic coset state in the computational basis of isIt is the coset state of the subgroup translated by .
Simon's algorithm Created 2026-09-28 Updated 2026-10-14
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.