Computer Science ›› 2024, Vol. 51 ›› Issue (9): 96-102.doi: 10.11896/jsjkx.230600219

• High Performance Computing • Previous Articles     Next Articles

Simulation of Grover's Quantum Search Algorithm in “Songshan” Supercomputer System

DU Shuaiqi1,2, LIU Xiaonan1, LIAN Demeng1,2, LIU Zhengyu1,2   

  1. 1 National Supercomputing Centerin Zhengzhou,Zhengzhou 450001,China
    2 School of Computer and Artificial Intelligence,Zhengzhou University,Zhengzhou 450001,China
  • Received:2023-06-29 Revised:2023-11-15 Online:2024-09-15 Published:2024-09-10
  • About author:DU Shuaiqi,born in 1996,postgraduate.His main research interests include quantum algorithm and high-perfor-mance computation.
    LIU Xiaonan,born in 1977,Ph.D,associate professor,master's supervisor.His main research interests include quantum algorithm and high-perfor-mance parallel computation.
  • Supported by:
    National Natural Science Foundation of China(61972413,61701539).

Abstract: With its superposition and entanglement properties,quantum computing has a powerful parallel computing capacity.However,current quantum computers cannot ensure stable superposition states of large-scale qubits while performing quantum operations such as interference and entanglement.Therefore,the current approach to promote quantum computing is to simulate quantum computing using classical computers.The Grover quantum search algorithm is designed for the problem of searching unsorted databases,reducing the time complexity to square root level,and accelerating principal component analysis in machine learning.Therefore,studying and simulating the Grover algorithm can promote the development of quantum computing combined with machine learning and lay the foundation for its application as well as the simulation of Grover quantum search algorithm in the “Songshan” supercomputer system.By studying the Grover quantum search algorithm,the quantum circuit of the algorithm is simulated.The Toffoli quantum gate is used to optimize the quantum circuit,proposing a universal quantum circuit for the Grover algorithm while reducing two auxiliary qubits.The experiment is based on the CPU+DCU heterogeneous system of the “Song-shan” supercomputer system,using a two-level parallel strategy of MPI multiprocessing and HIP multithreading.By adjusting the position of the auxiliary qubits in the quantum circuit,the communication between MPI processes is reduced,and the data-depen-dent quantum states are transmitted using a fragmentation method.Compared to the serial version,the parallelized simulation algorithm achieves a maximum speedup of 560.33 times,realizing for the first time the Grover quantum search algorithm with a scale of 31 qubits.

Key words: Grover's quantum search algorithm, Heterogeneous architecture, MPI, HIP, Fragment-based transmission

CLC Number: 

  • TP385
