Pith. Sign in

REVIEW

Shared Lookups and Lazy Residues: Fewer Toffoli Gates for Factoring RSA-2048

Quantum Physics · Submitted 6 Nov 2026 · 15 references

Pith's verdict: A well-executed, technically sound paper that delivers genuine Toffoli reductions for RSA-2048 factoring circuits, with careful benchmarking and transparent limitations.

T0 · AI review

How this review was made: An AI referee (deepseek/deepseek-v4-flash) read the paper on November 9, 2026 and answered a fixed list of questions about it. T0 is the starting level every paper gets. The levels describe how deeply Pith has checked the paper, never the authors.

  1. T0 AI review An AI read the paper and answered a fixed list of questions.
  2. T1 Audit Automatic checks that the references and files the paper relies on exist and match.
  3. T2 Compute The paper's code or calculations re-run with the same results.
  4. T3 Formal statement The claims written out in a formal math language a computer can read.
  5. T4 Proof Those claims proved, and the proof checked by computer.

How Pith checks papers →

· 7 minor · Ask about this paper · The compiled record · Read the full review →
Challenge this review Comment (0) Read on arXiv ↗
Cite ▾
arXiv ID2611.08907 (version 1)
Pith IDIQ3IMDER, Pith's permanent record of this paper and its review
CitationHoong Chuin LAU, Monit Sharma. "Shared Lookups and Lazy Residues: Fewer Toffoli Gates for Factoring RSA-2048." arXiv:2611.08907 (2026). https://pith.science/paper/IQ3IMDER
Cite this reviewBibTeX for Pith's review of this paper
Claim paper

Why Pith says this

Highlight any text to comment on it.

Referee report
The paper

The paper claims

Shared lookups and lazy residues reduce Toffoli gates for RSA-2048 factoring by up to 46% at 1,806 logical qubits compared to the best prior circuit at the same qubit budget.

The reading

This paper shows that three modifications to Gidney's quantum factoring circuit—sharing table lookups across primes, checkpointing intermediate residues, and deferring modular reduction—can significantly reduce the number of Toffoli gates needed to factor RSA-2048. At a given logical-qubit budget, the combined circuit uses 15% fewer Toffolis at 1,461 qubits and 46% fewer at 1,806 qubits than the best previous setting. The main source of savings is shared lookups, which serve multiple primes with one table access. The authors prove output preservation of the modified circuit and release an open benchmark to verify their counts. Their work suggests that logical improvements can complement architectural advances in quantum factoring.

What carries the argument

Shared table lookups across k primes, which exploit the fact that each prime's loop-1 table is addressed by the same exponent window; checkpoints that preserve intermediate residues r_{j-1} instead of deleting them; and lazy residues that replace modular reductions in loop 3 with plain integer addition followed by a single modular reduction. Shared lookups reduce the per-window Toffoli cost by a factor of k, while checkpoints and lazy residues cut the cleanup cost by avoiding recomputation and by removing borrow measurements and deferred comparisons.

Extended reading notes

Core claim

The reference circuit for RSA-2048 factoring spends 55% of its Toffoli gates on per-prime discrete-log lookups (loop 1) and 30% on residue uncomputation (loop-3 cleanup). The paper discovers that these two cost centers can be reduced simultaneously: (1) because every prime uses the same exponent-window address, one lookup can return the entries for k primes at once at no additional Toffoli cost; (2) by retaining intermediate residues rather than deleting them, the recomputation in cleanup is avoided; (3) with those residues kept, the intermediate sums no longer need to be canonical residues, so all modular reductions in loop 3 can be replaced with plain integer additions and a single final reduction. The result is a circuit family that, for a given logical-qubit budget, achieves fewer Toffoli gates than the strongest comparable reference setting.

Load-bearing premise

The sampled-prime projection assumes that the per-prime Toffoli cost is affine in the number of complete groups, and the paper validates this to within 1% error on a 330-bit instance, but systematic errors at full RSA-2048 scale or for untested parameter combinations are not ruled out.

Editorial extensions

If this is right

  • If these Toffoli reductions hold in practice, future quantum factoring resource estimates can be lowered without changing the underlying fault-tolerant architecture.
  • The open benchmark provides a platform for others to verify and further optimize these circuits, closing several cost-accounting loopholes in the reference simulator.
  • The techniques may be applicable to other quantum algorithms that use per-item lookups with shared addresses, such as certain verification routines or signal processing.
  • The architecture-dependent runtime analysis shows that the best circuit varies with hardware: wide shared lookups help on the surface code but slow down space-efficient neutral-atom processors, guiding hardware-specific optimizations.

Reading between the lines

Editorial extensions of the paper, not claims the author makes directly.

  • The paper's focus on logical gate counts means that architectural optimizations that exploit parallelism or reduced measurement overhead may compound the savings, potentially bringing physical resource estimates lower than the paper's projections.
  • The trimmed discrete-log register (L=29 instead of 32) is a direct consequence of bounding the sum of discrete logs; similar trimming may be possible in other windowed arithmetic routines where the accumulated sum has an upper bound.
  • The paper does not explore varying the Ekerå–Håstad parameter s in combination with their circuits; a systematic search might yield further gate reductions at the cost of more exponent qubits.
