Metadata-Version: 2.1
Name: qcompute
Version: 0.0.2
Summary: QCompute is a Python-based quantum software development kit (SDK). It provides a full-stack programming experience for advanced users via hybrid quantum programming language features and a high-performance simulator.
Home-page: https://quantum.baidu.com
Author: Baidu Quantum
Author-email: quantum@baidu.com
License: Apache License 2.0
Platform: UNKNOWN
Requires-Python: >=3.6, <4
Description-Content-Type: text/markdown
Requires-Dist: bce-python-sdk-reborn (==0.8.32)
Requires-Dist: bidict (==0.21.0)
Requires-Dist: matplotlib (==3.3.1)
Requires-Dist: numpy (==1.19.1)
Requires-Dist: pprint (==0.1)
Requires-Dist: protobuf (==3.13.0)
Requires-Dist: requests (==2.24.0)
Requires-Dist: scipy (==1.5.2)

# QCompute
![](https://release-data.cdn.bcebos.com/github-qleaf%2F%E9%87%8F%E6%98%93%E4%BC%8F%E5%9B%BE%E6%A0%87.png)

[![](https://img.shields.io/badge/license-Apache%202.0-green)](./LICENSE) [![](https://img.shields.io/badge/build-passing-green)]() ![](https://img.shields.io/badge/Python-3.6--3.8-blue) ![](https://img.shields.io/badge/release-v0.0.1-blue)

Quantum Leaf (量易伏) is a Cloud-Native quantum computing platform developed by the Institute of Quantum Computing, Baidu. It is used for programming, simulating and executing quantum computers, aimed 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 hybrid quantum programming language features and a high-performance simulator. Users can use the already-built quantum programming environment objects and modules, pass parameters to build and execute the quantum circuit 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](https://quantum-hub.baidu.com). The token, large results and more information can be found at the [Quantum-hub](https://quantum-hub.baidu.com) **
![](https://release-data.cdn.bcebos.com/github-qleaf%2FArchitecture-EN.png)

## 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 prepare Python environment and Pip tool. Be careful about different path separators on operating systems. At present, Python 3.6-3.8 versions are compatible.

## Running the tests

    cd QCompute
    python -m QCompute.Test.PostInstall.PostInstall

Please test on a local simulator first, and then fill in your token of Quantum-hub to test on a cloud simulator.

## Development
1. QCompute SDK contains quantum toolkits, a simulator, examples and docs. If concerned with quantum toolkits, e.g., the QCompute sub-folder, you are highly suggested using 'local setup' process to ensure any programming could be reflected on executing process. 
2. Most researchers who only work on the quantum applications (examples) are suggest to use one-step live setup. In this case, the local modification of QCompute would **NOT** be reflected on the executing process. However, the examples sub-folder could be concentrated by view.

## 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 internal feedback table in Quantum-hub to provide any feedbacks;
3. Or, you are also welcomed to join our discussion QQ group:
QQ Group：1147781135

![](https://release-data.cdn.bcebos.com/github-qleaf%2Fqrcode.png)

## Maintainers & Authors
Institute of Quantum Computing, Baidu.

## Changelog
The changelog of this project can be found in [CHANGELOG](https://github.com/baidu/QCompute/CHANGELOG.md).

## License
This project is licensed under the Apache License 2.0 - see the [LICENSE.md](https://github.com/baidu/QCompute/LICENSE) file for details




