百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

LogosQ

> 数据库
开源

Rust 中的量子计算库,可帮助部署您的模拟

192 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Rust 中的量子计算库,可帮助部署您的模拟

This project is a quantum computing library developed in Rust, inspired by existing libraries such as QPP in C++, Yao.jl in Julia, and Pennylane in Python. The library aims to provide a comprehensive set of tools for quantum computing, including quantum gates, circuits, states, algorithms, and noise simulation.

λόγος (lógos) comes from Greek means the logic.

Installation

To build and run the project, ensure you have Rust installed on your machine. You can install Rust using rustup.

Add LogosQ to your project by adding the following to your Cargo.toml:

toml
[dependencies]
logosq = "0.2.5"

or clone the repository and navigate to the project directory:

bash
git clone https://github.com/zazabap/logosq.git
cd logosq
cargo build

Usage

To use the library, you can include it in your Rust project by adding it as a dependency in your Cargo.toml file. Here’s an example of how to create and manipulate basic quantum gates

The examples directory contains several example files demonstrating how to use the library. The official documentation carefully listed the API usage and give some great tutorial for the beginners. If you are completely new to quantum computing, feel free to checkout!

Because LogosQ is written in Rust, the memory safety is the biggest advantage over the other library, and could be verified through benchmark. Please also feel free to checkout the benchmark we have compare with the Pennylane and other library!

Feature

The most important feature comes from the implementation on the parameter shift rules and the ansatz structure, where such feature is rarely implemented for quantum computing library in Rust! You could create a parameterized ansatz/quantum circuit that helps you find out the optimal solution. Here are some basic instruction to create Variational Quantum Eigensolver, Quantum Natural Gradient and Ansatz in Optimization Module.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes. For further details, please check the DevGuide.md

Citation

If you use LogosQ in your research, please cite:

An, S., Wang, J., & Slavakis, K. (2025). LogosQ: A High-Performance and Type-Safe Quantum Computing Library in Rust. arXiv preprint arXiv:2512.23183. https://arxiv.org/abs/2512.23183

bibtex
@misc{an2025logosqhighperformancetypesafequantum,
      title={LogosQ: A High-Performance and Type-Safe Quantum Computing Library in Rust}, 
      author={Shiwen An and Jiayi Wang and Konstantinos Slavakis},
      year={2025},
      eprint={2512.23183},
      archivePrefix={arXiv},
      primaryClass={quant-ph},
      url={https://arxiv.org/abs/2512.23183}, 
}

License

This project is licensed under the MIT License. See the LICENSE file for more details.

FAQ

  1. Some bugs might appear when using the crate, one of the error related with missing package in libfontconfig1-dev, in such case, running on debian/linux (tested on ubuntu) could fix the build error.
bash
sudo apt-get update
sudo apt-get install -y libfontconfig1-dev pkg-config

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustquantumquantum-algorithmsquantum-computingquantum-information

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库