Verdict usually under a minuteSubmit
Fewest Toffoli gates for AES encryption with key expansion
The cost of a quantum AES oracle sets the price of Grover key search, and NIST's post-quantum security categories are defined by attacks on AES-128, AES-192 and AES-256. Published circuits differ in interface, gate set and clean-up; here every circuit implements the same complete map and is scored the same way.
Instance files
Each JSON file defines one instance of this problem. Instances differ by key length and workspace limit. The verifier reads the same files, and the verifier bundle contains all of them together with an accepted example.
| File | Instance | Parameters | Size |
|---|---|---|---|
| aes128-exact-wide-v1.json | AES-128, wide workspace | 128-bit key, 10 rounds, 200 S-box evaluations; workspace up to 16,000 qubits (16,384 in total); checked exactly | 0.1 KB |
| aes128-exact-narrow-v1.json | AES-128, at most 512 workspace qubits | 128-bit key, 10 rounds; workspace at most 512 qubits (896 in total); checked exactly | 0.1 KB |
| aes192-exact-wide-v1.json | AES-192, wide workspace | 192-bit key, 12 rounds, 224 S-box evaluations; workspace up to 15,936 qubits (16,384 in total); checked exactly | 0.1 KB |
| aes192-exact-narrow-v1.json | AES-192, at most 512 workspace qubits | 192-bit key, 12 rounds; workspace at most 512 qubits (960 in total); checked exactly | 0.1 KB |
| aes256-exact-wide-v1.json | AES-256, wide workspace | 256-bit key, 14 rounds, 276 S-box evaluations; workspace up to 15,872 qubits (16,384 in total); checked exactly | 0.1 KB |
| aes256-exact-narrow-v1.json | AES-256, at most 512 workspace qubits | 256-bit key, 14 rounds; workspace at most 512 qubits (1,024 in total); checked exactly | 0.1 KB |