arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2512.08245cs.SE
收藏

从Qiskit 1.x迁移到Qiskit 2.x的QAOA迁移:经验报告

Migrating QAOA from Qiskit 1.x to 2.x: An experience report

École de Technologie Supérieure de Montréal(蒙特利尔高等工程学院)

Julien Cardinal, Imen Benzarti, Ghizlane El boussaidi, Christophe Pere

AI总结:

本文报告了将QAOA从Qiskit 1.x迁移到2.x时发现的采样预算影响性能的问题,并提供了改进的建议。

摘要:

在不断演进的框架中迁移量子算法会引入微妙的行为变化,这些变化会影响准确性和可重复性。本文报告了我们将量子近似优化算法(QAOA)从使用Qiskit 1.x(v1原语)的Qiskit Algorithms迁移到使用Qiskit 2.x(v2原语)的自定义实现的经历。尽管电路、优化器和哈密顿量相同,新版本产生了截然不同的结果。系统分析揭示了根本原因:采样预算——每个迭代的电路执行次数(shots)。库的隐含使用无限制的shots产生了密集的概率分布,而v2默认的10000 shots只捕捉到状态空间的23%。将shots增加到250000恢复了库级别的准确性。本研究强调了量子-经典交互层面的隐藏参数如何主导混合算法性能,并为开发者和框架设计者提供了可操作的建议,以确保量子软件迁移中的可重复结果。

英文摘要:

Migrating quantum algorithms across evolving frameworks introduces subtle behavioral changes that affect accuracy and reproducibility. This paper reports our experience converting the Quantum Approximate Optimization Algorithm (QAOA) from Qiskit Algorithms with Qiskit 1.x (v1 primitives) to a custom implementation using Qiskit 2.x (v2 primitives). Despite identical circuits, optimizers, and Hamiltonians, the new version produced drastically different results. A systematic analysis revealed the root cause: the sampling budget -- the number of circuit executions (shots) per iteration. The library's implicit use of unlimited shots yielded dense probability distributions, whereas the v2 default of 10 000 shots captured only 23% of the state space. Increasing shots to 250 000 restored library-level accuracy. This study highlights how hidden parameters at the quantum-classical interaction level can dominate hybrid algorithm performance and provides actionable recommendations for developers and framework designers to ensure reproducible results in quantum software migration.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