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

PauLIB:用于处理泡利字符串的高性能库

PauLIB: HPC Strategies for Pauli-Arithmetic-Based Quantum Computing Workloads and Simulations

MNM-Team LMU Munich(慕尼黑大学 MNM 团队)

Florian Krötz

AI总结:

提出基于位打包二元辛表示、排序数组布局和结构体数组内存布局的C++20库PauLIB,通过SIMD向量化和多线程合并显著加速泡利字符串处理,在500量子比特下单次泡利字符串乘法比PauliEngine快14倍,哈密顿量外积乘法快约10倍,贪心对易分组比PennyLane快21000倍,内存占用降低7.3倍。

摘要:

处理大型泡利和是量子化学、泡利传播和基于泡利的编译中的一个显著瓶颈。现有框架通常遭受Python解释器开销或使用哈希映射数据结构,这阻碍了SIMD向量化并使多线程合并复杂化。我们提出PauLIB,一个仅头文件的C++20库,通过三个关键架构选择消除这些瓶颈。一种位打包的二元辛表示,将每个量子比特编码为两位,将泡利乘法简化为按位异或和种群计数;一种排序数组布局,取代哈希映射以实现分支可预测的SIMD批量操作;以及一种结构体数组(SoA)内存布局,暴露连续字数组以进行显式SIMD向量化。在500量子比特下的基准测试表明,单次泡利字符串乘法运行时间为每次操作25纳秒——在所有测试的配对计数中,比PauliEngine快14倍,比Qiskit-flat快660倍。哈密顿量外积乘法在所有测试规模下比PauliEngine快约10倍,比Qiskit快45倍。贪心对易分组是变分算法中的主要预处理成本,由于紧凑的位打包表示,实现了比PennyLane高达21000倍的加速。紧凑布局将500量子比特下100万项哈密顿量的内存占用从1,036MB(Qiskit)减少到142MB,降低了7.3倍,从而在固定内存预算内直接支持更大的问题规模。PauLIB是开源的,并提供C++和Python接口。

英文摘要:

As quantum devices become accelerators within classical HPC deployments, the efficiency of the classical partition becomes critical. Workloads such as Hamiltonian manipulation, observable backpropagation, and Pauli-based compilation reduce to bulk arithmetic on Pauli strings and sums. We present HPC strategies for this arithmetic, demonstrated in PauLIB, a header-only C++20 library: a bit-packed binary symplectic representation reducing Pauli multiplication to a bitwise XOR and population count; a sorted, struct-of-arrays layout replacing hash maps and exposing contiguous word arrays to SIMD units and GPU warps; and deterministic OpenMP parallelism with race-free output partitioning. These strategies deliver orders-of-magnitude higher throughput and smaller memory footprint than Qiskit and PauliEngine, plus a speedup from a CUDA outer-product kernel on an H100. Two case studies, g-sim and truncated Pauli propagation, inherit these gains and scale unchanged from a desktop Arm CPU to a 72-core HPC Arm server. PauLIB is open source with C++ and Python interfaces.

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

↑