Verdict usually under a minuteSubmit

Fewest qubit-days for Shor's algorithm on one secp256k1 key under a frozen cost model

Published resource estimates for breaking 256-bit elliptic-curve keys differ by orders of magnitude and use different hardware assumptions, and some are published without their circuits. A frozen, public cost model with a verifier that generates the logical circuit of every run gives numbers that anyone can reproduce and compare.

Leaderboard: secp256k1, main table (qubit-days) Hot

Result to beat · QArena baseline: 1,893,000,000,000 qubit-days
QArena's record 1,893,000,000,000 qubit-days by QArena's own run Ties it
#ParticipantScore (qubit-days)vs QArena baselineSubmission
1qarena-baseline (QArena's run)(QArena) Baseline1,893,000,000,000#2
2yicheng1,893,000,000,000#3

Baseline: QArena's own run: 1,893,000,000,000 qubit-days (nothing published fits this instance)

Full leaderboard

Instance: Ranking

Overview

Each instance's leaderboard updates as soon as the verifier accepts a submission.
Every submission is public. The file lists your component choices, program parameters and schedule, so anyone can recompute the estimate exactly. It contains no circuit: the verifier generates the program's logical circuit from the house templates (arithmetic, table lookups and the semiclassical inverse QFT with its conditioned rotation words), the CCZ and the 15-to-1 code enter as accepted records of other boards with their verified counts, and the factories and the classical work are priced in closed form.

Task

Estimate the cost of recovering one previously unknown secp256k1 private key k from its public key Q = [k]G with Shor's algorithm on a fault-tolerant surface-code machine, from initialization to the classical check kG = Q. The curve, the generator G and the prime group order N are those of SEC 2, section 2.4.1. The physical cost model is frozen and public, every quantity is computed in exact rational arithmetic, and the circuit is never submitted: the verifier generates the logical circuit from fixed house templates, with the CCZ and the 15-to-1 code taken from accepted records of other boards. You choose the components, the program parameters and the schedule, and the verifier returns the expected wall time, the peak number of physical qubits and the failure bound.

The algorithm, shor-pe-v1, starts the group register at the point at infinity and performs phase estimation with m phase bits for translation by G, then for translation by Q, on the same register (the phase-estimation form of Shor's discrete-logarithm algorithm). Because N is known, both estimates only need to be within 1/(2N) of the eigenphases: rounding y N / 2m gives the eigenstate index j and j k mod N, and one modular division gives k. With the standard phase-estimation tail bound (Nielsen and Chuang, eq. 5.35) at accuracy 2−257 < 1/(2N), each estimate fails with probability at most δ = 1/(2(2m−257 − 2)), and the two are independent given j, so one run succeeds with probability at least s0 = (N−1)/N · (1 − δ)2 (0.99804 at m = 266, 0.99607 at m = 265). With R independent runs fixed in advance, the algorithm fails with probability at most (1 − s0)R.

On the split table, ekera-split-v1 runs Ekera's tradeoff variant. With split factor s, each run computes [a]G − [b]Q for a of 256 + ς bits and b of ℓ = 256/s bits, applies the semiclassical inverse QFT to both registers and measures them, giving a pair (j, j′); n runs fixed in advance give n pairs, from which a lattice reduction recovers the key k. The instance file's catalogue freezes, per split factor, ς, ℓ, n, the success estimate and the operation count of the reconstruction, and a file must run exactly n times. The only row, s = 8 (ℓ = 32, ς = 16, n = 12), comes from QArena's simulation of the algorithm (see "What is not final in this version"), so split files are labelled heuristic.

Submission file

One JSON object. Integers exclude booleans, unknown keys are rejected, and IDs are 1 to 64 characters from A-Z a-z 0-9 - _ ..

{"instance": "ecdlp-secp256k1-v1",
 "components": [Component, ...],
 "program": {"template": "shor-pe-v1", "window": w, "phase_bits": m, "runs": R,
             "bindings": {"point": ID, "qft": ID, "factory": ID}}
          | {"template": "ekera-split-v1", "window": w, "split": s, "runs": R, "bindings": {...}},   (split table only)
 "schedule": {"policy": "barrier-v1",
              "runs": [{"block": "compact" | "intermediate" | "fast", "distance": d, "levels": 1 | 2, "factories": F}, ...]}}

Component := {"id": ID, "record": [BOARD, CELL, SUBMISSION]}
           | {"id": ID, "house": TEMPLATE, "args": [integer, ...], "use": [ID, ...]}

The window w is 1 to 8, m is 259 to 513 and R is 1 to 128. There is exactly one schedule entry per run; d is odd, 3 ≤ d ≤ 99, and F is 1 to 16. A record names an accepted file of another board: BOARD is one of ecdlp, secp, constadd, qrom, mcz and distill, CELL its instance and SUBMISSION its number on that problem (the #57 its page shows), or "baseline" for the QArena baseline of that cell. Only records listed in the instance file's registry can be used; the registry carries each record's verification contract (its cell, score and the parts of the verifier's detail this board uses), so a record brings its checked behaviour, not just its score. Every component must be used by the program, directly or through other components. The registry starts with the QArena baselines of four cells (mcz3-a1, the 15-to-1 cell tri96-k1-p1000, and two adapter fixtures, add20-d6b5b-a3 and pair12-b32-small, whose sizes and tables do not transfer to 256 bits and which no template accepts); accepted submissions of the mcz3-a1 and 15-to-1 cells are added to it on the server. Files are limited to 4 MiB and 10,000 components, and component references may nest at most 64 deep.

Every use list must be exactly this list of component kinds, in this order (n = 256 is the bit length of the field prime p, and every field argument must equal p):

TemplateargsuseConstruction
ccx[][record mcz/mcz3-a1]H on the target, the record's CCZ, H on the target
distill15[][record distill]the record must have the 15-to-1 weight enumerators; it defines the factory polynomials
ripple[k][ccx]b ← a + b mod 2k, Cuccaro MAJ/UMA cells, one carry wire, 2(k−1) ccx
compare[k][ccx]t ← t ⊕ [a < b] from the carry of a + ¬b + 1, 2k ccx
controlled[k][ccx]t ← t ⊕ (c AND a) bitwise, k ccx (a controlled load; applied twice it erases)
modadd[p][ripple(n+1), compare(n)]b ← a + b mod p: add, subtract p, copy the sign, add p back, clear the sign by comparing with a; 8n ccx
lookup, unlookup[w, b][ccx]table load by per-address AND chains; erasure by X measurement of every target bit and a classically conditioned phase fix-up
mul[p, 1][modadd(p), controlled(n), ripple(n+1)]c = a b mod p into zeros, Horner over the bits of a: modular doubling and a controlled modular addition; 14n2 − 4n ccx
inverse[p][mul(p, 1)]xp−2 by left-to-right binary exponentiation (503 steps; 0 maps to 0), two-level checkpoints of 23 steps, then the forward phase reversed
point-complete[p, w][lookup(w, 2n+1), unlookup(w, 2n+1), inverse(p), mul(p, 1), modadd(p), controlled(n), ccx]acc ← acc + table[sel] in affine coordinates with an infinity flag; infinity, doubling and inverse points are handled coherently (no exceptional failure mass)
qft[m][]the semiclassical inverse QFT with measurement of an exponent register: per control qubit, the rotations Rk† conditioned on the register's earlier outcomes (k = 2 to 32, words from the instance's catalogue), H, MZ and a reset; m is the length of the first exponent register (m for shor-pe-v1, 256 + ς for ekera-split-v1)

Records enter only under ccx and distill15. A run applies 2⌈m/w⌉ lookup/add/unlookup groups (the final window of each phase is shortened by leaving its unused control qubits at |0⟩): translations by multiples of 2jwG, then of 2jwQ. After each group the window's control qubits are measured from the highest power down by the steps of the semiclassical inverse QFT (Griffiths and Niu): the control of power 2e receives Rd+1† = diag(1, e−2πi/2d+1) for every control d places above it in the same register whose outcome was 1 (d ≤ 31), then H, MZ and a reset. The outcomes of a register form its estimate y, the first outcome being the lowest bit, and y/2m approximates its phase.

Validation

The verifier parses the file strictly, resolves every record in the registry, enforces the arity table, and builds every component with its deterministic house constructor. A constructor emits a compressed trace: gates (X, Z, H, S, SDG, T, TDG, CX, CZ, MX, MZ, RESET), calls of other components with explicit wire bindings, repetitions, table fan-outs, measurement-conditioned Clifford corrections and measurement-conditioned calls (the QFT rotations, charged as if they always run). Every trace is checked structurally (wires in range, no gate repeats a wire, a call binds each port of the callee's width and no two ports share a wire, corrections follow their measurements, and nothing containing a measurement is ever reversed to make an inverse). Counts add under sequence and multiply under repetition: M is the number of T states (T and TDG), K the number of other timed operations (every MX, MZ and RESET, and in an accepted mcz record every MX, MZ and RZ, the reset of that board; Clifford gates and corrections are free frame updates), and the peak logical width n of a component is its ports plus its workspace plus the largest extra width of any call it makes.

The constructors were checked by simulation on small primes: ripple, compare and controlled exhaustively for widths 1 to 5; modadd, its inverse, modular doubling, negation and multiplication exhaustively for p up to 31 (multiplication up to 17); Fermat inversion exhaustively for p up to 23; and complete point addition on y2 = x3 + 7 over two small prime fields whose curves have a prime number of points, for every case including infinity on either side, doubling and inverse points, with windows 1 and 2. Every simulated call returns all of its workspace to zero. The QFT component was simulated as a state vector over every measurement branch, for registers of 1 to 6 qubits, on every Fourier basis state and on random states. With truncations 1 to 4 its outcome distribution equals that of Coppersmith's approximate QFT (the inverse QFT followed by measurement) to 10−9; with the catalogue's words it differs from the exact QFT's by at most the error the reliability bound charges for the register. A complete run of shor-pe-v1, generated by the verifier's own run constructor with the real point-addition template, was simulated on y2 = x3 + 7 over F13 (7 points) with Q = 3G, phase registers of 2 to 4 bits and windows 1 and 2, following every branch of the phase measurements and a sampled record of every measured erasure: its distribution of (y1, y2) equals Shor's discrete-log distribution to 10−14.

Cost model

Physical error and raw T-state error are e = 1/1000. A tile holds one logical qubit and costs 2d2 physical qubits; a surgery step takes d + 10 code cycles of 1 µs; the logical error per tile per cycle is pL(d) = (1/10)(100e)(d+1)/2. The data block of a run with peak width n has B tiles and takes β steps per timed operation (Litinski's blocks; the rounding is a house rule): compact ⌈3n/2⌉ + 3 and 9, intermediate 2n + 4 and 5, fast 2n + ⌈√(8n)⌉ + 1 and 1.

The factories run the accepted 15-to-1 protocol. With z = 1 − 2x, its acceptance is A(x) = (1 + 15z8)/16 and its output error q(x) = 1 − (1 + 15z7 + 15z8 + z15)/(32A(x)). A level-1 attempt block has 13 tiles and 13 steps, acceptance A(e) and output error q(e); a level-2 block has 178 tiles and 28 steps, acceptance A(e)15A(q(e)) and output error q(q(e)). Each lane retries until it accepts; for b lanes the expected number of rounds is Hb(α) = Σj=1..b (−1)j+1 C(b, j) / (1 − (1 − α)j).

The barrier-v1 schedule fills F buffers before every group of at most F T consumptions while the data waits, then executes the group serially. With h = ⌊M/F⌋ and u = M mod F, a run reserves S = B + F f tiles and takes U = 2 + β(M + K) + a(h HF(α) + Hu(α)) steps; its time is τ = U(d + 10) µs, its physical qubits Q = 2d2S and its expected exposure E[V] = S U (d + 10) tile-cycles.

Classical work uses fixed house implementations counted in 64-bit word operations at 108 per second: the lookup tables of multiples of 2jwG and 2jwQ, and per run the rounding of both estimates, one modular division and the check kG = Q (field multiplication 4W2 word operations with W = 4 words, addition 2W, Fermat inversion, affine point addition and doubling). Under ekera-split-v1 the per-run work is replaced by the row's reconstruction and checks. The house implementation (tools/ekera_split.py) computes z from every j exactly, embeds the target into the lattice of the n runs (Kannan's embedding, dimension n + 2) and reduces it with LLL; each candidate key is checked by kG = Q, and if none passes it decodes again once per run with that run left out. The row's count is a budget that the implementation enforces: the reconstruction stops without a key when its count would pass it, and the simulation behind the row counts such a campaign as a failure (3.6 × 108 word operations for the s = 8 row; the largest simulated reconstruction took 1.03 × 108). The row also charges two checks per decode, the most the reconstruction makes. The campaign is capped at 1013 operations and 64 GiB; its time is tcl.

A file is accepted only if (1 − s0)R + Σruns (E[V] pL(d) + M q) + 2 Σ m η ≤ 1/100, compared exactly. The last term charges every QFT bit of every run its rotation-word errors and its truncation error (2π/2t < (44/7)/2t); point additions are complete, so there is no exceptional-case term.

The QFT catalogue in the instance file holds one Clifford+T word for each conditioned rotation Rk = Rz(2π/2k), k = 4 to 32 (k = 2 and 3 are S and T, and rotations below 2π/232 are dropped: t = 32), with its T count (146 to 158) and the bound 2−36 on its distance to Rk up to a global phase. The words come from Selinger's algorithm (a grid search, then exact synthesis), which needs about 4 log2(1/ε) + 11 T states at error ε; they are not the shortest words possible. The test suite multiplies every word out exactly in Q(√2, i) and bounds minφ ‖eiφW − R‖ = (2 − |tr(R†W)|)1/2 using rational enclosures of √2, π, cos and sin. The inverse QFT uses the adjoint words, which have the same T counts and errors. A conditioned rotation is charged as if it runs, whatever the earlier outcomes: a control with j earlier controls in its register is charged one TDG once j ≥ 2 and the words of R4 to Rmin(j+1, 32), which from j = 31 on is 4,459 T states. Over both registers of a baseline run this comes to 2.2 × 106 T states, below 10−6 of the run's T count, and 2.0 × 10−6 of the failure bound.

Scoring

Qpeak is the largest Q of any run, T = tcl + Σ τ the expected wall time, C = Qpeak T / 86,400 s the qubit-days and Lq = max Q τ / 86,400 s the largest single run. The main table (ecdlp-secp256k1-v1) ranks C, then T, then Qpeak. The split table (ecdlp-secp256k1-split-v1) ranks Lq + Qpeak tcl / 86,400 s, then the main order. The exact values have thousands of digits, so every rational score is reported as its exact ceiling on multiples of 10−6 (the failure bound on multiples of 10−12); the acceptance decision uses the exact values.

What is not final in this version

  • Nothing proves the split row's success estimate; it comes from a simulation, so split files are labelled heuristic. QArena derived the output distribution of one run of the split algorithm, exact except for one approximation (the residues with an extra term, a fraction below 2−111 of them for secp256k1), checked it against the brute-force quantum distribution on small cyclic groups (total variation 1.3 × 10−4 at order 8,191, the largest order checked, falling with that fraction), sampled 12,000 complete 12-run campaigns on the secp256k1 order with random keys and decoded them with the house reconstruction within the row's budget: every key was recovered (15 needed a run left out). The frozen success, 0.99961, is the 99 % lower confidence bound (Clopper-Pearson) rounded down. The published row (Ekera and Gartner, arXiv:2405.14381, Table 9: s = 8, ς = 9, 11 runs, success at least 99 % without enumeration) is not frozen: its success alone uses the whole failure budget. Simulated the same way, that row with only the first decode recovers 1,978 of 2,000 keys (98.9 %), and 99.5 % of the campaigns in which every run has Ekera and Gartner's offset η = 0 (their run offset, not the QFT error above), which is the case the published figure covers.
  • No template accepts a sampled record (secp); a row with one would be labelled asserted and is not ranked.

Baseline and reference scores

The QArena baseline uses the accepted mcz3-a1 CCZ (4 T states, one workspace qubit, one X measurement) and the accepted 15-to-1 code, window 8 and m = 265 phase bits in one run: 68 complete point additions, 3.93 × 1012 T states and 9.8 × 1011 other timed operations per run on 19,223 logical qubits. With the fast block, d = 41 and sixteen level-2 factories this needs 140,155,056 physical qubits for 13,509.9 days, 1.893 × 1012 qubit-days (1,893,483,714,564.74), at a failure bound of 0.0088. It is the best of a search over window 1 to 8, every phase length m from 259 to 300, the three blocks, one or two factory levels, one to sixteen factories and the smallest accepted distance. A shorter register raises the algorithm's own failure (0.0079 at m = 264, which needs d = 43 and 2.10 × 1012 qubit-days; no register below 264 fits the budget of 1/100 in one run) and a longer one only adds QFT work. Fermat inversion (about 1.8 × 109 ccx per inversion, eight per point addition) dominates; better inversion and multiplication enter as new house templates.

On the split table the baseline is an ekera-split-v1 campaign with the same components at window 8: 12 runs of 272 + 32 exponent bits (38 point additions each), 2.20 × 1012 T states per run on 19,223 logical qubits. With the fast block, d = 43 and sixteen level-2 factories it needs 154,162,224 physical qubits for 7,845.7 days per run. Its largest run, 1.21 × 1012 qubit-days, is 36 % below the one-run baseline above, while its total, 1.45 × 1013 qubit-days, is 7.7 times that baseline's. The failure bound is 0.0038, of which 0.00039 is the algorithm's.

The model reproduces Litinski's calibration under his own rules (p = 10−4, d cycles per step: 164 tiles at d = 13 give 55,432 qubits, 14,300 s and a logical bound of 0.0023452, and d = 11 gives 0.19844) and the spec's three re-costed payloads (compact block, four level-2 factories): 100 qubits and 108 T at d = 29, 1,454,930 qubits, 0.970929 days, 1,412,633.78 qubit-days; Babbush et al.'s 1,200 qubits and 90 million Toffolis at d = 31, 19,635,963.75 qubit-days; their 1,450 qubits and 70 million Toffolis at d = 31, 17,547,806.04 qubit-days (each Toffoli as four T states, one measurement and one extra qubit). These payloads are not certified campaigns and are not ranked.

Application

Published estimates for 256-bit elliptic-curve keys range from about 1.26 × 1011 Toffoli gates (Roetteler et al. 2017) to 70 to 90 million Toffolis (Babbush et al. 2026, whose circuits are withheld). Litinski (2023) needs 109 million Toffolis for a single key; his lower figures per key, down to about 50 million, hold only when many keys are computed by parallel instances, which this board does not credit: it scores one key with no amortization. The estimates differ in hardware assumptions, in what they count and in how they bound failure. This board fixes one model and one reliability rule, so that every number on it can be recomputed from its file.

Where verification runs

Verifications of this board run on the first lane of this list that is up and has room: the Mac mini, then CU Boulder's Alpine, then NCAR Derecho, then RunPod. A lane that is down, full or slow passes the file to the next one automatically, with the same verifier version; the limits of one verification are 120 s of CPU, 300 s of wall time and 1,024 MB of memory on the Mac mini, and 240 s of CPU, 480 s of wall time and 1,024 MB of memory on CU Boulder's Alpine, NCAR Derecho and RunPod (2 times the board's own CPU and wall time on the other lanes, because their processors are slower); the result goes to QArena only.

Current records

InstanceBaselineRecord (qubit-days) Reference scoreRecord holderStatus
secp256k1, main table (qubit-days) Hot
one key, certified house templates, shor-pe-v1 with 259 to 513 phase bits and 1 to 128 runs, failure at most 1/100, physical error 1/1000
1,893,000,000,000
QArena's run
1,893,000,000,000–
No certified end-to-end campaign has been published. The spec re-costs two published payloads under this model (unranked, payload only): 1,200 qubits and 90 million Toffolis give 19,635,963.75 qubit-days, 1,450 qubits and 70 million Toffolis give 17,547,806.04, Babbush et al., arXiv:2603.28846 (circuits not published)
qarena-baseline (QArena's run)(QArena)Baseline not beaten
secp256k1, split table (largest single run)
same model; ranks the largest single run plus the classical work; Ekera's split template is admitted only here (split factor 8: 12 runs of 272 + 32 exponent bits, success 0.99961 from QArena's simulation of 12,000 campaigns, so heuristic)
1,210,000,000,000
QArena's run
1,210,000,000,000–
No published split campaign under this model
qarena-baseline (QArena's run)(QArena)Baseline not beaten

The baseline of an instance is its published result where there is one (the hot instance's famous result, a cited published reference, or a published result or method on its leaderboard), else QArena's own run. Reference scores come from cited papers or derived constructions.

Record changes

No participant record yet

The first strict improvement on a ranked instance will appear here as a card, and a chart will follow the headline record over time.

Headline record now:

How to submit