Symbolic Quantum Computing Simulator
Project description
SymQC:符号化量子计算模拟器
该文档已过时,待更新。
🌈 介绍
SymQC
是一款符号化的量子计算模拟器,同时提供了符号化量子运算的相关API,旨在帮助用户学习量子计算以及量子算法相关知识。
作为Quingo
项目的一部分,支持使用 QCIS
指令集作为输入, 并集成为Qunigo 量子-经典异构编程框架中的量子模拟后端。
🌟 安装
- 运行依赖
- 安装
pip install symqc
或者
git clone https://gitee.com/quingo/SymQC.git
cd SymQC
pip install -e .
使用
- 安装后可以通过如下方式使用SymQC
python -m symqc input -o output
一个简单的示例
输入文件test.qcis
H Q1
CNOT Q1 Q2
M Q1
M Q2
关于输入文件格式可以参考QCIS指令集
然后运行SymQC
python -m symqc test.qcis -o result.md
可以得到运行结果result.md
The ans of test.qcis
Init state is: $$ \left[\begin{matrix}a_{0} & a_{1} & a_{2} & a_{3}\end{matrix}\right] $$
Final state is: $$ \left[\begin{matrix}0 & 0 & 0 & \frac{\sqrt{2} a_{0}}{2} - \frac{\sqrt{2} a_{1}}{2}\end{matrix}\right] $$
- 您也可以通过
--help
选项来了解各个选项的含义
测试
use
pytest
to run the unittest in SymQC.
🥵 文档
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
symqc-0.1.0.tar.gz
(38.7 kB
view details)
Built Distribution
symqc-0.1.0-py3-none-any.whl
(40.8 kB
view details)
File details
Details for the file symqc-0.1.0.tar.gz
.
File metadata
- Download URL: symqc-0.1.0.tar.gz
- Upload date:
- Size: 38.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38d68df0b8b1795581d498592fbf893b7c8cc1f7a356d8cbf37fe6351c1fe9ca |
|
MD5 | 7380150b1fff66cd2476b8f09c76b55c |
|
BLAKE2b-256 | 7d970b90e5fc6c40ac43c2ab5560d9f5cd08767e2630392820e77539658847ba |
File details
Details for the file symqc-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: symqc-0.1.0-py3-none-any.whl
- Upload date:
- Size: 40.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0be253b304e07915dfd120eed2dc2a80933cab06b2998775cfa0ea71850005d3 |
|
MD5 | 0cc99bcccb627cf5dd5993826f8e9364 |
|
BLAKE2b-256 | e70dcb73f6ec25d0e2554e78b0691cac89860b40b31d03819774819a665820e6 |