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.

FileInstanceParametersSize
aes128-exact-wide-v1.jsonAES-128, wide workspace128-bit key, 10 rounds, 200 S-box evaluations; workspace up to 16,000 qubits (16,384 in total); checked exactly0.1 KB
aes128-exact-narrow-v1.jsonAES-128, at most 512 workspace qubits128-bit key, 10 rounds; workspace at most 512 qubits (896 in total); checked exactly0.1 KB
aes192-exact-wide-v1.jsonAES-192, wide workspace192-bit key, 12 rounds, 224 S-box evaluations; workspace up to 15,936 qubits (16,384 in total); checked exactly0.1 KB
aes192-exact-narrow-v1.jsonAES-192, at most 512 workspace qubits192-bit key, 12 rounds; workspace at most 512 qubits (960 in total); checked exactly0.1 KB
aes256-exact-wide-v1.jsonAES-256, wide workspace256-bit key, 14 rounds, 276 S-box evaluations; workspace up to 15,872 qubits (16,384 in total); checked exactly0.1 KB
aes256-exact-narrow-v1.jsonAES-256, at most 512 workspace qubits256-bit key, 14 rounds; workspace at most 512 qubits (1,024 in total); checked exactly0.1 KB