{
  "id": "2026/3026",
  "url": "https://opencryptology.org/2026/3026",
  "original_url": "https://eprint.iacr.org/2026/3026",
  "title": "Minimizing Toffoli Gate Counts in In-Place S-Box Implementations",
  "authors": [
    "Seungjun Baek",
    "Wonwoo Song",
    "Namil Kim",
    "Anubhab Baksi",
    "Jongsung Kim"
  ],
  "affiliations": null,
  "abstract": "In this paper, we study ancilla-free in-place quantum implementations of the Ascon S-box and the 5-bit Keccak $\\chi_5$ mapping. We develop a complete synthesis method that treats NOT and CNOT gates as affine operations and uses canonical state representation together with a proven lower bound to prune the search space. Using this method, we settle the previously unresolved minimum Toffoli count for the Ascon S-box at exactly seven, extend the same minimum to Keccak $\\chi_5$ via affine equivalence, and establish a minimum Toffoli depth of seven for both functions. We further optimize Clifford+$T$ realizations of these minimum-Toffoli circuits by resynthesizing the decomposed circuits across Toffoli-decomposition boundaries. For both targets, the resulting implementations achieve either 33 $T$ gates with $T$-depth 8 or 29 $T$ gates with $T$-depth 10. To the best of our knowledge, these achieve the lowest reported $T$-depth and $T$-count, respectively, among existing 5-qubit ancilla-free in-place implementations.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Minimizing Toffoli Gate Counts in In-Place S-Box Implementations” by Seungjun Baek, Wonwoo Song, Namil Kim, Anubhab Baksi, Jongsung Kim, Cryptology ePrint Archive, Paper 2026/3026, https://eprint.iacr.org/2026/3026. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2026-11-24T14:30:36Z",
    "updated": "2026-11-24T14:30:36Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/3026.pdf",
    "sha256": "9e6508f950483b411e4384dbdff3efef7b05ecfeed52413e81cb00f5eba1ea26",
    "size": 325032,
    "source": "upload",
    "source_date": "2026-11-28T18:24:11.280Z",
    "maybe_stale": false,
    "newer_on_eprint": false,
    "eprint_size": 325032,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/3026/versions/20261128T182411Z.pdf",
      "captured_at": "2026-11-28T18:24:11.280Z",
      "label": "copy captured 2026-11-28",
      "source": "upload",
      "source_url": null,
      "size": 325032,
      "sha256": "9e6508f950483b411e4384dbdff3efef7b05ecfeed52413e81cb00f5eba1ea26",
      "is_default_pdf": true
    }
  ],
  "other_sources": [],
  "bibtex": "@misc{cryptoeprint:2026/3026,\n      author = {Seungjun Baek and Wonwoo Song and Namil Kim and Anubhab Baksi and Jongsung Kim},\n      title = {Minimizing Toffoli Gate Counts in In-Place S-Box Implementations},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/3026},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/3026}\n}"
}
