US 12,293,259 B2
Qubit allocation service
Leigh Griffin, Waterford (IE); and Stephen Coady, Waterford (IE)
Assigned to Red Hat, Inc., Raleigh, NC (US)
Filed by Red Hat, Inc., Raleigh, NC (US)
Filed on May 27, 2020, as Appl. No. 16/884,928.
Prior Publication US 2021/0374583 A1, Dec. 2, 2021
Int. Cl. G06N 10/00 (2022.01); G06F 9/445 (2018.01); G06F 9/50 (2006.01)
CPC G06N 10/00 (2019.01) [G06F 9/44505 (2013.01); G06F 9/5022 (2013.01)] 18 Claims
OG exemplary drawing
 
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.