Skip to main content

A middleware for translating a quantum program into different quantum software stacks.

Project description

PyQuantumKit简介

PyQuantumKit是一个基于Python的量子软件开发辅助工具,设计目标包括:

  • 提供统一的方式在不同的基于Python的量子开发框架上构建量子线路,实现代码复用;
  • 提供常用的量子算法和开发辅助功能,提升量子软件开发效率和正确性;
  • 软件架构具有扩展性,未来可方便地添加更多的功能和量子开发框架的支持。

安装和使用

使用pip install命令可安装PyQuantumKit

pip install pyquantumkit

PyQuantumKit要求Python版本>=3.8,且依赖如下Python包:

  • sympy >= 1.8
  • numpy >= 1.22.0

通常,PyQuantumKit需要与受支持的基于Python的量子开发框架(例如qiskit或pyqpanda3等)联合使用。可以在安装PyQuantumKit的同时安装受支持的量子开发框架,例如,使用如下命令在安装PyQuantumKit的同时安装qiskit:

pip install pyquantumkit[qiskit]

使用git clone命令将PyQuantumKit仓库复制到本地:

git clone https://github.com/hiquarc/PyQuantumKit.git

联系我们

PyQuantumKit由中国科学院高能物理研究所计算中心研发,得到了国家高能物理科学数据中心的支持。

项目负责人:龙沛洵 longpx@ihep.ac.cn

版本历史

2026/4/15 v.0.1.6

  • 为项目添加说明文档

2026/3/27 v.0.1.5

  • 新增一个支持的量子开发框架:cqlib
  • CircuitIO类现在可以将线路导出为QSharp和isQ语言的代码
  • 新增基于量子线路矩阵表示的线路等价性和恒等性检验函数

2026/1/20 v.0.1.4

  • 新增符号运算库 (/symbol) ,用于构建量子线路的矩阵表示
  • CircuitIO类现在能支持以sympy符号作为门的参数来构建量子线路
  • 增加支持 $CS$ 、$CS^{\dagger}$ 、 $\sqrt{X}$ 和 $\sqrt{X}^{\dagger}$ 门

2025/12/04 v.0.1.3

  • 新增apply_exp_pauli函数用于支持量子哈密顿模拟算法
  • 新增量子哈密顿模拟算法库(实验性) (/library/hamiltonian.py)

2025/7/25 v.0.1.2

  • 新增CircuitIO类,用于量子线路的格式化操作
  • 修改了应用门的代码的翻译方式,以适应CircuitIO类输出为用户可读代码的功能

2025/7/10 v.0.1.1

  • 首个预览版本 (v.0.1.1) 发布

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

pyquantumkit-0.1.6.tar.gz (29.9 kB view details)

Uploaded Source

Built Distribution

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

pyquantumkit-0.1.6-py3-none-any.whl (40.8 kB view details)

Uploaded Python 3

File details

Details for the file pyquantumkit-0.1.6.tar.gz.

File metadata

  • Download URL: pyquantumkit-0.1.6.tar.gz
  • Upload date:
  • Size: 29.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for pyquantumkit-0.1.6.tar.gz
Algorithm Hash digest
SHA256 91b433c765e04514580ea2574af58bfa83911bdce82f02737d093a1f25b54cf9
MD5 46409a49cbb4cf2ed03fee6ed0ee2143
BLAKE2b-256 4d93e50da176588142cfb29456b8dc78b68008d771856376edbcb7996f137496

See more details on using hashes here.

File details

Details for the file pyquantumkit-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: pyquantumkit-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 40.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for pyquantumkit-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f0f55517d1436c6bd7481635ea23158e28b30fa7268f6f443c1b91573e60e2ec
MD5 b59c4b78c9cfaadfb08f56c36a7edc46
BLAKE2b-256 cebab448cdd4603f465099944886c23fad52442a72e421d7699189ead602eecf

See more details on using hashes here.

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