|q⟩ Bad Qubits

intermediate · Programming · The Hidden Subgroup Problem (Intro)

The Hidden Subgroup Problem

Several of the most celebrated quantum speedups — Deutsch–Jozsa, Simon's algorithm, and Shor's period-finding — look quite different on the surface. The Hidden Subgroup Problem (HSP) is the single abstract framework that unifies all of them.

Groups and hiding functions

Recall from the previous lesson that a group (G,)(G, \cdot) is a set with an associative binary operation, an identity, and inverses. A subgroup HGH \leq G is a subset closed under the same operation.

The HSP asks: given a black-box function f:GSf : G \to S (where SS is just some set of labels), find the subgroup HGH \leq G such that ff is constant on every left coset of HH and distinct on different cosets.

More precisely:

f(g)=f(g)ggH.f(g) = f(g') \quad \Longleftrightarrow \quad g' \in gH.

In other words, ff partitions GG into left cosets and assigns the same output to all elements within a coset. The subgroup HH is "hidden" because you can only probe ff by evaluating it on group elements — you cannot inspect its structure directly.

The quantum strategy

The standard quantum approach to the HSP follows three steps.

Step 1 — Uniform superposition over GG.
Start from 0|0\rangle and apply a quantum Fourier transform (or Hadamard layer) over GG to prepare

1GgGg0.\frac{1}{\sqrt{|G|}} \sum_{g \in G} |g\rangle |0\rangle.

Step 2 — Query the oracle.
Apply the unitary Uf:g0gf(g)U_f : |g\rangle|0\rangle \mapsto |g\rangle|f(g)\rangle. After querying and discarding (measuring) the second register the first register collapses to a uniform superposition over a single (random) coset gHgH:

1HhHgh.\frac{1}{\sqrt{|H|}} \sum_{h \in H} |gh\rangle.

This coset state encodes HH but the specific coset representative gg is random and unknown.

Step 3 — Fourier sampling.
Apply the quantum Fourier transform over GG to the coset state and measure. The resulting classical sample is drawn from the set of irreducible representations of GG that contain HH in their kernel. Repeating this polynomially many times and running a classical post-processing step recovers HH.

Why this matters

The power of the HSP framework is that it explains why these algorithms are fast:

| Algorithm | Group GG | Hidden subgroup HH | |---|---|---| | Deutsch–Jozsa | Z2n\mathbb{Z}_2^n | {0}\{0\} or Z2n\mathbb{Z}_2^n | | Simon's algorithm | Z2n\mathbb{Z}_2^n | {0,s}\{0, s\} for hidden string ss | | Shor's order-finding | ZM\mathbb{Z}_M (MN2M \geq N^2, a power of 2) | rZM={0,r,2r,}r\mathbb{Z}_M = \{0, r, 2r, \ldots\} | | Graph isomorphism (open) | SnS_n (symmetric group) | stabilizer of a labeling |

The abelian cases (GG abelian) are solved efficiently by the quantum Fourier transform over GG. The non-abelian cases — most famously the symmetric group SnS_n, which would yield an efficient graph-isomorphism algorithm — remain open. The weak Fourier sampling approach that works for abelian groups provably fails to distinguish enough coset states in the non-abelian setting (Hallgren et al., 2003; Moore and Russell, 2007, cited in de Wolf).

Complexity

For the abelian HSP over a group of order NN, the quantum algorithm uses O(logN)O(\log N) oracle queries and O(poly(logN))O(\text{poly}(\log N)) additional gates, achieving an exponential improvement over the classical Ω(N)\Omega(\sqrt{N}) lower bound. This is because classical algorithms must sample many cosets at random before two share an element, a birthday-paradox argument requiring Ω(N/H)\Omega(\sqrt{N/|H|}) queries.

The key insight is that quantum superposition lets the algorithm query all group elements at once in step 1, and interference (via the Fourier transform in step 3) concentrates probability on representations that carry information about HH.

Summary

The hidden subgroup problem asks for the subgroup HH of a group GG hidden by a function that is constant on each coset of HH and distinct across cosets. The quantum recipe — superpose, query, Fourier sample — solves the abelian case in polynomial time and unifies Deutsch–Jozsa, Simon, and Shor into a single framework. Whether the same approach can crack the non-abelian case is one of the central open questions in quantum algorithms.

Sign in on the full site to ask questions and join the discussion.