Correcting quantum errors based on quantum error correction caches (QECCs)
Correcting quantum errors based on quantum error correction caches (QECCs) is disclosed herein. In one example, a processor device of a quantum computing device is to receive an indication of an occurrence of a quantum error that affects a qubit. The processor device identifies a QECC entry within a plurality of QECC entries of a first QECC of the quantum computing device, wherein the QECC entry corresponds to a previous occurrence of the quantum error. The processor device obtains metadata associated with the previous occurrence of the first quantum error from the QECC entry, and determines a corrective action based on the metadata. The processor device performs the corrective action to remedy the quantum error.
1 . A method, comprising:
receiving, by a first quantum computing device, an indication of an occurrence of a first quantum error that affects a first qubit;
identifying a quantum error correction cache (QECC) entry within a plurality of QECC entries of a first QECC of the first quantum computing device, wherein the QECC entry corresponds to a previous occurrence of the first quantum error;
obtaining metadata associated with the previous occurrence of the first quantum error from the QECC entry;
determining a corrective action based on the metadata; and
performing the corrective action.
2 . The method of claim 1 , wherein the metadata comprises one or more of:
an indication of a quantum error type;
a timestamp;
a qubit identifier;
an indication of the corrective action;
a source Quantum Assembly (QASM) file identifier;
an identifier of one or more concurrently executing quantum services;
an identifier of one or more scheduled quantum services; and
an indication of an environmental attribute of the first quantum computing device.
3 . The method of claim 1 , wherein the corrective action comprises one or more of modifying a data value of the first qubit, modifying a quantum state of the first qubit, and modifying a source Quantum Assembly (QASM) file corresponding to the first qubit.
4 . The method of claim 1 , further comprising, prior to receiving the indication of the occurrence of the first quantum error:
determining that a quantum error correction (QEC) operation has been performed by a QEC service of the first quantum computing device in response to the previous occurrence of the first quantum error;
obtaining, from the QEC service, the metadata associated with the previous occurrence of the first quantum error; and
storing the metadata in the QECC entry.
5 . The method of claim 1 , further comprising:
determining that the corrective action did not correct the first quantum error; and
performing a quantum error correction (QEC) operation using a QEC service of the first quantum computing device.
6 . The method of claim 1 , further comprising:
identifying a common characteristic of the first quantum computing device and a second quantum computing device;
identifying one or more QECC entries of the plurality of QECC entries of the first QECC corresponding to the common characteristic; and
copying the one or more QECC entries of the plurality of QECC entries of the first QECC to a second QECC of the second quantum computing device.
7 . The method of claim 6 , wherein the common characteristic comprises:
a common characteristic shared by a first quantum service of the first quantum computing device and a second quantum service of the second quantum computing device;
a common characteristic shared by the first qubit of the first quantum computing device and a second qubit of the second quantum computing device;
a common characteristic shared by a first operating environment of the first quantum computing device and a second operating environment of the second quantum computing device; and
a common characteristic of the first quantum error and a second quantum error that affects the second qubit.
8 . A first quantum computing device comprising:
a first system memory; and
a first processor device communicatively coupled to the first system memory, the first processor device to:
receive an indication of an occurrence of a first quantum error that affects a first qubit;
identify a quantum error correction cache (QECC) entry within a plurality of QECC entries of a first QECC of the first quantum computing device, wherein the QECC entry corresponds to a previous occurrence of the first quantum error;
obtain metadata associated with the previous occurrence of the first quantum error from the QECC entry;
determine a corrective action based on the metadata; and
perform the corrective action.
9 . The first quantum computing device of claim 8 , wherein the metadata comprises one or more of:
an indication of a quantum error type;
a timestamp;
a qubit identifier;
an indication of the corrective action;
a source Quantum Assembly (QASM) file identifier;
an identifier of one or more concurrently executing quantum services;
an identifier of one or more scheduled quantum services; and
an indication of an environmental attribute of the first quantum computing device.
10 . The first quantum computing device of claim 8 , wherein the corrective action comprises one or more of modifying a data value of the first qubit, modifying a quantum state of the first qubit, and modifying a source Quantum Assembly (QASM) file corresponding to the first qubit.
11 . The first quantum computing device of claim 8 , wherein the first processor device is further to, prior to receiving the indication of the occurrence of the first quantum error:
determine that a quantum error correction (QEC) operation has been performed by a QEC service of the first quantum computing device in response to the previous occurrence of the first quantum error;
obtain, from the QEC service, the metadata associated with the previous occurrence of the first quantum error; and
store the metadata in the QECC entry.
12 . The first quantum computing device of claim 8 , wherein the first processor device is further to:
determine that the corrective action did not correct the first quantum error; and
perform a quantum error correction (QEC) operation using a QEC service of the first quantum computing device.
13 . The first quantum computing device of claim 8 , wherein the first processor device is further to:
identify a common characteristic of the first quantum computing device and a second quantum computing device;
identifying one or more QECC entries of the plurality of QECC entries of the first QECC corresponding to the common characteristic; and
copying the one or more QECC entries of the plurality of QECC entries of the first QECC to a second QECC of the second quantum computing device.
14 . The first quantum computing device of claim 13 , wherein the common characteristic comprises:
a common characteristic shared by a first quantum service of the first quantum computing device and a second quantum service of the second quantum computing device;
a common characteristic shared by the first qubit of the first quantum computing device and a second qubit of the second quantum computing device;
a common characteristic shared by a first operating environment of the first quantum computing device and a second operating environment of the second quantum computing device; and
a common characteristic of the first quantum error and a second quantum error that affects the second qubit.
15 . A non-transitory computer-readable medium having stored thereon computer-executable instructions that, when executed, cause one or more processor devices to:
receive an indication of an occurrence of a first quantum error that affects a first qubit;
identify a quantum error correction cache (QECC) entry within a plurality of QECC entries of a first QECC of a first quantum computing device, wherein the QECC entry corresponds to a previous occurrence of the first quantum error;
obtain metadata associated with the previous occurrence of the first quantum error from the QECC entry;
determine a corrective action based on the metadata; and
perform the corrective action.
16 . The non-transitory computer-readable medium of claim 15 , wherein the metadata comprises one or more of:
an indication of a quantum error type;
a timestamp;
a qubit identifier;
an indication of the corrective action;
a source Quantum Assembly (QASM) file identifier;
an identifier of one or more concurrently executing quantum services;
an identifier of one or more scheduled quantum services; and
an indication of an environmental attribute of the first quantum computing device.
17 . The non-transitory computer-readable medium of claim 15 , wherein the corrective action comprises one or more of modifying a data value of the first qubit, modifying a quantum state of the first qubit, and modifying a source Quantum Assembly (QASM) file corresponding to the first qubit.
18 . The non-transitory computer-readable medium of claim 15 , wherein the computer-executable instructions further cause the one or more processor devices to, prior to receiving the indication of the occurrence of the first quantum error:
determine that a quantum error correction (QEC) operation has been performed by a QEC service of the first quantum computing device in response to the previous occurrence of the first quantum error;
obtain, from the QEC service, the metadata associated with the previous occurrence of the first quantum error; and
store the metadata in the QECC entry.
19 . The non-transitory computer-readable medium of claim 15 , wherein the computer-executable instructions further cause the one or more processor devices to:
identify a common characteristic of the first quantum computing device and a second quantum computing device;
identifying one or more QECC entries of the plurality of QECC entries of the first QECC corresponding to the common characteristic; and
copying the one or more QECC entries of the plurality of QECC entries of the first QECC to a second QECC of the second quantum computing device.
20 . The non-transitory computer-readable medium of claim 19 , wherein the common characteristic comprises:
a common characteristic shared by a first quantum service of the first quantum computing device and a second quantum service of the second quantum computing device;
a common characteristic shared by the first qubit of the first quantum computing device and a second qubit of the second quantum computing device;
a common characteristic shared by a first operating environment of the first quantum computing device and a second operating environment of the second quantum computing device; and
a common characteristic of the first quantum error and a second quantum error that affects the second qubit.