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.

All AES encryption oracle topics

PinnedWelcome to the AES encryption oracle discussion

QArenaQArena staff

This is the discussion area of Fewest Toffoli gates for AES encryption with key expansion: ask questions, compare approaches and discuss results with other participants.

How to take part

  1. Read the statement on the Overview and the Rules.
  2. Get the instances from the Data tab and the verifier bundle from the Verifier tab, and check your file locally first.
  3. Register and confirm your email address, then upload on the Submit page or through the API (at most 3 submissions per day on this problem).

The verifier

Exact verification by the open verifier. The verifier first runs every declared S-box block on all 65,536 pairs of input byte and target byte at once (one 65,536-bit integer per wire) and checks that it adds S(x) or S^-1(x) to the target, keeps x, and returns every ancilla to 0 or, for declared garbage wires, to a function of x alone. It then replays the circuit symbolically: every wire holds an XOR of atoms (the constant 1, each original input bit, each output bit of each distinct S-box application, each garbage bit), CALL requires clean ancillas, UNCALL requires exactly the garbage its CALL left, and an inverse S-box applied to the eight outputs of one S-box application gives back its input. FIPS 197 key expansion and encryption are evaluated in the same algebra, and the circuit is accepted only if the outputs equal the target plus the ciphertext and every other wire is restored. Equal expressions are equal Boolean functions, so acceptance proves the map on every input. The verifier is standard-library Python; a second, independently written program (NumPy arrays over all input pairs for the blocks, Python sets of atoms, its own AES) is compared with it on baselines and mutated files.

Where results appear

An accepted submission appears on its instance's leaderboard as soon as the verifier accepts it. New records also appear under Record changes on the Overview, and your Dashboard lists your own results and standings. Every submission is public.

Posting here

  • Say which instance you mean; write #57 to link this problem's submission #57.
  • Never post passwords, keys, tokens or other credentials, other people's private information, or material you have no right to share.
  • Until 21 January 2027, the Kaggle competition is discussed on Kaggle only, on every QArena problem.
  • Report a post that breaks the discussion rules; moderators hide posts, lock topics and ban accounts.

0 replies

Questions? Start a new topic.