中国物理B ›› 2024, Vol. 33 ›› Issue (2): 20311-020311.doi: 10.1088/1674-1056/ad09cd

• • 上一篇    下一篇

Gray code based gradient-free optimization algorithm for parameterized quantum circuit

Anqi Zhang(张安琪)1, Chunhui Wu(武春辉)1, and Shengmei Zhao(赵生妹)1,2,†   

  1. 1 Institute of Signal Processing and Transmission, Nanjing University of Posts and Telecommunications, Nanjing 210003, China;
    2 Key Laboratory of Broadband Wireless Communication and Sensor Network Technology(Ministry of Education), Nanjing University of Posts and Telecommunications, Nanjing 210003, China
  • 收稿日期:2023-08-21 修回日期:2023-10-19 接受日期:2023-11-06 出版日期:2024-01-16 发布日期:2024-01-25
  • 通讯作者: Shengmei Zhao E-mail:zhaosm@njupt.edu.cn
  • 基金资助:
    This work was supported by the National Natural Science Foundation of China (Grant Nos. 61871234 and 62375140), and Postgraduate Research & Practice Innovation Program of Jiangsu Province (Grant No. KYCX19_0900).

Gray code based gradient-free optimization algorithm for parameterized quantum circuit

Anqi Zhang(张安琪)1, Chunhui Wu(武春辉)1, and Shengmei Zhao(赵生妹)1,2,†   

  1. 1 Institute of Signal Processing and Transmission, Nanjing University of Posts and Telecommunications, Nanjing 210003, China;
    2 Key Laboratory of Broadband Wireless Communication and Sensor Network Technology(Ministry of Education), Nanjing University of Posts and Telecommunications, Nanjing 210003, China
  • Received:2023-08-21 Revised:2023-10-19 Accepted:2023-11-06 Online:2024-01-16 Published:2024-01-25
  • Contact: Shengmei Zhao E-mail:zhaosm@njupt.edu.cn
  • Supported by:
    This work was supported by the National Natural Science Foundation of China (Grant Nos. 61871234 and 62375140), and Postgraduate Research & Practice Innovation Program of Jiangsu Province (Grant No. KYCX19_0900).

摘要: A Gray code based gradient-free optimization (GCO) algorithm is proposed to update the parameters of parameterized quantum circuits (PQCs) in this work. Each parameter of PQCs is encoded as a binary string, named as a gene, and a genetic-based method is adopted to select the offsprings. The individuals in the offspring are decoded in Gray code way to keep Hamming distance, and then are evaluated to obtain the best one with the lowest cost value in each iteration. The algorithm is performed iteratively for all parameters one by one until the cost value satisfies the stop condition or the number of iterations is reached. The GCO algorithm is demonstrated for classification tasks in Iris and MNIST datasets, and their performance are compared by those with the Bayesian optimization algorithm and binary code based optimization algorithm. The simulation results show that the GCO algorithm can reach high accuracies steadily for quantum classification tasks. Importantly, the GCO algorithm has a robust performance in the noise environment.

关键词: gradient-free optimization, Gray code, genetic-based method

Abstract: A Gray code based gradient-free optimization (GCO) algorithm is proposed to update the parameters of parameterized quantum circuits (PQCs) in this work. Each parameter of PQCs is encoded as a binary string, named as a gene, and a genetic-based method is adopted to select the offsprings. The individuals in the offspring are decoded in Gray code way to keep Hamming distance, and then are evaluated to obtain the best one with the lowest cost value in each iteration. The algorithm is performed iteratively for all parameters one by one until the cost value satisfies the stop condition or the number of iterations is reached. The GCO algorithm is demonstrated for classification tasks in Iris and MNIST datasets, and their performance are compared by those with the Bayesian optimization algorithm and binary code based optimization algorithm. The simulation results show that the GCO algorithm can reach high accuracies steadily for quantum classification tasks. Importantly, the GCO algorithm has a robust performance in the noise environment.

Key words: gradient-free optimization, Gray code, genetic-based method

中图分类号:  (Quantum algorithms, protocols, and simulations)

  • 03.67.Ac