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-1.1.1.tar.gz
(38.7 kB
view details)
Built Distribution
symqc-1.1.1-py3-none-any.whl
(40.8 kB
view details)
File details
Details for the file symqc-1.1.1.tar.gz
.
File metadata
- Download URL: symqc-1.1.1.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 | eaa8f6b847f5c00dbca6bd8245c87a574e35d55d74a4f91ed92a4a4f4583df34 |
|
MD5 | 740ecd6bea1d9c81dd90ce02bf21af9a |
|
BLAKE2b-256 | 3e0de39584bf1c2d6251f901fe7b099b47070318a34ca31e773ddfb12e45266d |
File details
Details for the file symqc-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: symqc-1.1.1-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 | ead40ee4702ea19bf05863b7bbdb8ea49be0f22fc00776aca06c3174461a404c |
|
MD5 | a4f0812096b9274e032911e539a6d729 |
|
BLAKE2b-256 | 06708b44b885e31c23e90c14ea7050a524c48370d83b4273bacc37ae2ae30c18 |