← Back to section · Quantum Computing

Resource Estimation: Translating a Quantum Algorithm into Qubit Counts and Hours

Complexity formulas will not tell you how many physical qubits it takes to break RSA-2048 or simulate a molecule, or how long it runs. Resource estimation converts algorithm, error correction, and hardware parameters item by item — the only checkable way to answer 'when does quantum advantage arrive?'

Published 22 November 2026 · 5 min read · PQ Frontier

Resource Estimation: Translating a Quantum Algorithm into Qubit Counts and Hours
AI-generated site artwork
Video explainer · Quantum Algorithms

The question complexity formulas cannot answer

“Shor’s algorithm runs in polynomial time” tells a decision-maker nothing actionable: how many quantum computers does breaking RSA-2048 actually take, and for how long? What kind of machine is needed to compute the ground-state energy of an industrial catalyst molecule? Answering such questions takes not complexity theory but a more engineering-minded craft: resource estimation. It translates abstract algorithms step by step into a hardware ledger, and it is the only language in which cryptographic migration timelines, hardware investment, and debates about “when quantum advantage arrives” can be checked item by item.

Three ledgers: from algorithm to physical qubits

Resource estimation usually proceeds in three conversions. The first is the algorithmic layer: write the algorithm as a logical circuit and count logical qubits and gates, paying special attention to the number and depth of T gates (and equivalent non-Clifford operations) — because in mainstream error-correction schemes, T gates are implemented via magic-state distillation, are the most expensive component, and often dominate the total cost. The second is the error-correction layer: given a physical gate error rate and a target overall failure probability, choose a code (such as the surface code) and a code distance, and work out how many physical qubits each logical qubit requires and how many physical cycles each logical operation takes. The third is the system layer: add the footprint of magic-state factories, routing, and classical control, multiply by physical gate speeds, and arrive at the total physical qubit count and total running time.

Each layer carries adjustable assumptions: a physical error rate of 10^-3 or 10^-4, the surface code or another code family, which generation of distillation protocol, and how much running time may be compressed (time and space trade against each other — more distillation factories in parallel shorten the run at the price of more qubits). This is why resource estimates always conclude “under assumptions X, the requirement is Y”: quoting the number without its assumptions is the most common source of misreading in this field.

A benchmark case: how the estimate for breaking RSA-2048 evolved

The Shor resource estimate for RSA-2048 is the craft’s most famous yardstick. Early estimates put the physical qubit count at near-astronomical levels; with steady improvements in modular-exponentiation circuits, windowed arithmetic, distillation protocols, and surface-code decoding, the estimates kept dropping. The well-known 2019 estimate by Gidney and Ekerå: under explicit assumptions including the surface code and a physical error rate of 10^-3, about 20 million physical qubits running for about 8 hours. Later work pushed the qubit count lower still, at the price of longer running times or stronger assumptions.

These numbers should be read on three levels. First, they are still orders of magnitude away from today’s hardware (thousands of physical qubits, with error rates near threshold) — a “cryptographically relevant quantum computer” is not an imminent event. Second, the speed at which estimates fall is itself information: algorithmic and error-correction progress keeps compressing the gap, and migration planning must assume estimates will keep moving — one reason NIST and similar bodies set migration timelines on a decade scale and stress cryptographic agility. Third, before comparing any two estimates, align their assumptions; otherwise an orders-of-magnitude difference may come from nothing more than a different error-rate value.

Beyond Shor: the ledger for chemistry and materials problems

The other main arena for resource estimation is quantum chemistry. Estimating the ground-state energy of a medium-sized molecule or a catalytic active center with phase-estimation algorithms follows the same three ledgers: the logical qubit count is set by the basis-set size, the T-gate count by the Hamiltonian simulation method (such as qubitization), and then everything is converted into physical resources. The typical conclusion of such estimates: industrially relevant problems (an accurate simulation of the FeMoco nitrogen-fixation catalyst, for instance) need upwards of millions of physical qubits and running times from days to weeks — far beyond current hardware, but lower than chemists first feared. These estimates directly shape the pace of investment from the pharmaceutical and materials industries: they turn “wait for the hardware to mature” into a set of thresholds that can be re-checked year by year.

From hand calculation to automated tools

Early resource estimates were done by hand — circuit counting and error-correction conversion by the researchers, with a single estimate often amounting to a paper. In recent years the craft has been tooling up: Microsoft’s Azure Quantum resource estimator, Google’s Qualtran, and other open frameworks let an algorithm be described at a high level, automatically perform the gate counting, convert to physical qubit counts and running times under chosen error-correction and hardware parameters, and scan result curves under different assumptions. Tooling matters beyond saving effort: it makes estimates reproducible and auditable, and turns “how does the number change with a different assumption?” into a routine sensitivity analysis. A modern resource estimate that does not state its tooling and parameter configuration is less checkable for it.

How to read any resource estimate

Faced with any claim that “task X needs N qubits,” four questions test its quality: What physical error rate is assumed? Which error-correcting code and code distance are used? What is the T-gate count (or equivalent non-Clifford resource), and how much area does the distillation scheme occupy? What are the total running time and the allowed failure probability? An estimate with explicit answers to all four can be compared and checked; missing any one of them, the number is merely advertising.

The deeper value of resource estimation is honesty: it turns the distance between the theoretical beauty of quantum algorithms and engineering reality into numbers that can be discussed item by item and updated year by year. As hardware error rates fall and algorithmic optimizations advance along two curves at once, the ledger will keep being rewritten — and the speed at which it is rewritten is itself one of the most reliable indicators of the field’s progress.

Tags: Resource estimationFault-tolerant quantum computingLogical qubitsSurface code