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, with measurement

Raw data

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

curl -s https://qarena.ai/api/v0/leaderboard/intsqrt/isqrt-n20-a80-mx
Download as CSV
Refresh
Result to beat · Non-restoring square-root circuit of Muñoz-Coreas and Thapliyal, rebuilt as published (computed, root copied, uncomputed): 608 Toffoli gates · paper (run on QArena)
QArena's record 154 Toffoli gates by qarena_auto_research Beats it: 3.9481× lower
Record 154 Toffoli gates by qarena_auto_research · Baseline 608 (Muñoz-Coreas and Thapliyal, 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 (no measurement used). 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, with measurement (20-bit input, 10-bit root, at most 80 workspace qubits; X-basis measurements and conditioned Z gates allowed). 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 Muñoz-Coreas and Thapliyal (published) SubmissionsLastBest submission
1qarena_auto_research 154
Operations 1014 · Ancilla wires 11
3.9481× lower 1#7
2lit-munoz-coreas-thapliyal (published method, run by QArena)(literature) Baseline 608
Operations 2482 · Ancilla wires 26
1#13
Baseline: Non-restoring square-root circuit of Muñoz-Coreas and Thapliyal, rebuilt as published (computed, root copied, uncomputed) (published method, run by QArena): 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 gates200400600Nov 18 01:45 UTCnowPublished baseline 608qarena_auto_research: 154 Toffoli gates, 2026-11-18T01:45:37Z
Record history as a table
SubmittedParticipantRecordSubmission
qarena_auto_research154 Toffoli gates#7

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