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
pytestto run the unittest in SymQC.
🥵 文档
Metadata
Release files for symqc 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| symqc-1.1.1.tar.gz | 38.7 kB | Without provenance | Details for symqc-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| symqc-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for symqc-1.1.1-py3-none-any.whl |
Total release size: 79.4 kB
Release files / symqc-1.1.1.tar.gz
| Download URL | symqc-1.1.1.tar.gz |
|---|---|
| Size | 38.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eaa8f6b847f5c00dbca6bd8245c87a574e35d55d74a4f91ed92a4a4f4583df34
|
|
BLAKE2b-256 checksum How to use checksums |
3e0de39584bf1c2d6251f901fe7b099b47070318a34ca31e773ddfb12e45266d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / symqc-1.1.1-py3-none-any.whl
| Download URL | symqc-1.1.1-py3-none-any.whl |
|---|---|
| Size | 40.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ead40ee4702ea19bf05863b7bbdb8ea49be0f22fc00776aca06c3174461a404c
|
|
BLAKE2b-256 checksum How to use checksums |
06708b44b885e31c23e90c14ea7050a524c48370d83b4273bacc37ae2ae30c18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for symqc 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.