{
  "id": "2024/565",
  "url": "https://opencryptology.org/2024/565",
  "original_url": "https://eprint.iacr.org/2024/565",
  "title": "On the construction of quantum circuits for S-boxes with different criteria based on the SAT solver",
  "authors": [
    "Da Lin",
    "Chunli Yang",
    "Shengyuan Xu",
    "Shizhu Tian",
    "Bing Sun"
  ],
  "affiliations": null,
  "abstract": "The substitution box (S-box) is often used as the only nonlinear component in symmetric-key ciphers, leading to a significant impact on the implementation performance of ciphers in both classical and quantum application scenarios by S-box circuits. Taking the Pauli-X gate, the CNOT gate, and the Toffoli gate (i.e., the NCT gate set) as the underlying logic gates, this work investigates the quantum circuit implementation of S-boxes based on the SAT solver. Firstly, we propose encoding methods of the logic gates and the NCT-based circuit, based on which we construct STP models for implementing S-boxes. By applying the proposed models to the S-boxes of several well-known cryptographic algorithms, we construct optimal implementations with different criteria for the 4-bit S-boxes and provide the implementation bounds of different criteria for the 5-bit S-boxes. Since S-boxes in the same affine equivalence class share most of the important properties, we then build STP models to further investigate optimizing S-box circuits based on affine equivalence. According to the applications, for almost all the tested 4-bit S-boxes, there always exists an equivalent S-box that can be implemented with half the number of logic gates. Besides, we encode some important cryptographic properties and construct STP models to design S-boxes with given criteria configurations on implementation and properties. As an application, we find an S-box with the same cryptographic properties as the S-box of KECCAK that can be implemented with only 5 NCT gates, even though the application of our models indicates that implementing the KECCAK S-box requires more than 9 NCT gates. Notably, the inputs of the proposed models are tweakable, which makes the models possess some functions not currently available in the public tools for constructing optimized NCT-based circuits for S-boxes.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“On the construction of quantum circuits for S-boxes with different criteria based on the SAT solver” by Da Lin, Chunli Yang, Shengyuan Xu, Shizhu Tian, Bing Sun, Cryptology ePrint Archive, Paper 2024/565, https://eprint.iacr.org/2024/565. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-04-12T03:20:40Z",
    "updated": "2026-01-27T09:57:41Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/565.pdf",
    "sha256": "d8f0a58b44cff279042ae652567e226b4b6bd1919b4f12ae6534c7c8f31ea076",
    "size": 975435,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/565/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/565.pdf",
      "size": 975435,
      "sha256": "d8f0a58b44cff279042ae652567e226b4b6bd1919b4f12ae6534c7c8f31ea076",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2024/565/versions/20240420T164732Z.pdf",
      "captured_at": "2024-04-20T16:47:32Z",
      "label": "copy captured 2024-04-20",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240420164732id_/https://eprint.iacr.org/2024/565.pdf",
      "size": 900988,
      "sha256": "11a2b8bac63462337d7193f088f8d5eeaba79f28a91d7f55f7fc60729adf9f54",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/565.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 975435
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251230033836id_/https://eprint.iacr.org/2024/565.pdf",
      "captured_at": "2025-12-30T03:38:36Z",
      "size": 762538
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/565,\n      author = {Da Lin and Chunli Yang and Shengyuan Xu and Shizhu Tian and Bing Sun},\n      title = {On the construction of quantum circuits for S-boxes with different criteria based on the SAT solver},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/565},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/565}\n}"
}