[1]GROVER L K.A fast quantum mechanical algorithm for database search[C]//Proceedings of the Twenty-eighth Annual ACM Symposium on Theory of Computing.1996:212-219.
[2]YIN A,HE K,FAN P.Quantum dialogue protocol based onGrover's search algorithms [J].Modern Physics Letters A,2019,34(21):1950169.
[3]LIU X N,SONG H C,WANG H,et al.Overview of improvement and application of Grover algorithm [J].Computer Science,2021,48(10):315-323.
[4]ZHANG K,KOREPIN V E.Depth optimization of quantumsearch algorithms beyond Grover's algorithm [J].Physical Review A,2020,101(3):032346.
[5]CHEN H,GAO Y,ZHANG J.Quantum K-nearest neighbor algorithm[J].Journal of Southeast University(Natural Science Edition),2015,45(4):647-651.
[6]SAHA A,SAHA D,CHAKRABARTI A.Circuit design for k-coloring problem and its implementation on near-term quantum devices[C]//2020 IEEE International Symposium on Smart Electronic Systems(iSES)(Formerly iNiS).IEEE,2020:17-22.
[7]HABIBI M R,GOLESTAN S,SOLTANMANESH A,et al.Power and Energy Applications Based on Quantum Computing:The Possible Potentials of Grover's Algorithm[J].Electronics,2022,11(18):2919.
[8]LIU X N,JING L N,WANG L X,et al.Large-scale quantum Fourier transform simulation based on Shenwei 26010 processor[J].Computer Science,2020,47(8):93-97.
[9]LIU X N,JING L N,WANG L X,et al.Quantum FourierTransform Simulation on Sunway TaihuLight[C]//2020 15th International Conference on Computer Science & Education(ICCSE).IEEE,2020:833-837.
[10]XIE J M,HU W F,HAN L.Quantum Fourier Transform Simulation Based on" Songshan[J].Supercomputer System,2021,48(12):36-42.
[11]SCHWABE P,WESTERBAAN B.Solving Binary with Grover'sAlgorithm[C]//Security,Privacy,and Applied Cryptography Engineering:6th International Conference,SPACE 2016,Hyderabad,India,December 14-18,2016,Proceedings.Cham:Springer International Publishing,2016:303-322.
[12]SONG H C,LIU X N,WANG H,et al.Integer decomposition based on Grover search algorithm[J].Computer Science,2021,48(4):93-97.
[13]FERNANDES D,DUTRA I.Using Grover's search quantumalgorithm to solve Boolean satisfiability problems:Part I[J].XRDS:Crossroads,The ACM Magazine for Students,2019,26(1):64-66.
[14]MAGNIEZ F,SANTHA M,SZEGEDY M.Quantum algorithms for the triangle problem[J].SIAM Journal on Computing,2007,37(2):413-424.
[15]KAIN B.Searching a quantum database with Grover's search algorithm[J].American Journal of Physics,2021,89(6):618-626.
[16]MANDVIWALLA A,OHSHIRO K,JI B.ImplementingGrover's algorithm on the IBM quantum computers[C]//2018 IEEE International Conference on Big Data.IEEE,2018:2531-2537.
[17]VEMULA D R,KONAR D,SATHEESAN S,et al.A Scalable 5,6-Qubit Grover's Quantum Search Algorithm[J].arXiv:2205.00117,2022.
[18]CHEN Y.Optimization of Grover's quantum search in multi-solution and hyperbit spaces[D].Xi'an:Northwest University,2021.
[19]PRONIN C B,OSTROUKH A V.Developing MathematicalOracle Functions for Grover Quantum Search Algorithm[J].arXiv:2109.05921,2021.
[1] LIU Yulu, WU Shuhong, YU Dan, MA Yao, CHEN Yongle. Cross-age Identity Membership Inference Based on Attention Feature Decomposition [J]. Computer Science, 2024, 51(9): 401-407.
[2] XU Jinlong, GUI Zhonghua, LI Jia'nan, LI Yingying, HAN Lin. FP8 Quantization and Inference Memory Optimization Based on MLIR [J]. Computer Science, 2024, 51(9): 112-120.
[3] LIN Yongzhen, XU Chuanfu, QIU Haozhong, WANG Qingsong, WANG Zhenghua, YANG Fuxiang, LI Jie. Heterogeneous Parallel Computing and Performance Optimization for DSMC/PIC Coupled Simulation Based on MPI+CUDA [J]. Computer Science, 2024, 51(9): 31-39.
[4] LIU Xiaonan, LIAN Demeng, DU Shuaiqi, LIU Zhengyu. Simulation of Limited Entangled Quantum Fourier Transform Based on Matrix Product State [J]. Computer Science, 2024, 51(9): 80-86.
[5] YANG Heng, LIU Qinrang, FAN Wang, PEI Xue, WEI Shuai, WANG Xuan. Study on Deep Learning Automatic Scheduling Optimization Based on Feature Importance [J]. Computer Science, 2024, 51(7): 22-28.
[6] BAI Yu, WANG Xinzhe. Study on Hypernymy Recognition Based on Combined Training of Attention Mechanism and Prompt Learning [J]. Computer Science, 2024, 51(6A): 230700226-5.
[7] CHEN Zhenlin, LUO Liang, ZHENG Long, JI Shengchen, CHEN Shunhuai. Study on Matching Design of Ship Engine and Propeller Based on Improved Moth-Flame Optimization Algorithm [J]. Computer Science, 2024, 51(6A): 230500157-9.
[8] CHEN Tianpeng, HU Jianwen. Ships Detection in Remote Sensing Images Based on Improved FCOS [J]. Computer Science, 2024, 51(6A): 230700166-7.
[9] HE Xinyu, LU Chenxin, FENG Shuyi, OUYANG Shangrong, MU Wentao. Ship Detection and Recognition of Optical Remote Sensing Images for Embedded Platform [J]. Computer Science, 2024, 51(6A): 230700117-7.
[10] CHENG Hongzheng, YANG Wenhua. Empirical Study on Dependencies and Updates of R Packages [J]. Computer Science, 2024, 51(6): 1-11.
[11] LIU Lei, ZHOU Zhide, LIU Xingxiang, CHE Haoyang, YAO Lei, JIANG He. Automatic Tensorization for TPU Coarse-grained Instructions [J]. Computer Science, 2024, 51(6): 52-60.
[12] HAO Meng, TIAN Xueyang, LU Gangzhao, LIU Yi, ZHANG Weizhe, HE Hui. Transplantation and Optimization of Graph Matching Algorithm Based on Domestic DCUHeterogeneous Platform [J]. Computer Science, 2024, 51(4): 67-77.
[13] WANG Zhen, NIE Kai, HAN Lin. Auto-vectorization Cost Model Based on Instruction MKS [J]. Computer Science, 2024, 51(4): 78-85.
[14] LUO Zeyang, TIAN Hua, DOU Yingtong, LI Manwen, ZHANG Zehua. Fake Review Detection Based on Residual Networks Fusion of Multi-relationship Review Features [J]. Computer Science, 2024, 51(4): 314-323.
[15] WANG Degang, SUN Yi, GAO Qi. Active Membership Inference Attack Method Based on Multiple Redundant Neurons [J]. Computer Science, 2024, 51(4): 373-380.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!