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

QCLAB ++:在GPU上模拟量子线路

QCLAB++: Simulating Quantum Circuits on GPUs

Roel Van Beeumen, Daan Camps, Neil Mehta

摘要:

我们介绍了qclab++,一个轻量级的,完全模板化的C++包的GPU加速量子线路模拟。该代码提供了高度的可移植性,因为它没有外部依赖性,并且GPU内核通过OpenMP卸载生成。qclab++通过针对1-qubit、受控1-qubit和2-qubit门的高度优化的门模拟算法,针对性能和数值稳定性而设计。此外,我们还介绍了qclab,一个量子线路工具箱的Matlab与语法,模仿qclab++。这为用户提供了灵活性和易用性的脚本语言,如Matlab,用于研究他们的量子算法,同时在需要时提供高性能的GPU加速。因此,qclab++库提供了独特的特性组合。我们将qclab++中的CPU模拟器与OpenMP生成的GPU内核进行了比较,并观察到超过$40\times$的加速比。此外,我们还比较qclab++与其他电路仿真软件包,如cirq-qsim和qibo,在NERSC的Perlmutter系统上进行的一系列基准测试,并说明其竞争力。

英文摘要:

We introduce qclab++, a light-weight, fully-templated C++ package for GPU-accelerated quantum circuit simulations. The code offers a high degree of portability as it has no external dependencies and the GPU kernels are generated through OpenMP offloading. qclab++ is designed for performance and numerical stability through highly optimized gate simulation algorithms for 1-qubit, controlled 1-qubit, and 2-qubit gates. Furthermore, we also introduce qclab, a quantum circuit toolbox for Matlab with a syntax that mimics qclab++. This provides users the flexibility and ease of use of a scripting language like Matlab for studying their quantum algorithms, while offering high-performance GPU acceleration when required. As such, the qclab++ library offers a unique combination of features. We compare the CPU simulator in qclab++ with the GPU kernels generated by OpenMP and observe a speedup of over $40\times$. Furthermore, we also compare qclab++ to other circuit simulation packages, such as cirq-qsim and qibo, in a series of benchmarks conducted on NERSC's Perlmutter system and illustrate its competitiveness.

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

↑