Quantum program running method and device, storage medium and electronic device
A technology of program operation and subroutines, applied in the field of quantum computers, can solve problems such as the limited speed of quantum program operation, reduce the operating efficiency of quantum programs, and increase the complexity of quantum programs, so as to reduce error rates, improve quantum operating 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 embodiments provided in this embodiment can be executed in a computer terminal or a similar computing device. Take running on a computer terminal as an example, figure 1 It is a block diagram of the hardware structure of a computer terminal of a quantum program running method in the 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 figure) a processor 102 (the processor 102 may include but 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 also Transmission means 106 for communication functions as well as input and output devices 108 may be included. Those of ordinary skill in the art can understand that, figure 1 The shown structure is only for illustration, and does not limit the structure of the above computer terminal. ...
Embodiment 2
[0110] In this embodiment, a quantum program running device is provided, which is used to implement the above embodiments and preferred implementation modes, and what has been described will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
[0111] The quantum program running device includes:
[0112] The first obtaining module is used to obtain the quantum program;
[0113] The first processing module is configured to sort the acquired quantum logic gates of the quantum program to obtain the sorted quantum program;
[0114] The first search module is used to search the specific quantum circuit existing in the sorting quantum program according to the database;
[0115] The first cal...
Embodiment 3
[0118] The embodiment of the present application also provides a storage medium. Optionally, in this embodiment, the above-mentioned storage medium may be configured to store program codes for performing the following steps:
[0119] Step S1: obtain the quantum program;
[0120] Step S2: sort the quantum logic gates of the quantum program to obtain the sorted quantum program;
[0121] Step S3: search for the specific quantum circuits that exist 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 above-mentioned storage medium may include but not limited to: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk Various media that can store program codes such as discs or optical discs. Exemplarily, the above-mention...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

