Package: qcompute-qapp
English |简体中文QCompute-QAPP User's GuideCopyright (c) 2021 Institute for Quantum Computing, Baidu Inc. All Rights Reserved.QAPP IntroductionQAPP is a quantum computing toolbox based on theQComputecomponent ofQuantum 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 ArchitectureQAPP 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 theQComputeplatform, and supports calls to theQuantum Leafsimulators or QPUs.QAPP Use CasesWe provide QAPP practical cases such as solvingmolecular ground state energy, solvingcombinatorial optimization problem, and solvingclassification 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 environmentWe useAnacondaas 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:First, enter the command line (Terminal) interface: Windows users can enterAnaconda Prompt; Mac users can use the key combinationcommand⌘ + spaceand then enterTerminal.After opening the Terminal window, entercondacreate--nameqapp_envpython=3.8to create a Python 3.8 environment namedqapp_env. With the following command, we can enter the virtual environment created,condaactivateqapp_envFor more detailed instructions on conda, please refer to theOfficial Tutorial.Credit PointsIf you run QAPP with cloud servers, you will consume Quantum-hub credit points.  For more Quantum-hub credit points, please contact us viaQuantum Hub. First, you should log intoQuantum 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 QAPPInstall QAPP withpip:pipinstallqcompute-qappSome use cases may require additional packages, which are clarified in the corresponding tutorials.RunUsers can download thetutorialsfolder from GitHub, switch the path to thetutorialsfolder where the case is located in Terminal, and run it in Python. For example,pythonvqe_example.pyAPI DocumentationWe provide QAPP'sAPIdocumentation for developers to look up. Users can also view the API documentation on theQuantum Leaf website.CitationWe 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 LicenseQAPP usesApache-2.0 license.