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.
Instance files
Each JSON file defines one instance of this problem. Instances differ by input width, workspace limit and gate set. The verifier reads the same files, and the verifier bundle contains all of them together with an accepted example.
| File | Instance | Parameters | Size |
|---|---|---|---|
| isqrt-n16-a16.json | 16 bits, 16 spare | 16-bit input, 8-bit root, at most 16 workspace qubits | 0.1 KB |
| isqrt-n16-a64.json | 16 bits, 64 spare | 16-bit input, 8-bit root, at most 64 workspace qubits | 0.1 KB |
| isqrt-n20-a20.json | 20 bits, 20 spare | 20-bit input, 10-bit root, at most 20 workspace qubits | 0.1 KB |
| isqrt-n20-a80.json | 20 bits, 80 spare | 20-bit input, 10-bit root, at most 80 workspace qubits | 0.1 KB |
| isqrt-n16-a16-mx.json | 16 bits, 16 spare, with measurement | 16-bit input, 8-bit root, at most 16 workspace qubits; X-basis measurements and conditioned Z gates allowed | 0.2 KB |
| isqrt-n16-a64-mx.json | 16 bits, 64 spare, with measurement | 16-bit input, 8-bit root, at most 64 workspace qubits; X-basis measurements and conditioned Z gates allowed | 0.2 KB |
| isqrt-n20-a20-mx.json | 20 bits, 20 spare, with measurement | 20-bit input, 10-bit root, at most 20 workspace qubits; X-basis measurements and conditioned Z gates allowed | 0.2 KB |
| isqrt-n20-a80-mx.json | 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 | 0.2 KB |