Journal of Computer Applications ›› 2026, Vol. 46 ›› Issue (11): 3580-3588.DOI: 10.11772/j.issn.1001-9081.2025101207

• Advanced computing • Previous Articles    

Application of quantum alternating operator Ansatz in maximum distance k-matching

Jingfei YU, Zhiqiang LI(), Tao WANG   

  1. College of Information and Artificial Intelligence,Yangzhou University,Yangzhou Jiangsu 225127,China
  • Received:2025-10-16 Revised:2025-12-02 Accepted:2025-12-05 Online:2025-12-10 Published:2026-11-10
  • Contact: Zhiqiang LI
  • About author:YU Jingfei, born in 1999, M. S. candidate. Her research interests include quantum algorithms, quantum circuit synthesis.
    WANG Tao, born in 2001, M. S. candidate. His research interests include quantum computing, quantum machine learning.
  • Supported by:
    National Natural Science Foundation of China(62071240)

量子交替算子在最大距离k匹配中的应用

于景非, 李志强(), 王涛   

  1. 扬州大学 信息与人工智能学院,江苏 扬州 225127
  • 通讯作者: 李志强
  • 作者简介:于景非(1999—),女,江苏泰州人,硕士研究生,主要研究方向:量子算法、量子电路综合
    王涛(2001—),男,江苏扬州人,硕士研究生,主要研究方向:量子计算、量子机器学习
  • 基金资助:
    国家自然科学基金资助项目(62071240)

Abstract:

Focusing on the two major bottlenecks of Quantum Approximate Optimization Algorithm (QAOA) in solving constrained combinatorial optimization problems, the high circuit layer requirements and the tendency to generate invalid solutions, the Maximum Distance k-Matching (MDkM) problem was used as an instance for systematic verification of the comprehensive performance of the Quantum Alternating Operator Ansatz (QAOA+) framework in achieving lower quantum circuit cost and higher solution accuracy while ensuring solution feasibility. First, the MDkM problem was mapped to its corresponding line graph via graph-theoretic reduction and transformed into a maximum independent set problem, which was easier to handle theoretically. Through this transformation, the original problem, without a solution in the quantum computing framework, was reduced to a classical problem with well-established quantum-solving frameworks, thereby forming a quantum modeling path based on graph-structure transformation. Second, mixed Hamiltonians capable of strictly constraining the search process to the feasible subspace were designed, thereby ensuring that all intermediate states and final outputs remained valid matches. Finally, numerical simulations were conducted on graphs of different sizes and types (weighted/unweighted), and differences between QAOA+ and QAOA were systematically compared in fidelity, approximation ratio, and convergence behavior. Experimental results showed that QAOA+ exhibited significant advantages over standard QAOA even at low circuit depth. For one layer, the fidelity of QAOA+ reached 92.1%, whereas that of QAOA was only 16%, with an improvement of 76.1 percentage points; For nine layers, the fidelity of QAOA+ remained stable at 93.6%, clearly higher than 70.3% achieved by QAOA at the same depth. In terms of solution quality, QAOA+ yielded an average approximation ratio above 90% for unweighted MDkM instances, while in weighted cases, the ratio showed notable fluctuations, indicating high sensitivity to parameter settings. The results confirm the practical potential of quantum algorithms for constrained combinatorial optimization problems and provide methodological guidance for constructing quantum algorithms in weighted settings.

Key words: Quantum Alternating Operator Ansatz (QAOA+), Maximum Distance k-Matching (MDkM), constrained combinatorial optimization, parameterized quantum circuit, Hamiltonian

摘要:

针对量子近似优化算法(QAOA)在求解带约束组合优化问题时存在的电路层数需求高、易产生非法解两大瓶颈,本文以最大距离k匹配(MDkM)问题为实例,系统验证量子交替算子(QAOA+)框架在保证解合法性的前提下,可实现更低量子电路成本与更高求解精度的综合性能。首先,通过图论归约将MDkM问题映射至对应的线图,从而把它转化为理论上更易处理的最大独立集问题。这一转化使得原本在量子计算框架下尚无解的难题归约为已有成熟量子求解框架的经典问题,从而构建基于图结构转化的量子建模路径。其次,设计能够严格约束搜索过程于可行子空间的混合哈密顿量,确保所有中间态与最终输出均为合法匹配。最后,在不同问题规模和类型(加权/无权)的图上进行数值模拟,系统比较QAOA+与QAOA在保真度、近似比与收敛行为方面的差异。实验结果表明,与标准QAOA相比,QAOA+即使在低电路层数下也表现出显著优势。当层数为1时,QAOA+的保真度达92.1%,而QAOA仅为16%,提升幅度达76.1个百分点;在层数为9时,QAOA+的保真度稳定于93.6%,明显高于QAOA在同等深度下的70.3%。在解质量方面,QAOA+在无权MDkM实例中的平均近似比超过90%,但在加权场景中的平均近似比出现显著波动,显示出对参数设置很敏感。本文验证了量子算法在约束组合优化问题中的实际应用潜力,可为加权场景下量子算法的构建提供方法参考。

关键词: 量子交替算子, 最大距离k匹配, 约束组合优化, 参数化量子电路, 哈密顿量

CLC Number: