Skip to main content

Python toolkit for superconducting qubit simulation.

Project description

pysuqu logo

pysuqu

PyPI version Python versions License

Python toolkit for superconducting qubit simulation.

pysuqu provides qubit modeling, multi-qubit and coupler workflows, and decoherence/noise analysis in one package.

English | 简体中文

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.qubit for single-qubit and multi-qubit superconducting circuit modeling
  • pysuqu.decoherence for decoherence and noise-analysis workflows
  • demo/ 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.qubit and pysuqu.decoherence.
  • pysuqu.qubit.experimental contains 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.qubitpysuqu.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysuqu-2.0.2.tar.gz (241.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysuqu-2.0.2-py3-none-any.whl (128.0 kB view details)

Uploaded Python 3

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

Hashes for pysuqu-2.0.2.tar.gz
Algorithm Hash digest
SHA256 bd79ee089d6a56218cd89039918fd2cf8a4e33dea663580482c619d16782014e
MD5 83ec913adbbb49cf3fd5ce507e59a023
BLAKE2b-256 60e002c5c44ba2bd8586402eea3236bc7d1b0e22b33c6562185a24cc479dc5b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysuqu-2.0.2.tar.gz:

Publisher: publish-pypi.yml on znb888/pysuqu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pysuqu-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1860911201b9aba39f53f57b59b7d6a6ef58e767db81d72474c3e56a24eab35b
MD5 b37260a5e9462805b6bd9e3062f96dac
BLAKE2b-256 1f6542db7ebb8ab2315d096715d2c3fa7e298f0375265156ea4d67ffd83c06cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysuqu-2.0.2-py3-none-any.whl:

Publisher: publish-pypi.yml on znb888/pysuqu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page