| CPC G06N 10/00 (2019.01) [G06F 8/427 (2013.01); G06F 15/16 (2013.01); G06F 8/41 (2013.01); G06F 8/44 (2013.01); G06F 8/445 (2013.01); G06F 8/47 (2013.01); G06N 20/10 (2019.01)] | 20 Claims |

|
11. A system for determining a result of a quantum algorithm, the system comprising:
a quantum processing system configured to execute quantum instructions of the quantum algorithm;
a classical processing system including one or more processors; and
a non-transitory, computer-readable storage medium storing a computer program executable by the classical processing system to perform steps comprising:
receiving, from a client device via the classical processing system, a quantum algorithm for execution on a quantum processor to determine a result;
parsing the quantum algorithm into a sequence of quantum instructions including a subsequence of initial quantum instructions that manipulate a quantum state to a resulting state;
determining, using the classical processing system and according to a replacement policy, a subsequence of replacement quantum instructions that manipulate the quantum state to the resulting state;
replacing, using the classical processing system and according to a replacement policy, the subsequence of initial quantum instructions with the subsequence of replacement quantum instructions in the sequence of quantum instructions;
translating the sequence of quantum instructions into a sequence of instructions in a target language for executing on the quantum processing system;
sending the sequence of instructions to the quantum processing system to execute the sequency of instructions;
obtaining a result of the quantum algorithm based on the execution of the sequence of the instructions by the quantum processing system; and
transmitting the result of the quantum algorithm to the client device.
|