| CPC G06F 8/24 (2013.01) [G06N 10/80 (2022.01)] | 20 Claims |

|
1. A method comprising:
obtaining a quantum program, wherein the quantum program comprises a plurality of code artifacts, the quantum program is compilable into a quantum circuit;
obtaining a representation of the quantum circuit that implements the quantum program, the quantum circuit comprising circuit components, the circuit components comprising a plurality of quantum gates manipulating a plurality of qubits over a plurality of cycles;
obtaining a circuit component-to-code mapping, the circuit component-to-code mapping maps the circuit components of the representation of the quantum circuit to respective code artifacts of the quantum program, thereby attributing the circuit components to their origin in the quantum program, wherein the circuit component-to-code mapping comprises at least a mapping of a sub-circuit of the quantum circuit to a code artifact of the code artifacts, the sub-circuit comprising one or more gates of the plurality of quantum gates manipulating one or more qubits of the plurality of qubits, wherein the sub-circuit is assigned to at least one of: implementing the code artifact or assisting in implementing the code artifact;
automatically measuring a performance of the code artifact of the quantum program on a quantum computer, thereby obtaining a measurement of the performance of the code artifact, said measuring is performed based on one or more circuit components of the sub-circuit that are mapped to the code artifact by the circuit component-to-code mapping; and
outputting the measurement of the performance of the code artifact on the quantum computer.
|