Until high-fidelity quantum computers with a large number of qubits become widely available, classical simulation remains a vital tool for algorithm design, tuning, and validation. We present a simulator for the Quantum Approximate Optimization Algorithm (QAOA). Our simulator is designed with the goal of reducing the computational cost of QAOA parameter optimization and supports both CPU and GPU execution. Our central observation is that the computational cost of both simulating the QAOA state and computing the QAOA objective to be optimized can be reduced by precomputing the diagonal Hamiltonian encoding the problem. We reduce the time for a typical QAOA parameter optimization by eleven times for $n = 26$ qubits compared to a state-of-the-art GPU quantum circuit simulator based on cuQuantum. Our simulator is available on GitHub: https://github.com/jpmorganchase/QOKit
翻译:直到拥有大量量子比特的高保真量子计算机广泛可用之前,经典模拟仍是算法设计、调优和验证的关键工具。我们提出了一种针对量子近似优化算法(QAOA)的模拟器。该模拟器旨在降低QAOA参数优化的计算成本,并支持CPU和GPU执行。我们的核心发现是:通过预先计算编码问题的对角哈密顿量,可以降低模拟QAOA状态和计算待优化QAOA目标函数的计算成本。与基于cuQuantum的最先进GPU量子电路模拟器相比,我们将典型QAOA参数优化的时间缩短了11倍(针对$n=26$量子比特)。我们的模拟器可在GitHub上获取:https://github.com/jpmorganchase/QOKit