■ Change #557 · wiki.edited
Shor's algorithm and the hidden subgroup problem: Normalize Markdown to canonical form
body
## From factoring to period findingFactoring an $n$-bit odd integer $N$ with at least two distinct prime factors reduces, with a randomised classical argument, to **order finding**: pick a random $a$ coprime to $N$ and find the smallest $r>0$ with $a^r\equiv 1 \pmod N$. If $r$ is even and $a^{r/2}\not\equiv -1 \pmod N$, then $\gcd(a^{r/2}-1,N)$ is a nontrivial factor, which happens for at least half of the choices of $a$.The quantum part finds $r$. A register is put in a uniform superposition over exponents $x$, the value $a^x \bmod N$ is computed into a second register, and the quantum Fourier transform (QFT) is applied to the first register. Measuring gives a value close to a multiple of $2^m/r$, and the continued-fraction expansion recovers $r$ with good probability. The cost is dominated by modular exponentiation: $O(n^3)$ gates with schoolbook arithmetic and $O(n^2\log n\log\log n)$ with fast multiplication. Discrete logarithms are a two-dimensional period-finding problem and fall to the same method, including in elliptic-curve groups.## The hidden subgroup problem− A function $f$ on a group $G$ *hides* a subgroup $H$ if it is constant on the cosets of $H$ and takes different values on different cosets; the task is to find $H$. For abelian groups this is solved efficiently by Fourier sampling (Kitaev's abelian stabilizer algorithm, 1995), with Simon's problem, factoring and discrete logarithms as special cases. Ettinger, Høyer and Knill (2004) showed that polynomially many queries determine $H$ for every finite group, but extracting $H$ from those queries may take exponential time.+ A function $f$ on a group $G$ _hides_ a subgroup $H$ if it is constant on the cosets of $H$ and takes different values on different cosets; the task is to find $H$. For abelian groups this is solved efficiently by Fourier sampling (Kitaev's abelian stabilizer algorithm, 1995), with Simon's problem, factoring and discrete logarithms as special cases. Ettinger, Høyer and Knill (2004) showed that polynomially many queries determine $H$ for every finite group, but extracting $H$ from those queries may take exponential time.The open cases are non-abelian. The **dihedral** group is linked to lattices: Regev (2002) showed that an algorithm for the dihedral coset problem that tolerates faulty samples gives a quantum algorithm for the unique shortest vector problem, and Kuperberg (2003) gave a subexponential algorithm with running time $2^{O(\sqrt{\log N})}$. The **symmetric** group would give graph isomorphism, but Moore, Russell and Schulman (2005) showed that strong Fourier sampling on coset states cannot distinguish the relevant subgroups, and Babai's quasipolynomial classical algorithm (2015) reduced the stakes. Childs and van Dam (2010) review the area.## Resource estimatesExperiments so far have factored only small numbers, often with circuits simplified using knowledge of the answer (Smolin, Smith and Vargo, 2013). For RSA-2048, Gidney and Ekerå (2019) estimated 20 million noisy qubits for 8 hours; Gidney (2025) lowered this to under a million qubits for under a week, assuming a 0.1% gate error rate, a nearest-neighbour square grid, a 1 microsecond surface-code cycle and a 10 microsecond reaction time. Preprints in 2026 go further by replacing the surface code with high-rate codes: Webster et al. (the "Pinnacle" architecture, qLDPC codes) estimate fewer than 100,000 physical qubits under the same error rate and timing, and Cain et al. argue that as few as 10,000 reconfigurable neutral-atom qubits could run Shor's algorithm at cryptographic scale, with RSA-2048 taking one to two orders of magnitude longer than a few-day P-256 discrete logarithm on 26,000 qubits. Regev (2023) gave a different factoring circuit with $\tilde O(n^{3/2})$ gates run about $\sqrt n$ times, under a number-theoretic heuristic. All of these are paper estimates for machines that do not exist.## LimitsShor's algorithm does not break symmetric ciphers or hash functions (Grover search gives only a quadratic speedup against them) and gives no known speedup for NP-complete problems. Lattice-based schemes such as ML-KEM (FIPS 203, 2024) were standardised because no efficient quantum algorithm for their underlying problems is known; the dihedral hidden subgroup problem is the main known quantum route towards them.
hash 96b9a32ddcfcd2fca666eb21af7e1cc992eaa62785dba2cc34a9265bf6affd62
previous 1d22bf57a5517fecb03dcf8ac4c5d7307281d9f5236b54d34a62038e696f420d