US 12,436,747 B2
Method for executing quantum program and method for compiling quantum program
Xiangzhen Zhou, Shenzhen (CN)
Assigned to SHENZHEN TENCENT COMPUTER SYSTEMS COMPANY LIMITED, Shenzhen (CN); and INSTITUTE OF SOFTWARE CHINESE ACADEMY OF SCIENCES, Beijing (CN)
Filed by SHENZHEN TENCENT COMPUTER SYSTEMS COMPANY LIMITED, Shenzhen (CN); and INSTITUTE OF SOFTWARE CHINESE ACADEMY OF SCIENCES, Beijing (CN)
Filed on Aug. 17, 2023, as Appl. No. 18/235,141.
Application 18/235,141 is a continuation of application No. PCT/CN2022/126780, filed on Oct. 21, 2022.
Claims priority of application No. 2021111492774.7 (CN), filed on Dec. 8, 2021.
Prior Publication US 2024/0354074 A1, Oct. 24, 2024
Int. Cl. G06F 8/41 (2018.01)
CPC G06F 8/41 (2013.01) 16 Claims
OG exemplary drawing
 
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.