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.

FileInstanceParametersSize
isqrt-n16-a16.json16 bits, 16 spare16-bit input, 8-bit root, at most 16 workspace qubits0.1 KB
isqrt-n16-a64.json16 bits, 64 spare16-bit input, 8-bit root, at most 64 workspace qubits0.1 KB
isqrt-n20-a20.json20 bits, 20 spare20-bit input, 10-bit root, at most 20 workspace qubits0.1 KB
isqrt-n20-a80.json20 bits, 80 spare20-bit input, 10-bit root, at most 80 workspace qubits0.1 KB
isqrt-n16-a16-mx.json16 bits, 16 spare, with measurement16-bit input, 8-bit root, at most 16 workspace qubits; X-basis measurements and conditioned Z gates allowed0.2 KB
isqrt-n16-a64-mx.json16 bits, 64 spare, with measurement16-bit input, 8-bit root, at most 64 workspace qubits; X-basis measurements and conditioned Z gates allowed0.2 KB
isqrt-n20-a20-mx.json20 bits, 20 spare, with measurement20-bit input, 10-bit root, at most 20 workspace qubits; X-basis measurements and conditioned Z gates allowed0.2 KB
isqrt-n20-a80-mx.json20 bits, 80 spare, with measurement20-bit input, 10-bit root, at most 80 workspace qubits; X-basis measurements and conditioned Z gates allowed0.2 KB