Paper 2025/1664 Original: eprint.iacr.org/2025/1664 ↗

Quantum Synthesis of Large S-Boxes: Heuristic and MILP-Based Transpiled-Depth Optimization

Tarun Yadav
Shweta Singh
Sudha Yadav
Abstract

Quantum cryptanalysis of block ciphers with Grover’s search requires synthesis of round function, where the non-linear S-boxes dominate the circuit cost. Efficient quantum implementations of these S-boxes are a bottleneck for cryptanalysis. In this work, we address this problem and present new generic strategy for synthesis of quantum circuit for large S-boxes that reduces the NISQ-era transpiled depth after decomposition into the hardware-oriented universal basis gate set u+cx. We introduce two-phase MILP-based, ancilla-aware synthesis framework for large S-boxes. Phase 1 determines which monomials will be synthesised globally, and how they are reused across outputs. This reduces redundancy and avoids high-degree terms that would lead to deep ladders. Phase 2 arranges the selected monomials into parallel layers. Here the solver explicitly accounts for ancilla usage, balancing the trade-off between fewer layers (smaller depth) and larger ancilla. MILP based synthesis show decisive, multi-fold reductions in transpiled depth in universal basis gate set u+cx. For SKINNY and ZUC S0 S-boxes, our synthesis reduces transpiled depth by factors of 18 and 9, respectively, with ancilla usage raised only to 10 and 13 qubits. For higher-degree S-boxes such as AES, SM4, and ZUC S1, we achieve 5 times reduction in transpiled depth by trading additional ancillas, increasing the budget from 5 to 22. To our knowledge, this is the first demonstration of ancilla-aware, globally optimised synthesis of 8-bit cryptographic S-boxes. By aligning primitive synthesis with transpiled cost, our method establishes a new baseline for depth-optimised resource estimation in the quantum cryptanalysis of symmetric primitives.

Metadata
Available format(s)
PDF
Category
Attacks and cryptanalysis
Publication info
Preprint.
History
2025-09-13: last updated
2025-09-13: published
Short URL
https://ia.cr/2025/1664
License
https://creativecommons.org/licenses/by/4.0/

BibTeX

@misc{cryptoeprint:2025/1664,
      author = {Tarun Yadav and Shweta Singh and Sudha Yadav},
      title = {Quantum Synthesis of Large S-Boxes: Heuristic and MILP-Based Transpiled-Depth Optimization},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1664},
      year = {2025},
      url = {https://eprint.iacr.org/2025/1664}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.