Skip to main content

English | 简体中文

QCompute-QAPP User's Guide

Copyright (c) 2021 Institute for Quantum Computing, Baidu Inc. All Rights Reserved.

QAPP Introduction

QAPP is a quantum computing toolbox based on the QCompute component of Quantum Leaf, which provides quantum computing services for solving problems in many fields including quantum chemistry, combinatorial optimization, machine learning, etc. QAPP provides users with a one-stop quantum computing application development function, which directly connects to users' real requirements in artificial intelligence, financial technology, education and research.

QAPP Architecture

QAPP architecture follows the complete development logic from application to real machine, including four modules: Application, Algorithm, Circuit, and Optimizer. The Application module converts the user requirements into the corresponding mathematical problem; the Algorithm module selects a suitable quantum algorithm to solve the mathematical problem; during the solution process, the user can specify the optimizer provided in the Optimizer module or design a custom optimizer; the quantum circuit required for the solution process is supported by the Circuit module. The Circuit module directly calls the QCompute platform, and supports calls to the Quantum Leaf simulators or QPUs.

QAPP architecture

QAPP Use Cases

We provide QAPP practical cases such as solving molecular ground state energy, solving combinatorial optimization problem, and solving classification problem. These use cases are designed to help users quickly get started with calling QAPP modules and developing custom algorithms. Before we can run these use cases, there is some preparation work to do.

Install Conda and Python environment

We use Anaconda as the development environment management tool for Python. Anaconda supports multiple mainstream operating systems (Windows, macOS, and Linux). Here we provide a tutorial on how to use conda to create and manage virtual environments:

  1. First, enter the command line (Terminal) interface: Windows users can enter Anaconda Prompt; Mac users can use the key combination command⌘ + space and then enter Terminal.

  2. After opening the Terminal window, enter

    conda create --name qapp_env python=3.8
    

    to create a Python 3.8 environment named qapp_env. With the following command, we can enter the virtual environment created,

    conda activate qapp_env
    

For more detailed instructions on conda, please refer to the Official Tutorial.

Credit Points

If you run QAPP with cloud servers, you will consume Quantum-hub credit points. For more Quantum-hub credit points, please contact us via Quantum Hub. First, you should log into Quantum Hub, then enter the "Feedback" page, choose "Get Credit Point", and record the necessary information. Submit your feedback and wait for our reply. We will reach you as soon as possible.

Install QCompute and packages required by QAPP

Install QAPP with pip:

pip install qcompute-qapp

Some use cases may require additional packages, which are clarified in the corresponding tutorials.

Run

Users can download the tutorials folder from GitHub, switch the path to the tutorials folder where the case is located in Terminal, and run it in Python. For example,

python vqe_example.py

API Documentation

We provide QAPP's API documentation for developers to look up. Users can also view the API documentation on the Quantum Leaf website.

Citation

We encourage the researchers and developers to use QAPP for research & development on quantum computing applications. Please cite us by including the following BibTeX entry:

@misc{QAPP, 
  title = {{Quantum Application Python Package}}, 
  year = {2022}, 
  url = {https://quantum-hub-test.baidu.com/qapp/}, 
}

Copyright and License

QAPP uses Apache-2.0 license.

Metadata

Release files for qcompute-qapp 0.0.1

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

Source distribution (sdist)

Source distribution for qcompute-qapp 0.0.1
File Size Uploaded
qcompute-qapp-0.0.1.tar.gz 20.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qcompute-qapp 0.0.1
File Interpreter ABI Platform
qcompute_qapp-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 61.7 kB

Release files / qcompute-qapp-0.0.1.tar.gz

Download URL qcompute-qapp-0.0.1.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6c2bd15bb7c6737cf97eeb28f05787503cea1ec69620ad4552b9db83d89f097f
BLAKE2b-256 checksum
How to use checksums
40db209d683a8fac4c394148dd20b7384b0751a0d17bd2d4ee9979b867d3730a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release files / qcompute_qapp-0.0.1-py3-none-any.whl

Download URL qcompute_qapp-0.0.1-py3-none-any.whl
Size 41.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49f04dc3825eae732da4a7a18039beda223b93ba59a982bf070ebf362c3c9aba
BLAKE2b-256 checksum
How to use checksums
4f77cd0997afe65e9b8ee803bf90e7ed297f373494968eff1afeac75f7570ad1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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