arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.15098quant-phcs.ARcs.DCcs.PF
收藏

通过缓存局部性优化加速集成GPU上的状态向量量子模拟:跨架构评估

Accelerating State-Vector Quantum Simulation on Integrated GPUs via Cache Locality Optimization: A Cross-Architecture Evaluation

Instituto de Pesquisas Eldorado(Eldorado研究所);Universidade Federal de Santa Catarina(圣卡塔琳娜联邦大学);Pontifícia Universidade Católica do Rio Grande do Sul(南里奥格兰德天主教 Pontifícia 大学)

Gabriel Fernandes Thomaz, Jerusa Marchi, Eduarda Rodrigues Monteiro, Fernando Augusto Caletti de Barros, Evandro Chagas Ribeiro da Rosa

AI总结:

本文通过缓存局部性优化提升集成GPU上量子模拟效率,针对不同架构验证了状态分片优化的有效性,显著提升了GPU相对于CPU的速度提升。

摘要:

经典量子算法模拟是电路开发、测试和验证的关键工具。尽管GPU加速显著减少了模拟时间,但大多数高性能模拟器依赖于针对数据中心硬件的供应商特定框架。为扩大量子模拟的可访问性,本文提出了一种无供应商依赖的方法,针对消费者级笔记本电脑中常见的集成GPU进行优化。状态向量模拟的主要挑战是其固有的空间局部性差,导致内存带宽瓶颈。因此,基准实现随着模拟qubit数量的增加而出现严重的相对GPU加速下降。为解决这一限制,我们引入了状态分片优化,重新组织量子态向量以最大化最后一级缓存局部性并减少昂贵的主内存获取。我们使用量子相位估计算法在Intel、AMD和Apple的多样化架构上评估了该策略。实验结果表明,所提出的优化方法在较大qubit规模下有效缓解了性能下降。特别是,对于28个qubit的模拟,优化在Intel Core i5上逆转了性能劣势,将GPU相对于CPU的速度提升从0.95x提高到1.89x,并将Apple M1 Pro的速度提升从3.71x提高到5.88x。总体而言,该方法带来了一致的执行时间改进,证明了集成GPU在高效量子电路模拟中的可行性。

英文摘要:

The classical simulation of quantum algorithms is a crucial tool for circuit development, testing, and validation. Although acceleration using GPUs significantly reduces simulation time, most high-performance simulators rely on vendor-specific frameworks that target data-center hardware. To broaden access to quantum simulation, this work proposes a vendor-agnostic approach targeting the integrated GPUs commonly found in consumer-grade laptops. A primary challenge in state-vector simulation is its inherently poor spatial locality, which creates a memory bandwidth bottleneck. Consequently, baseline implementations experience a severe degradation in relative GPU speedup as the number of simulated qubits increases. To address this limitation, we introduce a state partitioning optimization that reorganizes the quantum state vector to maximize the last-level cache locality and minimize costly main memory fetches. We evaluate this strategy using a Quantum Phase Estimation algorithm across diverse architectures from Intel, AMD, and Apple. The experimental results demonstrate that the proposed optimization successfully mitigates performance degradation at larger qubit scales. In particular, for a 28-qubit simulation, the optimization reversed a performance deficit on an Intel Core i5, improving the GPU speedup over the CPU from 0.95x to 1.89x, and increased the Apple M1 Pro speedup from 3.71x to 5.88x. Overall, this approach yields consistent execution time improvements, demonstrating the viability of integrated GPUs for efficient quantum circuit simulation.

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

↑