| CPC G01R 31/31702 (2013.01) [G06N 10/40 (2022.01)] | 26 Claims |

|
1. A method comprising:
obtaining a representation of a quantum circuit, the quantum circuit is configured to manipulate a plurality of qubits over a plurality of cycles using a plurality of gates, the plurality of cycles comprising a first cycle and a second cycle, the second cycle is ordered after the first cycle, the plurality of qubits comprising a qubit;
determining that the qubit is a candidate auxiliary qubit, wherein said determining comprises estimating that a state of the qubit at the first cycle is identical to a state of the qubit at the second cycle;
identifying a function section in the quantum circuit based on the qubit, the function section commencing at a beginning cycle, the beginning cycle is ordered before the second cycle, the function section ending at an ending cycle, the ending cycle is ordered after the first cycle, the ending cycle is ordered after the commencing cycle, the function section utilizing the qubit as an auxiliary qubit; and
outputting an indication of the function section.
|