Title
New quantum circuit implementations of SM4 and SM3
Abstract
In this paper, we propose some new quantum circuit implementations of SM4 block cipher and SM3 hash function, which are based on the following ideas. Firstly, we propose an improved classical circuit of SM4’s S-box, which requires less AND gates than the previous works. Our improved classical circuit of SM4’s S-box can be used for constructing a new quantum circuit of SM4’s S-box. Secondly, we propose a new implementation of the Feistel-like structure of SM4 so as to reduce the number of qubits and T-depth simultaneously. Thirdly, we reduce the number of qubits in our quantum circuit of SM3 by making use of linear message expansion algorithm of SM3. Fourthly, we propose some in-place implementations of the linear permutations of SM4 and SM3. Based on our new techniques, our stand-alone memory-efficient quantum circuit implementation of SM4 only requires 384 qubits, seven ancilla qubits and 33,024 T-depth, while our depth-efficient quantum circuit of SM4 requires 384 qubits, 1080 ancilla qubits and 455 T-depth. Furthermore, we propose a stand-alone memory-efficient quantum circuit implementation of SM3 with 768 qubits, 33 ancilla qubits and 144,768 T-depth, while our depth-efficient quantum circuit of SM3 requires 768 qubits, 202 ancilla qubits, and 25,344 T-depth. Compared to the previous work, our new quantum circuits of SM3 requires less qubits and T-depth.
Year
DOI
Venue
2022
10.1007/s11128-022-03518-5
Quantum Information Processing
Keywords
DocType
Volume
SM3 hash function, SM4 block cipher, Quantum circuit, Quantum resource estimation, Quantum gate
Journal
21
Issue
ISSN
Citations 
5
1573-1332
0
PageRank 
References 
Authors
0.34
4
6
Name
Order
Citations
PageRank
Jian Zou100.68
Liji Li200.34
Zihao Wei300.68
Yiyuan Luo400.68
Qian Liu501.01
Wenling Wu678769.06