LogosQ: A High-Performance and Type-Safe Quantum Computing Library in Rust

📅 2025-12-28
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
To address frequent runtime errors and scalability bottlenecks in existing Python-based quantum frameworks—stemming from their dynamic typing—we propose the first backend-agnostic, Rust-based high-performance quantum computing library. Our approach enforces compile-time type safety to eliminate runtime errors and pioneers deep integration of Rust’s static analysis into the quantum software stack. We introduce novel paradigms: direct state-vector manipulation, adaptive multithreaded scheduling, and FFT-accelerated quantum Fourier transform (QFT). These techniques achieve substantial speedups while preserving numerical stability: QFT state preparation is 900× faster than mainstream Python frameworks; variational tasks (e.g., VQE) accelerate by 2–5×, outperforming Julia/Yao by 6–22×; and chemical accuracy is attained for H₂ and XYZ spin models, with robust convergence even under boundary conditions.

Technology Category

Application Category

📝 Abstract
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.
Problem

Research questions and friction points this paper is trying to address.

Develops a high-performance quantum library in Rust for safety
Eliminates runtime errors in variational quantum algorithms via type safety
Achieves speedups and accuracy over existing quantum software frameworks
Innovation

Methods, ideas, or system contributions that make the work stand out.

Rust-based library ensures compile-time type safety
Introduces direct state-vector manipulation and adaptive parallel processing
Optimizes Quantum Fourier Transform with FFT for speedups up to 900x
S
Shiwen An
School of Engineering, Institute of Science Tokyo, Yokohama, Kanagawa, 226-8502 Japan
J
Jiayi Wang
School of Computer Science, Georgia Institute of Technology, Atlanta, GA, 30332 USA
Konstantinos Slavakis
Konstantinos Slavakis
Institute of Science Tokyo (ex TokyoTech), Department of Information and Communications Engineering
Signal processingMachine learning