Skip to content

Files

Latest commit

760c787 · Apr 24, 2023

History

History

applications

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Quantum Application Model Library

Quantum Application Model Library (QAML) is a collection of out-of-box practical quantum algorithms, it is developed by Institute for Quantum Computing at Baidu, and aims to be a "supermarket" of quantum solutions for industry users. Currently, models in QAML have covered popular areas listed below:

  • Artificial Intelligence
  • Medicine and Pharmaceuticals
  • Material Simulation
  • Financial Technology
  • Manufacturing
  • Data Analysis

QAML is implemented on Paddle Quantum, a quantum machine learning platform, which can be found at https://qml.baidu.com and https://github.com/PaddlePaddle/Quantum.

Features

  • Industrialization: 10 models closely follow the 6 major industrial directions, covering hot topics such as artificial intelligence, chemical materials, manufacturing, finance, etc.
  • End-to-end: Linking the whole process from application scenarios to quantum computing and solving the last mile of quantum applications.
  • Out-of-box: No special configuration is required, the model is called directly by the Paddle Quantum, eliminating the tedious installation process.

Installation

QAML depends on the paddle-quantum package. Users can install it by pip.

pip install paddle-quantum

For those who are using old versions of Paddle Quantum, simply run pip install --upgrade paddle-quantum to install the latest package.

QAML locates in Paddle Quantum's GitHub repository, you can download the zip file contains QAML source code by clicking this link. After unzipping the package, you will find all the models in the applications folder in the extracted folder.

You can also use git to get the QAML source code.

git clone https://github.com/PaddlePaddle/Quantum.git
cd Quantum/applications

You can check your installation by going to the handwritten_digits_classification folder under applications and running

python vsql_classification.py --example.toml

The installation is successful once the program terminates without errors.

How to Use

In each application model, we provide Python scripts that can be run directly and the corresponding configuration files. The user can modify the configuration file to implement the corresponding requirements.

Take handwritten digit classification as an example, it can be used by executing python vsql_classification.py --example.toml in the handwritten_digits_classification folder. We provide tutorials for each application model, which allows users to quickly understand and use it.

Application List

Continue update

Below we list instructions for all applications available in QAML, newly developed applications will be continuously integrated into QAML.

  1. Handwritten digits classification
  2. Molecular ground state energy & dipole moment calculation
  3. Text classification
  4. Protein folding
  5. Medical image classification
  6. Quality detection
  7. Option pricing
  8. Quantum portfolio optimization
  9. Regression
  10. Quantum linear equation solver
  11. Credit Risk Analysis
  12. Deuteron Binding Energy
  13. Handwritten Digits Generation
  14. Intent Classification
  15. Power Flow Study
  16. Random Number Generation