Python toolkit for superconducting qubit simulation.
Project description
pysuqu
Python toolkit for superconducting qubit simulation.
pysuqu provides qubit modeling, multi-qubit and coupler workflows, and
decoherence/noise analysis in one package.
English
pysuqu is a public Python package for superconducting qubit simulation. This
repository contains the library, documentation, tests, and demo notebooks with
synthetic or public-safe data.
Install
For most users, install from PyPI:
pip install pysuqu
pysuqu supports Python 3.8+.
If you want the latest repository version for development:
git clone https://github.com/znb888/pysuqu.git
cd pysuqu
pip install -r requirements.txt
pip install -e .
What It Covers
pysuqu.qubitfor single-qubit and multi-qubit superconducting circuit modelingpysuqu.decoherencefor decoherence and noise-analysis workflowsdemo/for end-to-end notebook examples
Quick Start
This example builds a simple transmon-like qubit model and prints the first three energy levels:
from pysuqu.qubit import AbstractQubit
qubit = AbstractQubit(
frequency=5e9,
anharmonicity=-250e6,
frequency_max=6e9,
qubit_type="Transmon",
energy_trunc_level=12,
is_print=False,
)
print(qubit.get_energylevel()[:3])
For decoherence and coupler workflows, the notebook examples in demo/ are the
best next stop.
Where To Start
Public API Notes
- For normal usage, start from
pysuqu.qubitandpysuqu.decoherence. pysuqu.qubit.experimentalcontains exploratory placeholders and is not part of the usual workflow.- Demo notebooks in this public repository use synthetic or public-safe data.
简体中文
pysuqu 是一个面向超导量子比特仿真的 Python 包。这个公开仓库包含库代码、
文档、测试,以及使用合成数据或公开安全数据整理出的 demo notebook。
安装
普通用户直接从 PyPI 安装:
pip install pysuqu
pysuqu 支持 Python 3.8+。
如果你想基于仓库开发,安装方式如下:
git clone https://github.com/znb888/pysuqu.git
cd pysuqu
pip install -r requirements.txt
pip install -e .
主要内容
pysuqu.qubit:单比特、多比特和耦合器相关的建模能力pysuqu.decoherence:退相干与噪声分析工作流demo/:端到端 notebook 示例
快速开始
下面这个例子会构建一个简化的 transmon 模型,并输出前三个能级:
from pysuqu.qubit import AbstractQubit
qubit = AbstractQubit(
frequency=5e9,
anharmonicity=-250e6,
frequency_max=6e9,
qubit_type="Transmon",
energy_trunc_level=12,
is_print=False,
)
print(qubit.get_energylevel()[:3])
如果你要看退相干分析或 coupler 工作流,最直接的入口是 demo/ 里的 notebook。
从哪里开始
公共 API 说明
- 正常使用时,优先从
pysuqu.qubit和pysuqu.decoherence开始。 pysuqu.qubit.experimental里是探索性占位入口,不属于常规工作流。- 本公开仓库中的 demo notebook 只使用合成数据或公开安全数据。
License / 许可证
pysuqu is licensed under the
GNU Affero General Public License v3.0 or later.
欢迎通过 issue 和 pull request 提出改进。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysuqu-2.0.2.tar.gz.
File metadata
- Download URL: pysuqu-2.0.2.tar.gz
- Upload date:
- Size: 241.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd79ee089d6a56218cd89039918fd2cf8a4e33dea663580482c619d16782014e
|
|
| MD5 |
83ec913adbbb49cf3fd5ce507e59a023
|
|
| BLAKE2b-256 |
60e002c5c44ba2bd8586402eea3236bc7d1b0e22b33c6562185a24cc479dc5b6
|
Provenance
The following attestation bundles were made for pysuqu-2.0.2.tar.gz:
Publisher:
publish-pypi.yml on znb888/pysuqu
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysuqu-2.0.2.tar.gz -
Subject digest:
bd79ee089d6a56218cd89039918fd2cf8a4e33dea663580482c619d16782014e - Sigstore transparency entry: 2084834327
- Sigstore integration time:
-
Permalink:
znb888/pysuqu@5f3a0b6cc919a4c8abbcbd87ce46270b828f3a06 -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/znb888
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5f3a0b6cc919a4c8abbcbd87ce46270b828f3a06 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pysuqu-2.0.2-py3-none-any.whl.
File metadata
- Download URL: pysuqu-2.0.2-py3-none-any.whl
- Upload date:
- Size: 128.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1860911201b9aba39f53f57b59b7d6a6ef58e767db81d72474c3e56a24eab35b
|
|
| MD5 |
b37260a5e9462805b6bd9e3062f96dac
|
|
| BLAKE2b-256 |
1f6542db7ebb8ab2315d096715d2c3fa7e298f0375265156ea4d67ffd83c06cb
|
Provenance
The following attestation bundles were made for pysuqu-2.0.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on znb888/pysuqu
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysuqu-2.0.2-py3-none-any.whl -
Subject digest:
1860911201b9aba39f53f57b59b7d6a6ef58e767db81d72474c3e56a24eab35b - Sigstore transparency entry: 2084834347
- Sigstore integration time:
-
Permalink:
znb888/pysuqu@5f3a0b6cc919a4c8abbcbd87ce46270b828f3a06 -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/znb888
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5f3a0b6cc919a4c8abbcbd87ce46270b828f3a06 -
Trigger Event:
push
-
Statement type: