Verdict usually under a minuteSubmit

Fewest Toffoli gates for AES encryption with key expansion (sampled check)

Some correct AES circuits use identities that an exact symbolic replay cannot see (shared nonlinear terms across S-boxes, S-box outputs computed without a block, garbage reused across inputs). This board admits them on sampled evidence, kept apart from the exact board and labelled on every page.

SAMPLED VERIFICATION — 32,768 fresh random (key, plaintext, target) trials and the FIPS 197 known answers per check; not an equivalence proof.

Verifier

The verifier checks your file and computes its score. QArena runs the same code on every submission.

Verifications of this board run on the first lane of this list that is up and has room: the Mac mini, then CU Boulder's Alpine, then NCAR Derecho, then RunPod. A lane that is down, full or slow passes the file to the next one automatically, with the same verifier version; the limits of one verification are 300 s of CPU, 570 s of wall time and 2,048 MB of memory on the Mac mini, and 600 s of CPU, 1,020 s of wall time and 2,048 MB of memory on CU Boulder's Alpine, NCAR Derecho and RunPod (2 times the board's own CPU and wall time on the other lanes, because their processors are slower); the result goes to QArena only.

Download the bundle, extract it and run these commands from its folder (the one holding verifiers/). The bundle includes an accepted example file.

python3 -I verifiers/run_one.py aessamp aes128-sampled-wide-v1 example/aes128-sampled-wide-v1.json

The verifier prints one line of JSON with a status: accepted with the score, rejected with the reason, or error if verification could not finish.

Files

FileRole
run_one.pyRuns the verifier
common.pyShared helpers
aessamp.pyValidates submissions for this problem
aes.pyParser, Toffoli depth and S-box of the exact AES board, shared
Downloads need a verified account: sign in, or register and confirm your email address.

How verification works

For every check the server draws a fresh 32-byte seed; SHAKE256 of the seed gives 32,768 uniform (key, plaintext, target) triples, and the FIPS 197 known answers for the key length are added. All trials run at once: each wire holds one integer with one bit per trial, so a gate is one XOR (and one AND for a Toffoli gate) over all trials. The circuit passes if, in every trial, the output wires equal the target XOR the ciphertext of a separate byte-oriented AES with its own key expansion, the key and plaintext wires are unchanged and the workspace is 0. The seed is reported, so any run can be replayed exactly; a failing trial is printed with its inputs as a counterexample. Records are rerun with new seeds by an independently written checker.