| CPC G06F 8/41 (2013.01) | 16 Claims |

|
1. A method for executing a quantum program performed by a computer device, the method comprising:
using an initial quantum circuit in a physical quantum circuit contained in a target quantum program as a current quantum circuit;
executing the current quantum circuit to obtain a quantum measurement result;
identifying a target quantum circuit matching the quantum measurement result from candidate quantum circuits having a connection relationship with the current quantum circuit, the connection relationship matching a control flow corresponding to the target quantum program;
using the target quantum circuit as the current quantum circuit by executing a mapping transformation circuit between the current quantum circuit and the target quantum circuit; and
returning to the operation of executing the current quantum circuit to obtain a quantum measurement result to continue executing till a program executing result is obtained in response to meeting an executing termination condition.
|