Skip to main content

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.

🥵 文档

SymQC API Rference

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)

Source distribution for symqc 1.1.1
File Size Uploaded
symqc-1.1.1.tar.gz 38.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for symqc 1.1.1
File Interpreter ABI Platform
symqc-1.1.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.0.1

1 release file

1.0.0

1 release file

0.1.0

2 release files

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page