CPC G06F 11/10 (2013.01) | 15 Claims |
1. A method for efficient error mitigation in quantum circuit execution, comprising:
executing, by a quantum computer, a quantum circuit for a quantum optimization algorithm, the quantum circuit comprising a plurality of measurement points for measuring a parity of a quantum state, and termination instructions for stopping execution of the quantum optimization algorithm;
preparing, by the quantum computer, the quantum state;
executing, by the quantum computer, a first step of the quantum optimization algorithm;
measuring, by the quantum computer, a first parity of the quantum state;
returning, by the quantum computer, the first parity to a classical computer program;
executing, by the quantum computer, a second step of the quantum optimization algorithm;
measuring, by the quantum computer, a second parity of the quantum state;
returning, by the quantum computer, the second parity to the classical computer program, wherein the classical computer program is configured to compare the first parity and the second parity;
receiving, by the quantum computer, an instruction to execute the termination instructions from the classical computer program in response to first parity and the second parity being different; and
executing, by the quantum computer, the termination instructions.
|