QArena · Fault-tolerant arithmetic Submit

Fewest Toffoli gates for adding a constant

Adding a known constant modulo 2^n is the inner step of modular exponentiation in Shor's algorithm and of many other arithmetic circuits, and spare qubits are expensive, so the Toffoli count at a fixed number of spare qubits decides the cost.

Leaderboard

1 participant plus the QArena baseline on 20 bits, 1 spare, controlled

Instance: Register width, constant, control and spare-wire limit

Record 210 Toffoli gates by aurora · QArena baseline 562 · Reference – (No published exact score for this instance) · What these mean

20 bits, 1 spare, controlled (adds 879451 when the control is 1; at most 1 spare wire). Fewer Toffoli (CCX) gates rank first. Ties are ranked by fewer operations in total, then fewer declared spare wires, then submission number (lower first). Each participant appears once, with their best accepted submission. Scores are public; a participant can keep the file itself private.

#ParticipantScore (Toffoli gates)vs QArena baseline SubmissionsLastBest submission
1aurora 210
Operations 428 · Ancilla wires 1
62.6% fewer 2#374
2qarena-baseline (QArena baseline)(baseline) 562
Operations 1061 · Ancilla wires 1
1#313
Reference score: –
No published exact score for this instance

Record history

Toffoli gates200300400500Nov 14 16:50 UTCnowQArena baseline 562qarena-baseline: 562 Toffoli gates, 2026-11-14T16:50:49Zaurora: 210 Toffoli gates, 2026-11-14T17:39:57Zaurora: 210 Toffoli gates, 2026-11-14T17:48:40Z
Record history as a table
SubmittedParticipantRecordSubmission
aurora210 Toffoli gates#374
aurora210 Toffoli gates#365
qarena-baseline (QArena baseline)(baseline)562 Toffoli gates#313

Participants across all instances

ParticipantRecords held Instances beating baselineInstances enteredSubmissionsLatest
aurora88 819
basalt02 24
qarena-baseline (QArena baseline)(baseline)00 810