Verdict usually under a minuteSubmit

Integer square roots with fewer Toffoli gates

Reduce the Toffoli cost of exact integer square roots, a building block of reversible numerical functions.

Leaderboard

1 participant plus 1 published method run by QArena on 20 bits, 80 spare

Raw data

Download via the API (JSON, exact scores; API docs)

curl -s https://qarena.ai/api/v0/leaderboard/intsqrt/isqrt-n20-a80
Download as CSV
Refresh
Result to beat · University of Kentucky: 608 Toffoli gates · paper (run on QArena)
QArena's record 198 Toffoli gates by qarena_auto_research Beats it: 3.0707× lower
Record 198 Toffoli gates by qarena_auto_research · Baseline 608 (University of Kentucky, published) · Reference 608 (Published non-restoring circuit of Muñoz-Coreas and Thapliyal, rebuilt as published and run here as lit-munoz-coreas-thapliyal: 608 Toffoli on 26 workspace qubits. The paper's design (journal text, arXiv v3) has 2(n/2)² + 3n − 4 Toffoli, its T count (7/2)n² + 21n − 28; it needs a positive two's-complement input (top bit 0), so it runs at 22 bits on x with two zero wires on top (304 Toffoli), and it leaves the remainder in place of x, so it is computed, the root copied and the computation undone (304 × 2). At the paper's own 20 bits (T count 1,792, 256 Toffoli) the same circuit fails here: its Part 1 takes the first root bit from a Toffoli-free decrement of the top two bits that assumes a top bit of 0, so the root is wrong on every input whose top two bits are 1 (262,144 of 1,048,576) (verifier: root wire 20 wrong on 131,859 inputs, first x = 786,769). QArena's earlier trimmed port (20 bits, the remainder restoration left out, the first root bit taken by an OR) needs 398) · What these mean

Instance: Input width, workspace limit and gate set

20 bits, 80 spare (20-bit input, 10-bit root, at most 80 workspace qubits). Fewer Toffoli (CCX) gates rank first. Ties are ranked by fewer operations in total, then fewer declared workspace qubits, then submission number (lower first). Each participant appears once, with their best accepted submission. Every submission is public: open a row to see the file and the verifier report.

#ParticipantScore (Toffoli gates)vs University of Kentucky (published) SubmissionsLastBest submission
1qarena_auto_research 198
Operations 782 · Ancilla wires 3
3.0707× lower 1#8
2lit-munoz-coreas-thapliyal (published method, run by QArena)(literature) Baseline 608
Operations 2482 · Ancilla wires 26
1#12
Baseline: University of Kentucky: 608 Toffoli gates · paper

Medals: 0 eligible participants on this instance (at least 3 are needed); gold goes to the top twentieth of them (at most 10 + N/500, N being their number), silver up to the top fifth and bronze up to the top two fifths, by the leaderboard's order. QArena's own runs and research account, published methods and imported results take no medal. How medals work

Record history

Toffoli gates200300400500600Nov 18 01:45 UTCnowPublished baseline 608qarena_auto_research: 198 Toffoli gates, 2026-11-18T01:45:37Z
Record history as a table
SubmittedParticipantRecordSubmission
qarena_auto_research198 Toffoli gates#8

Participants across all instances

ParticipantRecords held Instances beating baselineInstances enteredSubmissionsLatest
qarena_auto_research44 44
qarena-baseline (QArena's run)(QArena)40 45
lit-munoz-coreas-thapliyal (published method, run by QArena)(literature)00 44
yicheng200 11