1 Star 0 Fork 3

郑宏 / QCompute

forked from 百度开源 / QCompute 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 3.80 KB
一键复制 编辑 原始数据 按行查看 历史
Quleaf 提交于 2023-02-19 15:46 . v3.3.0

QCompute

Quantum Leaf (量易伏) is a Cloud-Native quantum computing platform developed by the Institute for Quantum Computing, Baidu. It is used for programming, simulating and executing quantum computers, aiming at providing the quantum programming environment for Quantum infrastructure as a Service (QaaS).

QCompute is a Python-based open-source SDK. It provides a full-stack programming experience for advanced users via the features of hybrid quantum programming language and a high-performance simulator. Users can use the already-built objects and modules of quantum programming environment, pass parameters to build and execute the quantum circuits on the local simulator or the cloud simulator/hardware.

QCompute provides services for creating and analyzing quantum circuits, and calling quantum backend. The architecture of Quantum Leaf including QCompute is shown in the figure below.

In particular, cloud service requires login at Quantum-hub. The token, credit points, large-scale results and more information can be found from the website.

Getting Started

Use one-step live setup

pip install qcompute

Or use local setup

pip install -e .

Then, config the python interpreter to execute examples.

Please get Python environment and Pip tool prepared. Be careful about different path separators on operating systems. At present, Python 3.8-3.10 versions are compatible.

Running the tests

python -m Test.PostInstall.PostInstall_test

Input your token which could be found on https://quantum-hub.baidu.com/ to do cloud test, or press Enter to do local test only.

Tutorials

Use the sample code and tutorials in the Example folder to learn how to use QCompute SDK.

Development

  1. QCompute SDK contains quantum toolkits, simulators, examples and docs. If concerned with quantum toolkits, e.g., the QCompute subfolder, you are highly suggested using 'local setup' process to ensure that any development could be reflected in the executing process.

  2. Most researchers who only work on the quantum applications (examples) are suggested to use one-step live setup. In this case, the local modification of QCompute would NOT be reflected in the executing process. However, the modification on the subfolder, Example, would be still valid.

Contributing

Coding requirements:

  1. Be familiar with quantum circuit model. Any pull should be tested first and then submitted. Be careful about the order of qubits.

  2. Please comply with development specifications of relevant programming languages.

Discussion

  1. If any questions, advices, suggestions, please contact us via Email: quantum@baidu.com ;

  2. Or, you can use feedback table in Quantum-hub to provide any feedbacks;

  3. Or, you are also welcomed to join our discussion QQ group: QQ Group Number:1147781135.

Maintainers & Authors

Institute for Quantum Computing, Baidu.

Integrations

The new backend "local_cuquantum" is constructed under cuQuantum SDK (https://developer.nvidia.com/cuquantum-sdk) and is supported by NVIDIA.

Changelog

The changelog of this project can be found in CHANGELOG.md.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Python
1
https://gitee.com/zheng_hong596/qcompute.git
git@gitee.com:zheng_hong596/qcompute.git
zheng_hong596
qcompute
QCompute
master

搜索帮助