Affiliation:
1. Information Computer Engineering, Hansung University, Seoul 02876, Republic of Korea
Abstract
This paper presents an optimized quantum circuit for the scrypt cryptographic algorithm. We applied various optimization techniques to reduce the DW cost, which is the product of the time and space complexity of quantum circuits. In our proposed method, the number of ancilla qubits was significantly reduced through the use of optimized inverse operations, while the depth was minimized by implementing parallel structures. For the SHA-256, we devised a structure that achieves a substantial reduction in the number of ancilla qubits with only a slight increase in quantum circuit depth. By cleaning the dirty ancilla qubits used in the previous round through inverse operations, we enabled their reuse in each subsequent round. Specifically, we reduced the number of 8128 ancilla qubits, achieving this with an increase of only 6 in the full depth of the quantum circuit. Additionally, within Salsa20/8 in SMix, we reused qubits through inverse operations and performed some operations in parallel to reduce both the number of qubits and the overall quantum circuit depth. Finally, our quantum circuit for scrypt demonstrates a significant reduction in the width (the number of qubits) with only a minimal increase in the full quantum circuit depth.
Reference31 articles.
1. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer;Shor;SIAM Rev.,1999
2. Grover, L.K. (1996, January 22–24). A fast quantum mechanical algorithm for database search. Proceedings of the Twenty-Eighth Annual ACM Symposium on Theory of Computing, Philadelphia, PA, USA.
3. Resource Estimation of Grover Algorithm through Hash Function LSH Quantum Circuit Optimization;Song;J. Korea Inst. Inf. Secur. Cryptol.,2021
4. Song, G., Jang, K., Kim, H., and Seo, H. (2022). A Parallel Quantum Circuit Implementations of LSH Hash Function for Use with Grover’s Algorithm. Appl. Sci., 12.
5. Jang, K., Song, G., Kwon, H., Uhm, S., Kim, H., Lee, W.K., and Seo, H. (2021). Grover on PIPO. Electronics, 10.