Papers
Topics
Authors
Recent
Search
2000 character limit reached

Shor: Quantum Algorithms & Error Correction

Updated 5 July 2026
  • Shor is a versatile term denoting quantum algorithms, nine-qubit error-correcting codes, and syndrome extraction methods used in fault-tolerant quantum computation.
  • It reduces integer factoring to quantum order finding via phase estimation and the Quantum Fourier Transform, with detailed resource and noise sensitivity analyses.
  • Experimental and simulation studies demonstrate high-fidelity implementations in trapped-ion and semiconductor systems, highlighting practical challenges in scaling.

Shor most commonly denotes a family of constructions associated with Peter Shor: the quantum factoring algorithm introduced in 1994, the nine-qubit Shor quantum error-correcting code and related Shor-style syndrome-extraction methods, and several later mathematical and quantum-information notions that retain the name. In quantum computing, the dominant usage is Shor’s reduction of factoring to quantum order finding; in fault tolerance, “Shor” also denotes cat-state ancillas and stabilizer-measurement schemes that are explicitly distinct from the factoring algorithm (Monz et al., 2015, Huang et al., 2023).

1. Principal meanings of “Shor”

The term is not univocal. In current research usage, it spans algorithmic, coding-theoretic, and combinatorial objects. The most common ambiguity is between Shor’s algorithm and Shor-style error correction; the latter concerns syndrome extraction with ancillas and does not refer to factoring (Huang et al., 2023). Other established uses include the Ramanujan–Shor polynomials and the Shor–Laflamme distribution (Chen et al., 2018, Miller et al., 2022).

Usage Domain Core content
Shor’s algorithm Quantum algorithms Integer factoring via quantum order finding
Shor code Quantum error correction Nine-qubit code and its generalizations
Shor-style syndrome extraction Fault tolerance Per-stabilizer ancilla-based measurement
Ramanujan–Shor polynomials Combinatorics Rooted trees, improper edges, Cayley refinements
Shor–Laflamme distributions Quantum information theory Local-unitary invariants for kk-body correlations

This breadth matters because different subfields use “Shor” almost as a technical shorthand. A statement about “Shor correction,” “Shor states,” or “Shor polynomials” may have no connection to factoring, even though all derive from the same name.

2. Shor’s factoring algorithm

Shor’s algorithm factors a composite integer NN by reducing the problem to quantum order finding. For a random integer aa with $1gcd(a,N)=1\gcd(a,N)=1, the order rr of aa modulo NN is the smallest positive integer satisfying ar1(modN)a^r \equiv 1 \pmod N. When rr is even and NN0, nontrivial factors are recovered classically as NN1 (Yang et al., 30 Aug 2025).

The quantum subroutine prepares a uniform superposition over exponents NN2, computes NN3 in a second register, and then applies quantum phase estimation using the Quantum Fourier Transform. In the resource-efficient Beauregard architecture, factoring an NN4-bit integer uses NN5 logical qubits. The modular-exponentiation core is built from a QFT-based adder NN6, its inverse NN7, modular addition modulo NN8, and controlled modular multiplication NN9; asymptotically, modular exponentiation has aa0 gate complexity (Yang et al., 30 Aug 2025).

For the specific implementation analyzed in recent noise work, the exact gate-count polynomials of modular exponentiation are given as:

  • controlled-phase gates aa1: aa2
  • CNOT: aa3
  • Hadamards aa4: aa5
  • single-qubit phase aa6: aa7
  • aa8 gates: aa9
  • CSWAP: $1Yang et al., 30 Aug 2025)

The classical post-processing is governed by continued fractions. A detailed treatment proves that if

$1

then $1Barzen et al., 2022).

3. Realizations, compilations, and large-instance workflows

Experimental and software work on Shor’s algorithm spans fully scalable demonstrations, compiled small-$1Monz et al., 2015). In that implementation, the measured probabilities of the order-assigning outputs for $1gcd(a,N)=1\gcd(a,N)=10, gcd(a,N)=1\gcd(a,N)=11, gcd(a,N)=1\gcd(a,N)=12, gcd(a,N)=1\gcd(a,N)=13, and gcd(a,N)=1\gcd(a,N)=14, with squared statistical overlaps gcd(a,N)=1\gcd(a,N)=15, gcd(a,N)=1\gcd(a,N)=16, gcd(a,N)=1\gcd(a,N)=17, gcd(a,N)=1\gcd(a,N)=18, and gcd(a,N)=1\gcd(a,N)=19 (Monz et al., 2015).

A separate semiconductor-nanostructure proposal implemented compiled instances for rr0 using surface-acoustic-wave-assisted electron transport. It reported fidelity rr1 for the rr2 case and rr3 for the rr4 case, with the expected rr5 success probability in both instances and near-maximal entanglement measures rr6 and rr7 (Buscemi, 2010).

