Quantum program running method and device, storage medium and electronic device
A program operation and subprogram technology, applied in the field of quantum computers, can solve problems such as the limited speed of quantum program operation, the reduction of quantum program operation efficiency, and the increase of quantum program complexity, so as to reduce the error rate, improve the quantum operation efficiency, The effect of increasing the running speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] The method embodiment provided in this embodiment can be executed in a computer terminal or similar computing device. Take running on a computer terminal as an example, figure 1 It is a hardware structure block diagram of a computer terminal of a quantum program running method in an embodiment of the present application. Such as figure 1 As shown, the computer terminal 10 may include one or more ( figure 1 Only one is shown in) the processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the above-mentioned computer terminal is also It may include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand, figure 1 The structure shown is only for illustration, and it does not limit the structure of the foregoing computer terminal. For example, the comp...
Embodiment 2
[0110] In this embodiment, a quantum program running device is provided, and the device is used to implement the above-mentioned embodiments and preferred implementations, and those that have been described will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware with predetermined functions. Although the devices described in the following embodiments are preferably implemented by software, hardware or a combination of software and hardware is also possible and conceived.
[0111] The quantum program running device includes:
[0112] The first acquisition module is used to acquire a quantum program;
[0113] The first processing module is configured to sort the obtained quantum logic gates of the quantum program to obtain the sorted quantum program;
[0114] The first search module is used to search for specific quantum circuits in the sorted quantum program according to the database;
[0115] The first calling and running module i...
Embodiment 3
[0118] The embodiment of the present application also provides a storage medium. Optionally, in this embodiment, the foregoing storage medium may be configured to store program code for executing the following steps:
[0119] Step S1: Obtain the quantum program;
[0120] Step S2: sort the quantum logic gates of the quantum program to obtain a sorted quantum program;
[0121] Step S3: Search the specific quantum circuit existing in the sorting quantum program according to the database;
[0122] Step S4: Call the running result of the specific quantum circuit stored in the database, and run the sorting quantum program.
[0123] Optionally, in this embodiment, the foregoing storage medium may include, but is not limited to: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic Various media that can store program codes, such as discs or optical discs. Exemplarily, the foregoing storage medium is preferably a read-o...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

