CPC G06N 10/00 (2019.01) [G06F 9/44505 (2013.01); G06F 9/5022 (2013.01)] | 18 Claims |
1. A method comprising:
determining, by a qubit allocation service, that a first quantum service requires a qubit for execution by:
analyzing, by the qubit allocation service, a quantum assembly file (QASM) file that implements the first quantum service; and
determining, based on the QASM file, that the first quantum service requires the qubit for execution;
in response to determining that the first quantum service requires the qubit for execution, accessing, by the qubit allocation service, a qubit registry that maintains information about a plurality of qubits on a quantum computing system to identify a first qubit of the plurality of qubits that is available for allocation;
storing information indicating the first qubit is allocated to the first quantum service;
in response to the first qubit being allocated to the first quantum service, decrementing an integer value that is classically stored in a total available qubits counter of the qubit registry service by an integer of value one, wherein the decremented integer value stored in the total available qubits counter is an integer value indicating a total number of qubits that are currently available for allocation and the total available qubits counter is a classical counter; and
providing, by the qubit allocation service to the first quantum service, qubit information via which the first quantum service is enabled to determine that the first qubit is allocated to the first quantum service.
|