At the software layer, hybrid compilation has become a distinct topic. A PennyLane/Catalyst implementation compiled Shor’s algorithm once per bit width of rr8, even when rr9-specific runtime optimizations were applied. Benchmarks up to aa0-bit aa1 found the pure compilation time to be constant and under aa2 seconds on a laptop computer, while the aa3-bit execution-time circuit was on the order of aa4 million 1- and 2-qubit gates (Ittah et al., 16 Apr 2025). The same work reported aa5 total gate-count reduction relative to an unoptimized version, averaged over aa6 random choices of aa7 for aa8 up to aa9 bits (Ittah et al., 16 Apr 2025).

A more controversial direction is highly constrained large-NN0 simulation. One implementation demonstrated factorization of a NN1-bit integer only under the restriction NN2, with NN3 and the order NN4 a power of two. In that setting, with NN5 shots on Qiskit Aer, the reported circuit generation time for the NN6-bit case was NN7 s and the execution time was NN8 s; for NN9 bits the execution time was ar1(modN)a^r \equiv 1 \pmod N0 s (Chen, 7 Apr 2025). This does not constitute a general-purpose RSA-scale factoring result; it is a specialized instance family.

4. Noise sensitivity and resource dynamics of Shor’s algorithm

A recent circuit-level study of Shor’s algorithm found a marked asymmetry between Pauli error types. Under a per-gate and per-idle Pauli noise model, the modular-exponentiation circuit is intrinsically far more tolerant to ar1(modN)a^r \equiv 1 \pmod N1 noise than to ar1(modN)a^r \equiv 1 \pmod N2 or ar1(modN)a^r \equiv 1 \pmod N3 noise. The explanation given is structural: the arithmetic is heavily built from controlled-phase gates and QFT blocks that are diagonal in the computational basis, so many single ar1(modN)a^r \equiv 1 \pmod N4 faults commute, cancel, or contribute only relative or global phases without changing the measured arithmetic output (Yang et al., 30 Aug 2025).

The scaling law is explicit. The total number of potential single-error positions in the modular-exponentiation circuit is

ar1(modN)a^r \equiv 1 \pmod N5

while the number of ar1(modN)a^r \equiv 1 \pmod N6-fault-tolerant positions is

ar1(modN)a^r \equiv 1 \pmod N7

Thus, ar1(modN)a^r \equiv 1 \pmod N8-tolerant positions grow with the same quartic order as the total number of possible single-error positions (Yang et al., 30 Aug 2025).

For ar1(modN)a^r \equiv 1 \pmod N9- to rr0-bit instances, the observed single-fault success rate under pure rr1 noise ranged from rr2 at rr3 to rr4 at rr5. By contrast, rr6- and rr7-fault tolerance was much smaller and instance dependent: at rr8 bits with rr9, the tolerant-position counts were NN00 for NN01 noise and NN02 for NN03 noise, corresponding to single-fault success rates NN04 and NN05; at NN06 bits with NN07, the corresponding counts were NN08 and NN09, with success rates NN10 and NN11 (Yang et al., 30 Aug 2025).

The same study extrapolated to cryptographic scale under biased noise NN12. For a NN13-bit instance and a modular-exponentiation success target NN14, the predicted minimum per-operation physical error rate was

NN15

The authors explicitly noted the assumptions behind this estimate: single-error injection only, no SPAM noise, no correlated or non-Markovian multi-qubit errors, no crosstalk or leakage, and no full error correction (Yang et al., 30 Aug 2025).

Resource-dynamics work complements the noise study by analyzing how coherence and entanglement change across the algorithm. For the evolved states in Shor’s algorithm, the overall effect was found to deplete coherence and produce entanglement. In the worked example NN16, NN17, the geometric coherence changed from NN18 after the initial superposition to NN19 after the inverse QFT, while geometric entanglement rose from NN20 initially to approximately NN21 by the end of the quantum part (Ye et al., 8 Apr 2026). This suggests that the algorithm’s speedup is accompanied by a structured conversion of superposition resource into multipartite correlation.

5. Shor code and its generalizations

In quantum error correction, the standard Shor code is the NN22 code formed by concatenating a NN23-qubit bit-flip repetition code with a NN24-qubit phase-flip repetition code. One experimental description gives the logical basis as

NN25

with six NN26-pair stabilizers and two weight-NN27 NN28-type stabilizers (Zhang et al., 2022).

The family extends naturally to NN29. A trapped-ion experiment prepared NN30-qubit GHZ states and synthetically constructed logical states of the NN31 Shor code up to NN32. In that system, the optimal size was NN33, with synthetic logical fidelities NN34 for NN35 and NN36 for NN37. The same work directly realized the NN38 code on nine qubits in a thirteen-ion chain, obtaining NN39 fidelity for NN40 and NN41 for NN42 (Nguyen et al., 2021).

