QPanda3
0.1.0
Supported by OriginQ
|
Prev Tutorial: Quantum Profiling
In complex quantum circuit simulations, it is necessary to leverage high-performance computing clusters or real quantum computers. Using cloud computing to replace local computation reduces the computational costs for users and provides a better computing experience.
The Origin Quantum Cloud platform submits tasks to quantum computers or computing clusters deployed remotely via the Origin QPilot service, and receives the returned results. The process is shown in the diagram below.
pyqpanda3 wraps various quantum computing services, enabling the sending of computation instructions to Origin's computing server clusters or real quantum chips, and retrieving the computation results. For more details, see the diagram below.
Users first need to register and access the latest Origin Quantum Cloud Computing website at Origin Quantum Cloud.
Next, click on the Workbench in the upper-right corner to enter the quantum computing access interface.
You will see various computing services, including virtual computing and real quantum computing. Then, you need to obtain the api_token and other related information. The api_token is an identifier for each user to access quantum cloud computing resources via the pyqpanda3
computing interface. You can obtain it from your personal account center.
The api_token is an important credential for accessing quantum computing resources. Please keep it safe.
In pyqpanda3, we use QCloudService to build the quantum cloud service and obtain the backend. The api_key of the user needs to be provided.
Retrieve all supported backends.
Obtain the specific computation backend by backend name.Currently, the chip backend supports the latest origin's Wukong 72-bit chip.
All virtual machines submit quantum computing tasks to the supercomputer via the run method with parameters, for full amplitude.
All tasks support both synchronous and asynchronous submission methods, for synchronous...
Asynchronous method as above:
The interface usage for real chips is similar, and the computation backend is obtained based on the backend name.
The run method for submitting computation tasks supports batch tasks.
QCloudOptions can be used to configure runtime options for computation tasks running on the chip, including whether to enable mapping, quantum circuit optimization, and result correction, among others.