arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.13012quant-phcs.ET
收藏

CUAOA:一种面向 QAOA 的新型 CUDA 加速仿真框架

CUAOA: A Novel CUDA-Accelerated Simulation Framework for the QAOA

Jonas Stein, Jonas Blenninger, David Bucher, Peter J. Eder, Elif Çetiner, Maximilian Zorn, Claudia Linnhoff-Popien

AI总结:

本文提出了基于 NVIDIA CUDA 的 GPU 加速 QAOA 仿真框架 CUAOA,支持 Python 和 Rust,提供期望值计算、状态向量访问和快速采样等功能,在 MaxCut 问题上运行速度比现有框架快多个数量级。

摘要:

量子近似优化算法(QAOA)是一种著名的量子算法,旨在为经典计算机难以处理的组合优化问题寻找近似解。在当前量子硬件受限于噪声和有限量子比特的时期,仿真 QAOA 对研究仍至关重要。然而,现有最先进的仿真框架存在执行时间长,或缺乏全面功能、可用性和通用性的问题,常需用户自行实现核心功能。此外,这些框架主要局限于 Python,限制了其在 Rust 等更安全、更快速语言中的使用,例如 Rust 提供了高级并行化能力。本文利用 NVIDIA CUDA 工具包开发了一个 GPU 加速的 QAOA 仿真框架。该框架为 QAOA 仿真提供了完整接口,支持计算(精确)期望值、直接访问状态向量、快速采样,以及使用先进的梯度计算技术的高性能优化方法。该框架专为 Python 和 Rust 设计,可灵活集成到各类应用中,包括以 QAOA 为核心的快速算法实现。新框架的性能在 MaxCut 问题上进行了严格基准测试,并与当前最先进的通用量子电路仿真框架 Qiskit 和 Pennylane 以及专用 QAOA 仿真工具 QOKit 进行了比较。评估表明,该方法的运行时间优于现有最先进解决方案多个数量级。该实现已在 https://github.com/JFLXB/cuaoa 和 Zenodo 上公开。

英文摘要:

The Quantum Approximate Optimization Algorithm (QAOA) is a prominent quantum algorithm designed to find approximate solutions to combinatorial optimization problems, which are challenging for classical computers. In the current era, where quantum hardware is constrained by noise and limited qubit availability, simulating the QAOA remains essential for research. However, existing state-of-the-art simulation frameworks suffer from long execution times or lack comprehensive functionality, usability, and versatility, often requiring users to implement essential features themselves. Additionally, these frameworks are primarily restricted to Python, limiting their use in safer and faster languages like Rust, which offer, e.g., advanced parallelization capabilities. In this paper, we develop a GPU accelerated QAOA simulation framework utilizing the NVIDIA CUDA toolkit. This framework offers a complete interface for QAOA simulations, enabling the calculation of (exact) expectation values, direct access to the statevector, fast sampling, and high-performance optimization methods using an advanced state-of-the-art gradient calculation technique. The framework is designed for use in Python and Rust, providing flexibility for integration into a wide range of applications, including those requiring fast algorithm implementations leveraging QAOA at its core. The new framework's performance is rigorously benchmarked on the MaxCut problem and compared against the current state-of-the-art general-purpose quantum circuit simulation frameworks Qiskit and Pennylane as well as the specialized QAOA simulation tool QOKit. Our evaluation shows that our approach outperforms the existing state-of-the-art solutions in terms of runtime up to multiple orders of magnitude. Our implementation is publicly available at https://github.com/JFLXB/cuaoa and Zenodo.

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

↑