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.


翻译:开发稳健且高性能的量子软件具有挑战性,这主要源于现有基于 Python 的框架的动态特性,这些框架常受运行时错误和可扩展性瓶颈的困扰。本文中,我们提出了 LogosQ,一个用 Rust 实现的高性能、后端无关的量子计算库,它通过编译时类型安全来强制保证正确性。与现有工具不同,LogosQ 利用 Rust 的静态分析来消除整类运行时错误,特别是在变分算法的参数平移规则梯度计算中。我们引入了新颖的优化技术,包括直接态矢操作、自适应并行处理以及 FFT 优化的量子傅里叶变换。这些技术共同实现了高达 900 倍的状态制备(QFT)加速,变分工作负载相比 Python 框架(PennyLane, Qiskit)快 2 至 5 倍,相比 Julia 实现(Yao)快 6 至 22 倍,并与 Q# 性能相当。除了性能之外,我们通过在氢分子和 XYZ 海森堡模型上的变分量子本征求解器实验验证了数值稳定性,即使在其它库会失效的边缘情况下也能达到化学精度。通过将系统编程的安全性与高级电路优化相结合,LogosQ 为可靠高效的量子模拟树立了新标准。

0
下载
关闭预览

相关内容

Rust 是一种注重高效、安全、并行的系统程序语言。
量子计算在非正规战争中的新兴潜力
专知会员服务
17+阅读 · 2025年2月23日
专知会员服务
92+阅读 · 2021年4月12日
AnDOSid - 适用于黑客的Android应用程序
黑白之道
11+阅读 · 2019年3月14日
Python推荐系统框架:RecQ
专知
12+阅读 · 2019年1月21日
技术动态 | TechKG:一个面向中文学术领域的大型知识图谱
开放知识图谱
25+阅读 · 2018年12月20日
超全总结:神经网络加速之量化模型 | 附带代码
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
VIP会员
相关VIP内容
量子计算在非正规战争中的新兴潜力
专知会员服务
17+阅读 · 2025年2月23日
专知会员服务
92+阅读 · 2021年4月12日
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员