LogosQ: 一种高性能且类型安全的量子计算库
LogosQ: A High-Performance and Type-Safe Quantum Computing Library in Rust
AI总结:
LogosQ是一种用Rust实现的高性能量子计算库,通过编译时类型安全和优化技术,实现了比Python和Julia框架更高的性能和稳定性,适用于变分算法和量子模拟。
摘要:
开发稳健且高性能的量子软件具有挑战性,因为现有的基于Python的框架动态性较强,往往会出现运行时错误和可扩展性瓶颈。在本工作中,我们提出了LogosQ,这是一种用Rust实现的高性能后端无关量子计算库,通过编译时类型安全来确保正确性。与现有工具不同,LogosQ利用Rust静态分析来消除整个运行时错误类别,特别是在变分算法的参数位移规则梯度计算中。我们引入了新的优化技术,包括直接状态向量操作、自适应并行处理以及优化的FFT量子傅里叶变换,这些技术共同实现了状态准备(QFT)的加速高达900倍,以及变分工作负载在Python框架(PennyLane、Qiskit)上的加速2到5倍,在Julia实现(Yao)上达到6到22倍的加速,并与Q sharp具有竞争力的性能。除了性能之外,我们通过变分量子特征解算器(VQE)实验在分子氢和XYZ Heisenberg模型上验证了数值稳定性,即使在其他库失败的边缘情况下也实现了化学精度。通过将系统编程的安全性与高级电路优化相结合,LogosQ为可靠的高效量子模拟树立了新的标准。
英文摘要:
Developing robust and high performance quantum software is challenging due to the dynamic nature of existing Python-based frameworks, which often suffer from runtime errors and scalability bottlenecks. In this work, we present LogosQ, a high performance backend agnostic quantum computing library implemented in Rust that enforces correctness through compile time type safety. Unlike existing tools, LogosQ leverages Rust static analysis to eliminate entire classes of runtime errors, particularly in parameter-shift rule gradient computations for variational algorithms. We introduce novel optimization techniques, including direct state-vector manipulation, adaptive parallel processing, and an FFT optimized Quantum Fourier Transform, which collectively deliver speedups of up to 900 times for state preparation (QFT) and 2 to 5 times for variational workloads over Python frameworks (PennyLane, Qiskit), 6 to 22 times over Julia implementations (Yao), and competitive performance with Q sharp. Beyond performance, we validate numerical stability through variational quantum eigensolver (VQE) experiments on molecular hydrogen and XYZ Heisenberg models, achieving chemical accuracy even in edge cases where other libraries fail. By combining the safety of systems programming with advanced circuit optimization, LogosQ establishes a new standard for reliable and efficient quantum simulation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。