{"title":"Max-Cut Linear Binary Classifier Based on Quantum Approximate Optimization Algorithm","authors":"Jiaji Wang, Yuqi Wang, Xi Li, Shiming Liu, Junda Zhuang, Chao Qin","doi":"10.1007/s10773-024-05826-1","DOIUrl":null,"url":null,"abstract":"<div><p>The rapid development of quantum computing has opened up entirely new possibilities for the field of machine learning. However, for the implementation of many existing quantum classification algorithms, a large number of qubits and quantum circuits with high complexity are still required. To effectively solve this problem, the Quantum Approximate Optimization Algorithm (QAOA) arises as a promising solution due to its comparative advantages. In particular, it can be realized in the case of shallow quantum circuits and a finite small number of qubits. Along these lines, in this work, a Max-Cut linear binary classifier based on QAOA (QAOA-MaxCut-LBC) was proposed. First, the data set was constructed into an undirected weighted graph, and the binary classification task was transformed into a Max-Cut problem. Then, a Variational Quantum Circuit (VQC) was built by using QAOA, and the expected value of the target Hamiltonian was transformed into a loss function. Finally, the circuit parameters were iteratively updated to make the loss function converge. The computational basis state with the maximum probability was taken as the classification result after the measurement. In the experimental study, our algorithm was validated on various datasets and compared with classical linear classifiers. Our scheme can be flexibly adjusted for the number of qubits, possessing the potential to scale to multi-classification tasks. The source code is accessible at the URL: https://github.com/Dullne/QAOA-MaxCut-LBC.</p></div>","PeriodicalId":597,"journal":{"name":"International Journal of Theoretical Physics","volume":"63 11","pages":""},"PeriodicalIF":1.3000,"publicationDate":"2024-11-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Journal of Theoretical Physics","FirstCategoryId":"101","ListUrlMain":"https://link.springer.com/article/10.1007/s10773-024-05826-1","RegionNum":4,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"PHYSICS, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
The rapid development of quantum computing has opened up entirely new possibilities for the field of machine learning. However, for the implementation of many existing quantum classification algorithms, a large number of qubits and quantum circuits with high complexity are still required. To effectively solve this problem, the Quantum Approximate Optimization Algorithm (QAOA) arises as a promising solution due to its comparative advantages. In particular, it can be realized in the case of shallow quantum circuits and a finite small number of qubits. Along these lines, in this work, a Max-Cut linear binary classifier based on QAOA (QAOA-MaxCut-LBC) was proposed. First, the data set was constructed into an undirected weighted graph, and the binary classification task was transformed into a Max-Cut problem. Then, a Variational Quantum Circuit (VQC) was built by using QAOA, and the expected value of the target Hamiltonian was transformed into a loss function. Finally, the circuit parameters were iteratively updated to make the loss function converge. The computational basis state with the maximum probability was taken as the classification result after the measurement. In the experimental study, our algorithm was validated on various datasets and compared with classical linear classifiers. Our scheme can be flexibly adjusted for the number of qubits, possessing the potential to scale to multi-classification tasks. The source code is accessible at the URL: https://github.com/Dullne/QAOA-MaxCut-LBC.
期刊介绍:
International Journal of Theoretical Physics publishes original research and reviews in theoretical physics and neighboring fields. Dedicated to the unification of the latest physics research, this journal seeks to map the direction of future research by original work in traditional physics like general relativity, quantum theory with relativistic quantum field theory,as used in particle physics, and by fresh inquiry into quantum measurement theory, and other similarly fundamental areas, e.g. quantum geometry and quantum logic, etc.