Fewest Toffoli gates for AES encryption with key expansion, AES-256, at most 512 workspace qubits

AES encryption oracle submission #23

christopherhamilton_r · submitted · verified 6 d ago · Accepted CC BY 4.0

Note from the submitter: Clean-room coherent AES-256 narrow oracle (34,282 CCX, depth 2,828, 1,024 qubits / 512 ancillas) with 7-byte retention, 32-bit streamed Rounds 13-14, and 43-CCX/9-ancilla clean + mixed-garbage streaming S-boxes from NIST Circuit Complexity Project SLPs (Milad Nasr, umizame). Dual-verified V1 + blind V2 + FIPS-197 C.3 vectors.

Toffoli gates34,282
Toffoli depth2,828
Qubits1,024
Gates (expanded)966,757

Verifier report

key bits
256
ancillas
512
qubits
1024
toffoli
34282
toffoli depth
2828
gates
966757
cx
881418
x
51057
calls
413
uncalls
393
blocks
[{"kind": "S", "ancillas": 9, "garbage": 0, "ccx": 43, "ops": 1817}, {"kind": "Si", "ancillas": 9, "garbage": 0, "ccx": 43, "ops": 1957}, {"kind": "S", "ancillas": 71, "garbage": 0, "ccx": 43, "ops": 914}, {"kind": "Si", "ancillas": 71, "garbage": 0, "ccx": 43, "ops": 1054}, {"kind": "S", "ancillas": 9, "garbage": 7, "ccx": 33, "ops": 1395}, {"kind": "S", "ancillas": 9, "garbage": 9, "ccx": 29, "ops": 1188}, {"kind": "S", "ancillas": 9, "garbage": 6, "ccx": 34, "ops": 1463}]
atoms
2845
box applications
{"S": 276, "Si": 0}
rewrites
274
check
7 block(s) checked on all 65,536 input/target pairs; symbolic replay of 46,251 records equals FIPS 197 AES-256 with key expansion, inputs restored, workspace 0
verify seconds
0.14
View raw report
{
 "key_bits": 256,
 "ancillas": 512,
 "qubits": 1024,
 "toffoli": 34282,
 "toffoli_depth": 2828,
 "gates": 966757,
 "cx": 881418,
 "x": 51057,
 "calls": 413,
 "uncalls": 393,
 "blocks": [
  {
   "kind": "S",
   "ancillas": 9,
   "garbage": 0,
   "ccx": 43,
   "ops": 1817
  },
  {
   "kind": "Si",
   "ancillas": 9,
   "garbage": 0,
   "ccx": 43,
   "ops": 1957
  },
  {
   "kind": "S",
   "ancillas": 71,
   "garbage": 0,
   "ccx": 43,
   "ops": 914
  },
  {
   "kind": "Si",
   "ancillas": 71,
   "garbage": 0,
   "ccx": 43,
   "ops": 1054
  },
  {
   "kind": "S",
   "ancillas": 9,
   "garbage": 7,
   "ccx": 33,
   "ops": 1395
  },
  {
   "kind": "S",
   "ancillas": 9,
   "garbage": 9,
   "ccx": 29,
   "ops": 1188
  },
  {
   "kind": "S",
   "ancillas": 9,
   "garbage": 6,
   "ccx": 34,
   "ops": 1463
  }
 ],
 "atoms": 2845,
 "box_applications": {
  "S": 276,
  "Si": 0
 },
 "rewrites": 274,
 "check": "7 block(s) checked on all 65,536 input/target pairs; symbolic replay of 46,251 records equals FIPS 197 AES-256 with key expansion, inputs restored, workspace 0",
 "verify_seconds": 0.14
}

Submission file

Download submission JSON under Creative Commons Attribution 4.0 International (license file)

sha256 5c4a70ed9691368f2044bf57a857363ab6eed0f652783103322caa47c4671c11 · 1,043,761 bytes · verifier d599daafce74 (version 49 of this board's verifier, 2026-11-26)

License

License: Creative Commons Attribution 4.0 International (CC BY 4.0, the default). Anyone may copy, change and reuse it, also commercially, if they credit the submitter and link this page.

Credit: christopherhamilton_r, QArena submission AES encryption oracle #23, with a link to this page. The download carries the license in its headers and in the license file beside it; the file's bytes are what the verifier checked.

Builds on

This submission names no earlier submission.

Cited by

Cited by 0 independent contributors · 2 citing submissions

  • yicheng (QArena's own account) · not counted: QArena or test account

How citations count