Skip to main content

WuYueSDK

一、介绍

WuYueSDK是一款基于量子逻辑门的开源量子计算编程框架,其核心由三个模块组成,分别是wuyue quantum、wuyue qutorch、wuyue pulse。

wuyue quantum可用于复杂量子线路的模拟以及量子程序的构建,是联接量子计算开发者与经典模拟器和真实量子计算硬件的高级语言,可协助使用者高效地进行量子算法设计和验证。

wuyue qutorch是一款量子人工智能编程框架,提供自动微分与向量化并行能力,支持高效的量子电路构建与训练,适用于量子机器学习、量子组合优化及量子化学模拟等应用场景。

wuyue pulse是脉冲级量子编程框架,支持脉冲级精细调度与优化,实现脉冲级量子计算流程模拟。

二、安装

通过pip安装

本项目推荐python 3.11,需安装pytorch

通过下述命令编译安装WuYueSDK,可选下述两种方式

1、标准安装

pip install wuyue

2、源码安装,以来如下所示

依赖 用途 是否必需
C++ 编译器 (g++/clang++/MSVC) 编译 C++ 扩展 必需
CMake (≥ 3.11) 构建系统 必需
Eigen3 线性代数运算 必需
pybind11 Python/C++ 绑定 必需
OpenMP 多线程并行加速 可选(强烈推荐)
注意:若无 C++ 编译器,安装时会自动跳过 C++ 扩展编译,仅安装 Python 部分。
构建安装命令如下
python setup.py bdist_wheel
pip install ./dist/wuyue-1.1.2-py3-none-any.whl

三、使用样例

WuYueSDK模块样例请参考demo/readme.md、doc/readme.md

四、测试

本项目使用pytest进行测试,通过下述命令安装测试环境

pip install pytest pytest-cov

进入项目根目录,执行下述命令进行测试

pytest tests/python/ -v --cov=wuyue --cov-report=html

五、许可证

WuYueSDK开源代码遵循MulanPSL-2.0开源协议。

Metadata

Release files for wuyue 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wuyue 1.2.0
File Size Uploaded Provenance Actions
wuyue-1.2.0.tar.gz 603.1 kB Without provenance Details for wuyue-1.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for wuyue 1.2.0
File Actions
wuyue-1.2.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for wuyue-1.2.0-cp313-cp313-win_amd64.whl
wuyue-1.2.0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for wuyue-1.2.0-cp313-cp313-manylinux_2_28_x86_64.whl
wuyue-1.2.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for wuyue-1.2.0-cp313-cp313-macosx_11_0_arm64.whl
wuyue-1.2.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for wuyue-1.2.0-cp312-cp312-win_amd64.whl
wuyue-1.2.0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for wuyue-1.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
wuyue-1.2.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for wuyue-1.2.0-cp312-cp312-macosx_11_0_arm64.whl
wuyue-1.2.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for wuyue-1.2.0-cp311-cp311-win_amd64.whl
wuyue-1.2.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for wuyue-1.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
wuyue-1.2.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for wuyue-1.2.0-cp311-cp311-macosx_11_0_arm64.whl

Total release size: 16.8 MB

Release files / wuyue-1.2.0.tar.gz

Download URL wuyue-1.2.0.tar.gz
Size 603.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7facb750b6e2382ee373f93e41423a42baadbcc61fe22fcbb615f52e7e000abe
BLAKE2b-256 checksum
How to use checksums
50a77a392c66dd09e4de83730137daac5b1d891fee7cc4e0370fad2f662551ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.10

Release files / wuyue-1.2.0-cp313-cp313-win_amd64.whl

Download URL wuyue-1.2.0-cp313-cp313-win_amd64.whl
Size 1.7 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
8d04c57c580c13219da84fb8c32522bfb687c08618df3f680c9d200c0262f47c
BLAKE2b-256 checksum
How to use checksums
ec38944e742d91f03fe839d1e640bb5e696af21bd02655c4d25320678d1e06f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.10

Release files / wuyue-1.2.0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL wuyue-1.2.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 2.2 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f98e65556436c1b6a921a8d5614630287f38e273ad5714f034c738fd990842f1
BLAKE2b-256 checksum
How to use checksums
dd7fdaccf8e2cd145387600d7d92a5c2154e74f774776bbd5cb96e1790afea3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.10

Release files / wuyue-1.2.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL wuyue-1.2.0-cp313-cp313-macosx_11_0_arm64.whl
Size 1.4 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
64f11cd5eb7a0d895befb46d23ce1cb300e58a096948ec5326b55598daeac39a
BLAKE2b-256 checksum
How to use checksums
0078395ce1c8b642d568a655426df7d6e7873a678686900e0520b9dbb58eee6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.10

Release files / wuyue-1.2.0-cp312-cp312-win_amd64.whl

Download URL wuyue-1.2.0-cp312-cp312-win_amd64.whl
Size 1.7 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
6e6e5480cde856e09220056ba66bbf00c830abfacf6ef56869ee30dffc16a86c
BLAKE2b-256 checksum
How to use checksums
4ea4502e4526e93da8f4ce9cac2eb969e662289302f3bddce96846fb847c8167
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.10

Release files / wuyue-1.2.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL wuyue-1.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 2.2 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
0db25d7ac9960cb2d97cf844274d1325b59e2685f2323219a97a8f3ceae6396b
BLAKE2b-256 checksum
How to use checksums
33283c4cb7a89a50e05b06c47eef5c3da6554c95f959d4130786f60d06c5ae0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.10

Release files / wuyue-1.2.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL wuyue-1.2.0-cp312-cp312-macosx_11_0_arm64.whl
Size 1.4 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
321c83c373803cd6322736ac5328690ba834937de1ba4f0dbb2af03ff7860a37
BLAKE2b-256 checksum
How to use checksums
ae417a8c52d32fd9eaaf41b44635091d754c3abcb195e1b43f0b2bf92349c8c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.10

Release files / wuyue-1.2.0-cp311-cp311-win_amd64.whl

Download URL wuyue-1.2.0-cp311-cp311-win_amd64.whl
Size 1.7 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
3f6d379355a3ccf9d5ce6b401261819646c710e28a57da308b0f69ed757196f9
BLAKE2b-256 checksum
How to use checksums
b797a9cb31560b38b9431fc5b6fa038709adfa24c190c424782d72d4cc7782cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.10

Release files / wuyue-1.2.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL wuyue-1.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 2.2 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
6f5b30ec5ebbc3aff5c7c5fde69c5fd8be27f5e27c316906d461938caeb0a605
BLAKE2b-256 checksum
How to use checksums
14c55e5975343c2c2487e38f346c3eeb9825a545cd3a57974b7165ee3bcaa1d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.10

Release files / wuyue-1.2.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL wuyue-1.2.0-cp311-cp311-macosx_11_0_arm64.whl
Size 1.4 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bdd7a62161a9df40697f671358c7254e5e57ae646eb5feb3ff424d7b658140a4
BLAKE2b-256 checksum
How to use checksums
e0ac598c45e1a593da61b89c04f609f37c05f6e77f4646421fadabb27142ed94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.10

Security for wuyue 1.2.0

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.

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