The Shor-code idea has also been generalized far beyond the original NN43 setting. In all-photonic quantum repeaters, a generalized Shor code encodes each repeater-graph-state qubit into an NN44-photon parity block

NN45

For the experimentally realized NN46 encoded repeater graph state, the measured two-photon fidelities were NN47 with no loss, NN48 with one-photon loss in one logical block, and NN49 with two-photon loss, demonstrating the intended loss tolerance (Zhang et al., 2022).

Specialized noise-biased variants have also appeared. A family of high-rate amplitude-damping Shor codes with parameters NN50 was introduced to approximately correct up to NN51 amplitude-damping errors while maintaining immunity to collective coherent errors after concatenation with the dual-rail code (Chang et al., 2024). Another recent construction, the overlapped-repetition Shor code, improves the asymptotic rate fourfold relative to the standard Shor family and reduces the minimal-distance case from NN52 to NN53 (Chang, 23 Oct 2025).

6. Shor-style syndrome extraction and Shor states

“Shor-style” error correction refers to extracting each stabilizer generator’s eigenvalue using a dedicated ancilla, often a cat or GHZ state, so that a single ancilla fault does not spread into many data errors. In this sense, “Shor” is a method of fault-tolerant stabilizer measurement, not a factoring routine (Huang et al., 2023).

A trapped-ion experiment implementing the NN54 Bacon–Shor subsystem code compared Shor-style and Steane-style correction of bit-flip errors on a NN55-ion chain. The measured single-round logical error rates for Shor-style extraction were NN56 for a single-shot decoder, NN57 for an adaptive decoder I, and NN58 for an improved adaptive decoder II. The corresponding disturbance to the data when ancilla information was ignored was NN59. In the same platform, Steane-style extraction performed better, with logical error rates NN60 using NN61 and NN62 using NN63 (Huang et al., 2023).

The cost of Shor-style extraction has itself become a research target. For the NN64 extended Hamming code, optimized “short Shor-style syndrome sequences” achieved single-shot fault-tolerant error correction with NN65 measurements, compared with NN66 in a basic Shor scheme, and single-shot logical NN67 measurement combined with correction with NN68 measurements, compared with NN69 (Delfosse et al., 2020). A related adaptive protocol applicable to arbitrary stabilizer codes reduced the worst-case number of syndrome rounds from NN70 in the traditional scheme to at most NN71 for the strong fault-tolerant condition (Tansuwannont et al., 2022).

At the ancilla-construction level, Shor states themselves have been analyzed under biased noise. For NN72 Steane-code error correction in a nonequiprobable Pauli environment, the fidelity of a NN73-qubit Shor state was

  • NN74 with no verification,
  • NN75 with one verification,
  • NN76 with two verifications, showing that one verification step was optimal in the simulated setting (Weinstein et al., 2011). The same study found an inherent sensitivity to bit-flip errors and recommended repeating syndrome measurements until an all-zero readout was obtained twice in a row (Weinstein et al., 2011).

A broader architectural perspective was developed in a unifying construction “between Shor and Steane,” which introduced ancilla blocks interpolating between GHZ-based and encoded-ancilla extraction. Applied to the NN77 toric code, ancilla blocks of size NN78 yielded decoding in NN79 rounds of measurements (Huang et al., 2020). This suggests that “Shor” and “Steane” are better understood as endpoints of a syndrome-extraction design space than as disjoint methods.

7. Other mathematical uses of the name

Outside algorithmics and fault tolerance, “Shor” appears in several independent mathematical constructions. In enumerative combinatorics, Shor introduced the numbers NN80 associated with improper edges of rooted trees. They satisfy the recurrence

NN81

and also the relation

NN82

These objects were later identified with Ramanujan’s polynomials NN83, leading to the modern name Ramanujan–Shor polynomials and the Berndt–Evans–Wilson–Shor recursion (Chen et al., 2018).

In quantum information theory, the Shor–Laflamme distribution is a collection of local-unitary invariants quantifying NN84-body correlations. For an NN85-qubit state NN86,

NN87

For graph states, these quantities can be computed through a graph-coloring problem, and the mean and variance become simple functions of graph parameters. The same framework yields entanglement criteria and noise thresholds under local depolarizing channels (Miller et al., 2022).

These later usages reinforce the point that “Shor” is not a single object but a family of influential constructions across quantum computation, error correction, and combinatorics. The common thread is not topical unity but a lasting technical legacy: order finding in quantum algorithms, repetition-based structure in fault tolerance, and named recurrences or invariants in adjacent mathematical theories.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (18)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Shor.