Cqlib: A High-Performance Software Stack for Quantum Computing
Abstract
This paper presents Cqlib, a high-performance software stack for quantum computing built around a unified quantum circuit model. Its native Rust core provides efficient implementations of circuit processing, quantum-state and operator computation, compilation, and optimization, while Python and C interfaces support algorithm development and system integration. Cqlib covers quantum program construction, simulation, analysis, compilation, device adaptation, and result processing under consistent program semantics. Through OpenQASM and the Quantum Control Instruction Set (QCIS), Cqlib supports program representation and hardware-oriented execution. Cqlib further provides backend interfaces for device execution, with Cqlib-Tianyan serving as one implementation for QCIS-compatible quantum hardware. Evaluations using parameterized compilation tasks from Benchpress and related tests show that Cqlib achieves good functional coverage, compilation correctness, and execution efficiency within the evaluated task scope. We develop Cqlib-Algorithm as a modular library of reusable operators and composable components for widely used quantum algorithms, including quantum search, phase estimation, and variational algorithms, with additional support for error mitigation. To complement these building blocks with domain-specific workflows, we further develop Cqlib-VQE, Cqlib-QAOA, and Cqlib-QML for application-level studies in quantum chemistry, combinatorial optimization, and quantum machine learning, respectively. Cqlib also integrates source-grounded Skills and MCP-based tools to support agent-assisted program generation, backend execution, and result-guided workflow refinement. Overall, Cqlib provides a unified and extensible software foundation that connects quantum algorithm development, simulation, compilation, and execution on QCIS-compatible quantum hardware.
Create a lesson
Metadata
- Comments
- 32 pages, 6 figures. A general-purpose and extensible software framework for quantum computing
Related papers
Optimizing Locally Equivalent Graph States in Quantum Computing Using Greedy Best-First Search
Shared title terminologyquant-phSora Harada, Ryo Kuroiwa, Shin Nishio et al.
Feed-Forward Dimension Control for High-Dimensional Quantum Key Distribution over Time-Varying Airborne Free-Space Links
Shared title terminologyquant-phMurtuza Lemonwala, Laxima Niure Kandel
Where to Hide the Traps: Robust Placement in Verifiable Blind Quantum Computation
Shared title terminologyquant-phNoureldin Mohamed, Saif Al-Kuwari
Quantum Approximation and Integration in Sobolev Spaces -- Low Smoothness
Shared title terminologyquant-phStefan Heinrich
Solving the Traveling Salesman Problem Using Quantum Devices: QUBO and HOBO Formulations
Shared title terminologyquant-phG. V. Shuvalov, E. N. Krivtsova, A. V. Kapranov et al.
Exponential advantage in quantum observation with one extra qubit
Shared title terminologyquant-phZhenyu Du, Xiongfeng Ma, Vlatko Vedral et al.