IP Library Granted Patent US 12,456,069
Granted Patent B2
US 12,456,069 · App. 18/447,666 · Granted Oct 28, 2025

Mapping an error code with a qubit

Inventor: Srinivasa Bharath Kanta (Bangalore, IN)
Assignee: Red Hat, Inc.
G06N10/70G06N10/20
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,456,069
App. No.
18/447,666
Granted
Oct 28, 2025
Kind
B2
Abstract

A quantum computing device determines that a first error occurred during an execution of quantum software. The quantum computing device obtains, based on the first error, a first error code from a first data structure comprising error codes associated with the quantum software and errors that occur with the quantum software. The quantum computing device maps the first error code to a first qubit state. The quantum computing device sends a response comprising the first qubit state.

Claims (71)

1. A method, comprising:

determining, by a quantum computing device, that a first error occurred during an execution of quantum software;

obtaining, by the quantum computing device based on the first error, a first error code from a first data structure comprising a first plurality of error codes for the quantum software, wherein the first plurality of error codes is associated with a first plurality of errors that can occur with the quantum software, wherein the first plurality of errors comprises the first error, and wherein the first data structure associates the first error with the first error code;

mapping, by the quantum computing device, the first error code to a first qubit state; and

sending, by the quantum computing device, a response comprising the first qubit state.

2. The method of claim 1 , further comprising:

determining that a second error occurred during an execution of the quantum software;

obtaining, based on the second error, a second error code from the first data structure, wherein the second error code is different from the first error code;

mapping the second error code to a second qubit state; and

sending a response comprising the second qubit state, wherein the second qubit state is different from the first qubit state.

3. The method of claim 1 , further comprising:

determining that a second error occurred during an execution of the quantum software;

obtaining, based on the second error, a second error code from the first data structure, wherein the second error code is identical to the first error code;

mapping the second error code to a second qubit state; and

sending a response comprising the second qubit state, wherein the second qubit state is identical to the first qubit state.

4. The method of claim 1 , wherein determining that the first error occurred during the execution of the quantum software comprises:

receiving the first error code from the quantum software.

5. The method of claim 1 , wherein obtaining, based on the first error, the first error code from the first data structure comprises:

obtaining the first error that occurred during the execution of the quantum software;

querying the first data structure with the first error; and

receiving the first error code from the first data structure based on the query with the first error.

6. The method of claim 1 , wherein mapping the first error code to a first qubit state comprises:

obtaining a θ value and a ϕ value from the first data structure based on the first error code, wherein the θ value is a real number between 0 and π and the ϕ value is a real number between 0 and 2π; and

calculating the first qubit state based on the θ value and the ϕ value.

7. The method of claim 1 , further comprising:

determining that the quantum software has been updated to a new version of the quantum software, wherein the new version of the quantum software comprises a second data structure comprising a second plurality of error codes for the new version of the quantum software, wherein the second plurality of error codes is associated with a second plurality of errors that can occur with the new version of the quantum software.

8. The method of claim 7 , further comprising:

determining that an error occurred during an execution of the new version of the quantum software;

obtaining, based on the error, an error code from the second data structure;

mapping the error code to a qubit state; and

sending a response comprising the qubit state.

9. The method of claim 8 , wherein obtaining, based on the error, the error code from the second data structure comprises:

obtaining the error that occurred during the execution of the new version of the quantum software;

querying the second data structure with the error; and

receiving the error code from the second data structure based on the query with the error.

10. The method of claim 8 , wherein mapping the error code to the qubit state comprises:

obtaining a θ value and a ϕ value from the second data structure based on the error code, wherein the θ value is a real number between 0 and π and the ϕ value is a real number between 0 and 2π; and

calculating the qubit state based on the θ value and the ϕ value.

11. The method of claim 1 , wherein the response comprises a single qubit.

12. The method of claim 1 , wherein the first data structure is packaged with the quantum software.

13. The method of claim 1 , wherein the first qubit state is represented by cos [(θ/2|)]├0)+e{circumflex over ( )}iϕ sin [(θ/2)]|├1), where θ, ϕ∈ and θ∈[0, π], ϕ∈[0,2π].

14. A quantum computing device, comprising:

a system memory; and

a processor device communicatively coupled to the system memory, the processor device to:

determine that a first error occurred during an execution of quantum software;

obtain, based on the first error, a first error code from a first data structure comprising a first plurality of error codes for the quantum software, wherein the first plurality of error codes are associated with a first plurality of errors that can occur with the quantum software, wherein the first plurality of errors comprises the first error, and wherein the first data structure associates the first error with the first error code;

map the first error code to a first qubit state; and

send a response comprising the first qubit state.

15. The quantum computing device of claim 14 , wherein the processor device is further to:

determine that a second error occurred during an execution of the quantum software;

obtain, based on the second error, a second error code from the first data structure, wherein the second error code is different from the first error code;

map the second error code to a second qubit state; and

send a response comprising the second qubit state, wherein the second qubit state is different from the first qubit state.

16. The quantum computing device of claim 14 , wherein the processor device is further to:

determine that a second error occurred during an execution of the quantum software;

obtain, based on the second error, a second error code from the first data structure, wherein the second error code is identical to the first error code;

map the second error code to a second qubit state; and

send a response comprising the second qubit state, wherein the second qubit state is identical to the first qubit state.

17. The quantum computing device of claim 14 , wherein, to obtain, based on the first error, the first error code from the first data structure, the processor device is further to:

obtain the first error that occurred during the execution of the quantum software;

query the first data structure with the first error; and

receive the first error code from the first data structure based on the query with the first error.

18. The quantum computing device of claim 14 , wherein, to map the first error code to the first qubit state, the processor device is further to:

obtain a θ value and a ϕ value from the first data structure based on the first error code, wherein the θ value is a real number between 0 and π and the ϕ value is a real number between 0 and 2π; and

calculate the first qubit state based on the θ value and the ϕ value.

19. The quantum computing device of claim 14 , wherein the response comprises a single qubit.

20. A non-transitory computer-readable storage medium that includes computer-executable instructions that, when executed, cause one or more processor devices to:

determine that a first error occurred during an execution of quantum software;

obtain, based on the first error, a first error code from a first data structure comprising a first plurality of error codes for the quantum software, wherein the first plurality of error codes is associated with a first plurality of errors that can occur with the quantum software, wherein the first plurality of errors comprises the first error, and wherein the first data structure associates the first error with the first error code;

map the first error code to a first qubit state; and

send a response comprising the first qubit state.

Assignments (2)
CHANGE OF NAME Recorded Mar 3, 2026
From: RED HAT, INC.
To: RED HAT, LLC
Reel/Frame 074913/0759 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 10, 2023
From: KANTA, SRINIVASA BHARATH
To: RED HAT, INC.
Reel/Frame 064552/0943 →