Original abstract

Gidney's 2025 construction for factoring RSA-2048 with few logical qubits spends most of its Toffoli gates on discrete-log table lookups and residue uncomputation. We reduce both costs. Shared lookups return entries for several primes of a residue number system at once because they have the same address. Retained intermediate residues remove recomputation during cleanup and enable lazy arithmetic with a single final modular reduction. We prove output preservation and estimate resources with an open benchmark built on the reference simulator. Against the best reference setting within the same logical-qubit budget, using the published model for the reference and benchmark counts for our circuits, we obtain $15\%$ fewer Toffolis at $1{,}461$ qubits ($5.08 \times 10^{9}$ per factoring) and $46\%$ fewer at $1{,}806$ qubits ($2.55 \times 10^{9}$). A matched ablation finds $28.8\%$ fewer Toffolis from three-prime sharing at fixed window and checkpoint settings. Architecture-specific timing determines how much becomes a runtime saving.

The compiled record

The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. Numbers in the tables are the authors', checked by code. No sentence in this record was written by a model.

Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-11-09: 1 request, 5,726 input tokens.

What the abstract itself states, as probabilities: claims first 0.04 · states limitation 0.90 · human participants 0.01 · controlled comparison 0.93 · randomized assignment 0.02 · states quantitative result 0.99 · compares with prior results 0.98 · mentions code or data availability 0.43.

The abstract, sentence by sentence

arXiv listing abstract v1. Results and the main claim are underlined; .

Gidney's 2025 construction for factoring RSA-2048 with few logical qubits spends most of its Toffoli gates on discrete-log table lookups and residue uncomputation. We reduce both costs. Shared lookups return entries for several primes of a residue number system at once because they have the same address. Retained intermediate residues remove recomputation during cleanup and enable lazy arithmetic with a single final modular reduction. We prove output preservation and estimate resources with an open benchmark built on the reference simulator. Against the best reference setting within the same logical-qubit budget, using the published model for the reference and benchmark counts for our circuits, we obtain $15\%$ fewer Toffolis at $1{,}461$ qubits ($5.08 \times 10^{9}$ per factoring) and $46\%$ fewer at $1{,}806$ qubits ($2.55 \times 10^{9}$). A matched ablation finds $28.8\%$ fewer Toffolis from three-prime sharing at fixed window and checkpoint settings. Architecture-specific timing determines how much becomes a runtime saving.

background contribution method result interpretation main claim

What the classifier reports for each sentence. The number is the probability it gave the label.
#sentencerolethe authors' own workstates the main conclusionstrength
s0 Gidney's 2025 construction for factoring RSA-2048 with few logical qubits spends most of its Toffoli gates on discrete-log table lookups and residue uncomputation. We reduce both costs. contribution 0.51 0.48 0.50 asserted 1.00
s1 Shared lookups return entries for several primes of a residue number system at once because they have the same address. method 0.93 0.70 0.05 asserted 1.00
s2 Retained intermediate residues remove recomputation during cleanup and enable lazy arithmetic with a single final modular reduction. method 0.88 0.80 0.10 asserted 1.00
s3 We prove output preservation and estimate resources with an open benchmark built on the reference simulator. method 0.77 0.93 0.04 asserted 0.99
s4 Against the best reference setting within the same logical-qubit budget, using the published model for the reference and benchmark counts for our circuits, we obtain $15\%$ fewer Toffolis at $1{,}461$ qubits ($5.08 \times 10^{9}$ per factoring) and $46\%$ fewer at $1{,}806$ qubits ($2.55 \times 10^{9}$). result 1.00 0.94 0.64 asserted 1.00
s5 A matched ablation finds $28.8\%$ fewer Toffolis from three-prime sharing at fixed window and checkpoint settings. result 1.00 0.95 0.10 asserted 1.00
s6 Architecture-specific timing determines how much becomes a runtime saving. limitation 0.63 0.43 0.04 asserted 0.98

What kind of paper the classifier reports this is: method or tool 0.99 · evidence from simulation or computation 1.00.

What was examined, and what was not

sources read
  • arXiv listing abstract v1
not examined
  • full text
  • figures and tables
  • references and citing sentences
  • relations to other papers
levels run
  • P abstract
not run
  • S sections
  • T body sentences
  • C citations
  • R cross-paper relations

Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. Every number in the measurements table is the authors', checked by code. Record as JSON

Figures
Figure 1. The per-prime computation in the reference circuit (grey) and where our changes act
Figure 2. Fewest Toffoli gates per RSA-2048 factoring for a given number of logical qubits.
Figure 3. Construction path relative to the benchmark-counted published configuration. Left:
Figure 4. Runtime per factoring relative to the reference circuit tuned for each architecture, that
Figure 5. All 52 evaluated configurations at RSA-2048 (48 transformed candidates and four

Figures reproduced from arXiv:2611.08907 by the authors.

References

Discussion

Disagree with the review, or know something it missed? Leave a comment, highlight any passage above to comment on it, or challenge this review formally.