Quantum bit calibration method, apparatus and device, and readable storage medium
By conducting state checking and diagnosing of directed acyclic graphs in the qubit calibration method, identifying abnormal nodes and calibrating them, the problem of inefficient and accurate qubit calibration is solved, and automated and real-time qubit calibration is realized, and calibration efficiency is improved.
Patent Information
- Application Number
- CN202510648862.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2025-08-19
AI Technical Summary
In the prior art, the qubit calibration method is not efficient and accurate enough. Especially when the scale of the quantum chip is expanded and the number of qubits increases, manual calibration is time-consuming and labor-intensive, and the changing state of the qubits leads to drift after calibration, resulting in serious resource waste.
By performing state checks on nodes in directed acyclic graph, identifying abnormal nodes, and performing diagnostic and calibration operations, reverse traversing the directed acyclic graph to determine the predecessor nodes, performing data checks and calibrations, and combining parameter calibration tasks and data analysis, qubit parameters are automatically calibrated.
Real-time monitoring of sub-bit calibration process is realized, abnormal nodes are discovered in a timely manner, calibration operations are automatically performed, avoid repeated calibration processes, save resources, and improve calibration efficiency.
Smart Images

Figure CN120509503A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a quantum bit calibration method, apparatus, device, and readable storage medium. Background Art
[0002] Due to the instability of qubit performance, qubit calibration is often complex and typically performed manually. However, as quantum chips scale and the number of qubits increases, this manual calibration becomes too time-consuming and labor-intensive, necessitating the development of an automated qubit calibration method. Currently, automated qubit calibration processes can cause qubit states to drift after calibration due to their variability. Repeating the entire calibration process would be a waste of resources.
[0003] Therefore, how to provide an efficient and accurate quantum bit calibration method is a technical problem that needs to be solved urgently. Summary of the Invention
[0004] In view of this, the purpose of the present invention is to provide a quantum bit calibration method, device, equipment and readable storage medium to solve the problem that the quantum bit calibration method in the prior art is not efficient and accurate enough.
[0005] To solve the above technical problems, the present invention provides a quantum bit calibration method, comprising:
[0006] Perform status checks on nodes in the directed acyclic graph and use nodes with abnormal status as target nodes;
[0007] Performing a diagnosis operation on the target node, and performing a status check operation on the diagnosed target node;
[0008] If the diagnosed target node is in an abnormal state, the target node is used as the starting node, the directed acyclic graph is traversed in reverse, all predecessor nodes are determined, and data checking and calibration operations are performed on the predecessor nodes and the target node;
[0009] If the target node is in a normal state after diagnosis, the process ends.
[0010] On the one hand, before performing a status check operation on the nodes in the directed acyclic graph and taking the nodes in abnormal states as target nodes, it also includes:
[0011] Obtaining each subtask of quantum bit calibration, and constructing the directed acyclic graph according to the relationship between each subtask; the nodes of the directed acyclic graph are each subtask;
[0012] A preliminary quantum bit calibration is performed based on the current execution state of the system and the directed acyclic graph.
[0013] On the one hand, preliminary calibration of quantum bits is performed according to the current execution state of the system and the directed acyclic graph, including:
[0014] If the current execution state of the system is the first calibration state, starting from the root node of the directed acyclic graph, preliminary calibration is performed on each node of the directed acyclic graph in sequence;
[0015] If the current execution state of the system is not the first calibration state, starting from the unexecuted nodes in the directed acyclic graph, preliminary calibration is performed on each unexecuted node in the directed acyclic graph in sequence.
[0016] On the one hand, if the target node after diagnosis is in an abnormal state, the target node is used as the starting node, the directed acyclic graph is traversed in reverse, all predecessor nodes are determined, and data checking operations and calibration operations are performed on the predecessor nodes and the target node, including:
[0017] If the diagnosed target node is in an abnormal state, the target node is used as the starting node, and each node in the directed acyclic graph is traversed in reverse to determine all the predecessor nodes;
[0018] Determine the inspection order of the predecessor nodes according to the traversal order;
[0019] According to the checking order, performing the data checking operation on each of the predecessor nodes in sequence;
[0020] Determining the state of the predecessor node according to the inspection result of the data inspection operation;
[0021] If the predecessor node is in a normal state, the starting node is reported;
[0022] If the predecessor node is in an abnormal state, the predecessor node is regarded as a problem node, the calibration operation is performed on the problem node, and the state of the problem node after the calibration operation is checked;
[0023] If the problem node is in an abnormal state after the calibration operation, the problem node is reported;
[0024] If the problem node is in a normal state after the calibration operation, performing the calibration operation on the starting node and checking the state of the starting node after the calibration operation;
[0025] If the starting node is in an abnormal state after the calibration operation, reporting the starting node;
[0026] If the starting node is in a normal state after the calibration operation, then end;
[0027] The calibration operation includes parameter calibration tasks, data analysis and the diagnostic operation.
[0028] On the one hand, before performing a status check operation on the nodes in the directed acyclic graph and taking the nodes in abnormal states as target nodes, it also includes:
[0029] Determine whether the status of each node in the directed acyclic graph is expired;
[0030] The expired node is used as the first node, a data check operation is performed on the first node, and a status of the first node is updated according to a check time and a check result of the data check operation.
[0031] On the one hand, the expired node is used as the first node, a data check operation is performed on the first node, and a status of the first node is updated according to the check time and the check result of the data check operation, including:
[0032] Using the expired node as the first node;
[0033] Determining a parameter range to be scanned according to the calibration result of the first node;
[0034] Performing a data inspection operation on the data within the parameter range to be scanned to obtain the inspection time and inspection result;
[0035] The state of the first node is updated according to the inspection time and the inspection result.
[0036] On the one hand, a diagnosis operation is performed on the target node, and a status check operation is performed on the diagnosed target node, including:
[0037] If the target node is in an error state, executing a corresponding first diagnostic operation, and performing the state checking operation on the diagnosed target node;
[0038] If the target node is in the offset state, executing a corresponding second diagnostic operation to perform the state checking operation on the diagnosed target node;
[0039] The first diagnostic operation and the second diagnostic operation are different diagnostic operations taken under different abnormal conditions, and their common purpose is to adjust parameters to execute the calibration process.
[0040] The present invention also provides a quantum bit calibration device, comprising:
[0041] The inspection module is used to perform status inspection operations on nodes in the directed acyclic graph and take nodes in abnormal status as target nodes;
[0042] A diagnosis module, configured to perform a diagnosis operation on the target node and perform a status check operation on the diagnosed target node;
[0043] a calibration module configured to, if the diagnosed target node is in an abnormal state, use the target node as a starting node, traverse the directed acyclic graph in reverse order, determine all predecessor nodes, and perform data checking and calibration operations on the predecessor nodes and the target node;
[0044] The ending module is used to end the process if the target node after diagnosis is in a normal state.
[0045] The present invention also provides a quantum bit calibration device, comprising:
[0046] Memory for storing computer programs;
[0047] A processor is used to implement the quantum bit calibration method as described above when executing the computer program.
[0048] The present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the quantum bit calibration method as described above is implemented.
[0049] The present invention also provides a computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned quantum bit calibration method.
[0050] It can be seen from the above technical solution that the present invention performs a status check operation on the nodes in the directed acyclic graph, takes the node in the abnormal state as the target node; performs a diagnostic operation on the target node, and performs a status check operation on the target node after diagnosis; if the target node after diagnosis is in an abnormal state, the target node is used as the starting node, and the directed acyclic graph is traversed in reverse to determine all predecessor nodes, and data check operations and calibration operations are performed on the predecessor nodes and the target node; if the target node after diagnosis is in a normal state, the process ends. The beneficial effects of the present invention are: through the status check operation, the diagnostic operation and the calibration operation, the abnormal problems in the calibration process can be solved in time, the abnormal nodes can be found in time, and the corresponding operations can be performed on the relevant nodes in time based on the abnormal nodes. The present invention can monitor the status of each node in the quantum bit calibration process in real time, automatically execute the corresponding operations and then calibrate the quantum bit parameters, avoiding the need to execute the automated calibration task flow from the beginning each time, greatly saving resources and improving calibration efficiency.
[0051] In addition, the present invention also provides a quantum bit calibration device, equipment and readable storage medium, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0053] Figure 1 A flowchart of a quantum bit calibration method provided by an embodiment of the present invention;
[0054] Figure 2 An example diagram of a directed acyclic graph provided by an embodiment of the present invention;
[0055] Figure 3 A flowchart illustrating a quantum bit calibration method according to an embodiment of the present invention;
[0056] Figure 4 A flowchart illustrating a quantum bit calibration system according to an embodiment of the present invention;
[0057] Figure 5 A schematic diagram of the structure of a quantum bit calibration device provided by an embodiment of the present invention;
[0058] Figure 6 A schematic structural diagram of a quantum bit calibration device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0059] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0060] Quantum computing is a new computing technology that promises to surpass classical computing in solving complex problems. The implementation of quantum computers relies on various physical systems, such as superconducting qubits, cold atoms, and ion traps. Describing the state of qubits in these physical systems often requires a large number of parameters. Before performing calculations, quantum computers must adjust these parameters to a relatively optimal working state, a process known as qubit calibration. During manufacturing, environmental influences, and long-term operation, qubit parameters (such as frequency and phase) may change, leading to deviations in computational results. Calibration ensures the accuracy of qubit states, thereby improving the precision and reliability of quantum computing.
[0061] This invention provides a quantum bit calibration method, please refer to Figure 1 , Figure 1 A flowchart of a quantum bit calibration method provided in an embodiment of the present invention. The method may include:
[0062] S101: Perform a status check operation on the nodes in the directed acyclic graph, and use the nodes in abnormal status as target nodes.
[0063] The execution entity of this embodiment is a terminal. This embodiment does not limit the type of terminal; any terminal capable of performing the operations of the qubit calibration method will suffice. It should be noted that in this embodiment, qubit calibration is performed before the qubits officially execute a task, such as before they perform a quantum computing task. Because quantum computing calibration tasks involve many steps, each with close dependencies, process control can be achieved by constructing a directed acyclic graph (DAG) corresponding to the workflow. This embodiment does not limit the timing of the status check operation; for example, status checks can be performed on nodes in the DAG periodically or when certain conditions are triggered. This embodiment uses status checks to detect abnormal nodes.
[0064] Furthermore, before performing the above-mentioned status check operation on the nodes in the directed acyclic graph and taking the nodes in abnormal status as target nodes, the following steps may be further included:
[0065] Step 21: Obtain each subtask of quantum bit calibration and construct a directed acyclic graph based on the relationship between each subtask; the nodes of the directed acyclic graph are each subtask.
[0066] Specifically, step 21 is the process of constructing a directed acyclic graph, that is, constructing the DAG workflow corresponding to the quantum calibration task, and using the subtasks contained in the calibration task as nodes of the DAG. Specify the dependency relationship between each subtask. If node A depends on node B, add a directed edge from B to A. For example: a calibration task may contain five subtasks A, B, C, D, and E. The dependency relationship between tasks is represented by a two-tuple list [(A, B), (A, C), (B, D), (C, D), (D, E)], then the corresponding DAG is as follows: Figure 2 As shown in the figure, each subtask can be a single experimental parameter scan or a parameter optimization process composed of multiple experiments. For example, a Rabi experiment can calibrate the X-gate parameters of a bit; multiple cavity frequency scans combined with additional logic can calibrate the read frequency of all bits on a read line; batch tasks can also be defined, such as performing frequency calibration tasks on multiple bits simultaneously.
[0067] Step 22: Perform preliminary calibration of quantum bits based on the current system execution state and directed acyclic graph.
[0068] Specifically, step 22 is a preliminary calibration process of the qubits. The preliminary calibration here refers to the first comprehensive parameter calibration of the qubits.
[0069] Furthermore, the preliminary calibration of quantum bits based on the current system execution state and the directed acyclic graph may include the following steps:
[0070] Step 221: If the current execution state of the system is the first calibration state, starting from the root node of the directed acyclic graph, preliminary calibration is performed on each node of the directed acyclic graph in sequence;
[0071] Step 222: If the current execution state of the system is not the first calibration state, starting from the unexecuted nodes in the directed acyclic graph, preliminary calibration is performed on each unexecuted node in the directed acyclic graph in turn.
[0072] Specifically, the system performs the following automatic calibration process for all bits: first, determine the current execution status of the system, and then execute the calibration process in sequence from the nodes that have not been executed in the order of the DAG topology until each node is executed; if the system has never been calibrated before, start from the root node.
[0073] Furthermore, before performing the above-mentioned status check operation on the nodes in the directed acyclic graph and taking the nodes in abnormal status as target nodes, the following steps may be further included:
[0074] Step 31: Determine whether the status of each node in the directed acyclic graph is expired;
[0075] Step 32: The expired node is used as the first node, a data check operation is performed on the first node, and the state of the first node is updated according to the check time and check result of the data check operation.
[0076] Specifically, the purpose of step 31 and step 32 is to ensure that the node states checked by the state check operation are all valid states. The current state of the quantum bit, where the state should be returned based on the latest calibration time of each node. After each task performs a calibration operation, the time of the last execution will be recorded. If the time interval between the state check operation and the last calibration operation exceeds the preset threshold, it should return "expired", that is, the node state is expired, indicating that the bit parameters in the node have not been calibrated for too long. At this time, a calibration operation or a data check operation is performed on the node. In order to improve efficiency, a data check operation can be performed at this time to update the state of the node according to the inspection time and inspection results of the data check operation. At this time, the state of the node is a valid state.
[0077] Furthermore, the above-mentioned method of using the expired node as the first node, performing a data check operation on the first node, and updating the status of the first node according to the check time and check result of the data check operation may specifically include the following steps:
[0078] Step 41: Use the expired node as the first node;
[0079] Step 42: Determine the parameter range to be scanned according to the calibration result of the first node;
[0080] Step 43: Perform a data check operation on the data within the parameter range to be scanned, and obtain the check time and check result;
[0081] Step 44: Update the status of the first node according to the inspection time and the inspection result.
[0082] Specifically, step 41 and step 44 are the processes for performing data check operations on nodes in expired states. The data check operation is used to check whether the bit data returned by the execution task is normal. The difference between the data check operation and the calibration operation is that the parameter range of the scan is dynamically adjusted based on the calibration results, and the scan is only performed near the calibrated parameters. Therefore, it generally consumes fewer resources than a normal calibration operation. For example, for the bit frequency calibration task, the frequency scan range is 4.5GHz-5.0GHz during the first complete preliminary calibration. After the operation is successful, the bit frequency is calibrated at 4.7GHz. Then, in the subsequent data check operation, the frequency scan range can be shortened to 4.65GHz-4.75GHz to verify the correctness.
[0083] S102: Perform a diagnosis operation on the target node, and perform a status check operation on the diagnosed target node.
[0084] It should be noted that the target node in this embodiment is an abnormal node. Therefore, the diagnostic operation refers to recalibrating the parameters of the target node to automatically restore the abnormal state of the target node to a normal state through the diagnostic operation. Furthermore, the purpose of performing a status check on the diagnosed target node is to verify the effectiveness of the diagnostic operation.
[0085] Furthermore, the above-mentioned diagnosis operation on the target node and the status check operation on the diagnosed target node may specifically include the following steps:
[0086] Step 51: If the target node is in an error state, execute a corresponding first diagnostic operation to perform a status check operation on the diagnosed target node;
[0087] Step 52: If the target node is in an offset state, execute the corresponding second diagnostic operation to perform a status check operation on the diagnosed target node; wherein, the first diagnostic operation and the second diagnostic operation are different diagnostic operations taken for different abnormal states, and their common purpose is to adjust the parameters to execute the calibration process.
[0088] Specifically, in this embodiment, the abnormal state of a node can be specifically divided into an error state and an offset state. The offset state indicates that the bit parameter is slightly offset, and the error state indicates that the bit parameter verification is offset. The normal state indicates that the parameters meet expectations and do not require calibration. Therefore, when the abnormal state is diverse, the corresponding diagnostic operations will also be different. Through the built-in diagnostic strategy, the parameters are readjusted to perform the calibration task. Different diagnostic strategies are implemented for different abnormal states of "offset" or "error" for different tasks. These strategies can be derived from manual calibration experience or optimization strategies after learning artificial intelligence models.
[0089] S103: If the target node is in an abnormal state after diagnosis, the target node is used as the starting node, the directed acyclic graph is traversed in reverse, all predecessor nodes are determined, and data checking and calibration operations are performed on the predecessor nodes and the target node.
[0090] Specifically, if the target node remains abnormal after a diagnostic operation, this could mean the target node is a problem node, but the diagnostic operation is ineffective and cannot resolve the issue. Alternatively, the target node may not be a problem node. Therefore, it is necessary to use the target node as the starting node and, based on the workflow in the directed acyclic graph, find its predecessor node. Data inspection and calibration operations are then performed on the predecessor node and the target node to identify and resolve the problem node.
[0091] Furthermore, if the target node after diagnosis is in an abnormal state, the target node is used as the starting node, the directed acyclic graph is traversed in reverse, all predecessor nodes are determined, and data checking and calibration operations are performed on the predecessor nodes and the target node. Specifically, the following steps may be included:
[0092] Step 61: If the target node is in an abnormal state after diagnosis, the target node is used as the starting node, and each node in the directed acyclic graph is traversed in reverse to determine all predecessor nodes;
[0093] Step 62: Determine the inspection order of the predecessor nodes according to the traversal order; perform data inspection operations on each predecessor node in turn according to the inspection order;
[0094] Step 63: Determine the status of the predecessor node according to the inspection result of the data inspection operation;
[0095] Step 64: If the predecessor node is in normal state, the starting node is reported;
[0096] Step 65: If the predecessor node is in an abnormal state, the predecessor node is treated as a problem node, a calibration operation is performed on the problem node, and the state of the problem node after the calibration operation is checked;
[0097] Step 66: If the problem node is in an abnormal state after the calibration operation, the problem node is reported;
[0098] Step 67: If the problem node is in a normal state after the calibration operation, perform a calibration operation on the starting node and check the state of the starting node after the calibration operation;
[0099] Step 68: If the starting node is in an abnormal state after the calibration operation, the starting node is reported;
[0100] Step 69: If the starting node is in a normal state after the calibration operation, then end; wherein the calibration operation includes: parameter calibration tasks, data analysis and diagnosis operations.
[0101] Specifically, a diagnostic operation is performed on the target node. If the state of the node is still abnormal after diagnosis, the inspection and maintenance of its predecessor node is performed. The inspection and maintenance process of the predecessor node includes: taking the target node as the starting node, traversing the DAG graph in reverse order to find all its predecessor nodes. The flag parameter is initialized to True, and the predecessor node is assumed to have no abnormalities. The inspection order of the predecessor nodes is determined according to the traversal order, and the data inspection operation is performed in the inspection order. If the status of all predecessor nodes is normal after the data inspection operation, the flag parameter is set to True, indicating that there is no problem with the predecessor node, the execution of the entire task is terminated, and the starting node is reported to request manual intervention. At this time, it means that the starting node is a problem node, but the built-in diagnostic operation cannot solve the problem of the starting node, and manual intervention is required to solve it; if the status of a predecessor node is abnormal after the data inspection operation, a calibration operation is performed on the predecessor node, and the flag parameter is set to false, indicating that there is a problem with the predecessor node, and After the calibration operation, if the predecessor node is still in an abnormal state, it indicates that the problem of the predecessor node is not solved, then the execution of the entire task is terminated, and the predecessor node is reported to apply for manual intervention. At this time, it is explained that the predecessor node is a problem node, but the built-in diagnostic operation cannot solve the problem of the predecessor node, and manual intervention is required to solve it; if the predecessor node is in a normal state after the calibration operation, it indicates that the problem of the predecessor node has been solved, and the calibration operation of the starting node is re-executed at this time. If the starting node state is still abnormal after the calibration operation, then the execution of the entire task is terminated, and the starting node is reported to apply for manual intervention. At this time, the problem of the predecessor node has been solved, and the starting node also has a problem, but it cannot be solved, and manual intervention is required to solve it. Wherein, reporting in this embodiment refers to transmitting specific node information to the display end or broadcast end according to an established process to notify relevant personnel to participate manually in order to seek a decision, process or intervention process. Its core purpose is to ensure that complex, unconventional or high-risk situations are properly resolved through hierarchical transmission or professional intervention.
[0102] It should be noted that the calibration operation in this embodiment includes: parameter calibration tasks, data analysis and diagnostic operations, that is, executing the parameter calibration process and returning data. If the data is abnormal after analysis, the node is diagnosed.
[0103] This embodiment uses the target node as the starting node and reversely traverses the directed acyclic graph to obtain all predecessor nodes. It then uses data check operations and calibration operations to check the status of the predecessor nodes and perform timely diagnosis. It then performs a status check operation on the diagnosed predecessor nodes to determine whether there are problems with each predecessor node and whether the corresponding diagnostic operation can solve the problem of the problem node. When all predecessor nodes are normal, the status of the starting node is checked again. If abnormal, it is diagnosed using the diagnostic operation to determine whether the corresponding diagnostic operation can solve the problem of the starting node.
[0104] S104: If the target node is in a normal state after diagnosis, the process ends.
[0105] This indicates that the target node is a problem node. After diagnosis of the target node, the problem has been solved, the normal state has been restored, and the calibration has been completed.
[0106] Furthermore, if the target node is in a normal state after the diagnosis, the following steps may be further included after the process ends:
[0107] Count the number of abnormal states of each node in the directed acyclic graph;
[0108] Perform status check operations on nodes in the directed acyclic graph according to the number of times.
[0109] Specifically, this embodiment determines the probability that each node in the directed acyclic graph is prone to problems by counting the number of times each node appears in an abnormal state, and sorts the state inspection order of each node according to the number of times. In this way, the state of nodes with a high probability of problems can be checked first, problem nodes can be discovered and solved in time, and calibration efficiency can be improved.
[0110] The quantum bit calibration method provided by the embodiment of the present invention is applied. By performing a status check operation on the nodes in the directed acyclic graph, the node in the abnormal state is used as the target node; a diagnostic operation is performed on the target node, and a status check operation is performed on the target node after diagnosis; if the target node after diagnosis is in an abnormal state, the target node is used as the starting node, the directed acyclic graph is traversed in reverse, all predecessor nodes are determined, and data check operations and calibration operations are performed on the predecessor nodes and the target node; if the target node after diagnosis is in a normal state, the process ends. The beneficial effect of this method is that through the status check operation, the diagnostic operation and the calibration operation, the abnormal problem of the calibration process can be solved in time, the abnormal node can be found in time, and the corresponding operation can be performed on the relevant nodes in time based on the abnormal node. The present invention can monitor the status of each node in the quantum bit calibration process in real time, automatically execute the corresponding operation and then calibrate the quantum bit parameters, avoiding the need to execute the automated calibration task flow from the beginning each time, greatly saving resources and improving calibration efficiency.
[0111] In order to make the present invention easier to understand, please refer to Figure 3 , Figure 3 A flowchart of a quantum bit calibration method provided in an embodiment of the present invention may include:
[0112] Step 1: Use a directed acyclic graph to represent the workflow of the calibration task, where each node in the directed acyclic graph represents a subtask of the calibration task.
[0113] Step 2: Preliminary calibration phase: The entire workflow is executed, starting from the unexecuted nodes and performing calibration in topological sorting order. If there is a problem, a diagnosis operation is performed. If the diagnosis fails, the process is terminated and manual intervention is requested.
[0114] Step 3: After the initial calibration phase, the qubit parameter automatic maintenance phase begins. In addition to the experimenter actively performing tasks, the system can periodically poll the status of the entire workflow (i.e., each node in the DAG). If the data for a node is out of date (indicating invalid status), a data check is performed and the node status is updated. This data check generally narrows the parameter scan range and consumes fewer resources than a calibration run.
[0115] Step 4: If a problem occurs during the data check operation, a diagnosis operation is performed. If the diagnosis fails, all predecessor nodes are checked starting from the node.
[0116] Step 5: Perform data check on the predecessor node. If any problem occurs, recalibrate the node. If it fails, perform diagnostics. If the problem persists, request manual intervention.
[0117] Step 6: If all predecessor node data are checked to be normal, terminate the process and request manual intervention.
[0118] Step 7: If there is a problem with the predecessor node and the problem has been solved, recalibrate and diagnose the current node (i.e., the starting node). If the problem still occurs, terminate and request manual intervention.
[0119] The following is an introduction to the sub-bit calibration system provided by the embodiment of the present invention. Figure 4 , Figure 4 An example flow chart of a quantum bit calibration system provided in an embodiment of the present invention may specifically include:
[0120] The database is used to record the status and bit parameters of each node in the calibration DAG workflow, such as the status of each node, the latest calibration time, and its related data set.
[0121] The data processing module is used to process and analyze data to determine the status of the node.
[0122] The diagnosis decision module is used to provide the next execution strategy for data diagnosis, which can be a trained artificial intelligence model.
[0123] In addition, the scheduled monitoring system will trigger calibration maintenance tasks at regular intervals according to pre-set rules.
[0124] The following is an introduction to the quantum bit calibration device provided by an embodiment of the present invention. The quantum bit calibration device described below and the quantum bit calibration method described above can be referenced to each other.
[0125] Please refer to Figure 5 , Figure 5 A schematic structural diagram of a quantum bit calibration device provided in an embodiment of the present invention may include:
[0126] The checking module 100 is used to perform a status check operation on the nodes in the directed acyclic graph, and take the nodes in abnormal status as target nodes;
[0127] The diagnosis module 200 is used to perform a diagnosis operation on the target node and perform a status check operation on the diagnosed target node;
[0128] The calibration module 300 is configured to, if the diagnosed target node is in an abnormal state, use the target node as a starting node, traverse the directed acyclic graph in reverse order, determine all predecessor nodes, and perform data checking and calibration operations on the predecessor nodes and the target node;
[0129] The ending module 400 is configured to end the process if the target node after diagnosis is in a normal state.
[0130] Based on the above embodiment, the quantum bit calibration device may further include:
[0131] A directed acyclic graph construction module, configured to obtain the subtasks of quantum bit calibration and construct the directed acyclic graph based on the relationships between the subtasks; the nodes of the directed acyclic graph are the subtasks;
[0132] The preliminary calibration module is used to perform preliminary calibration of quantum bits according to the current execution state of the system and the directed acyclic graph.
[0133] Based on the above embodiment, the preliminary calibration module may include:
[0134] A first calibration unit is configured to, if the current execution state of the system is a first calibration state, perform preliminary calibration on each node of the directed acyclic graph starting from the root node of the directed acyclic graph in sequence;
[0135] The second calibration unit is configured to perform preliminary calibration on each unexecuted node in the directed acyclic graph in sequence, starting from the unexecuted node in the directed acyclic graph, if the execution state of the current system is not the first calibration state.
[0136] Based on any of the above embodiments, the calibration module 300 may include:
[0137] a predecessor node determining unit, configured to, if the diagnosed target node is in an abnormal state, use the target node as the starting node, reversely traverse each node in the directed acyclic graph, and determine all the predecessor nodes;
[0138] An inspection order determining unit, configured to determine an inspection order of the predecessor nodes according to a traversal order;
[0139] a data checking operation unit, configured to sequentially perform the data checking operation on each of the predecessor nodes according to the checking order;
[0140] A node status determination unit, configured to determine the status of the predecessor node according to a check result of the data check operation;
[0141] A first reporting unit, configured to report the starting node if the predecessor node is in a normal state;
[0142] A first unit is configured to, if the predecessor node is in an abnormal state, treat the predecessor node as a problem node, perform the calibration operation on the problem node, and check the state of the problem node after the calibration operation;
[0143] A second reporting unit, configured to report the problem node if the problem node is in an abnormal state after the calibration operation;
[0144] The second unit is configured to perform the calibration operation on the starting node if the problem node is in a normal state after the calibration operation, and check the state of the starting node after the calibration operation;
[0145] a third reporting unit, configured to report the starting node if the starting node is in an abnormal state after the calibration operation;
[0146] An ending unit is configured to end the calibration operation if the starting node is in a normal state after the calibration operation; wherein the calibration operation includes: a parameter calibration task, data analysis, and the diagnostic operation.
[0147] Based on the above embodiment, the quantum bit calibration device may further include:
[0148] A judgment module, used to judge whether the status of each node in the directed acyclic graph is expired;
[0149] The update module is used to take the expired node as the first node, perform a data check operation on the first node, and update the state of the first node according to the check time and check result of the data check operation.
[0150] Based on the above embodiment, the update module may include:
[0151] A first node determining unit, configured to use the expired node as the first node;
[0152] a parameter range determining unit, configured to determine a parameter range to be scanned according to a calibration result of the first node;
[0153] A data checking unit, configured to perform a data checking operation on the data within the parameter range to be scanned, and obtain the checking time and the checking result;
[0154] An updating unit is configured to update the state of the first node according to the inspection time and the inspection result.
[0155] Based on the above embodiment, the diagnosis module 200 may include:
[0156] a first diagnostic operation unit, configured to execute a corresponding first diagnostic operation if the target node is in an error state, and perform the state checking operation on the diagnosed target node;
[0157] The second diagnostic operation unit is used to execute a corresponding second diagnostic operation if the target node is in an offset state, and perform the state check operation on the diagnosed target node; wherein the first diagnostic operation and the second diagnostic operation are different diagnostic operations taken for different abnormal states, and their common purpose is to adjust parameters to execute the calibration process.
[0158] It should be noted that the order of the modules and units in the above-mentioned quantum bit calibration device can be changed without affecting the logic.
[0159] The quantum bit calibration device provided by the embodiment of the present invention includes a check module 100 for performing a status check operation on nodes in a directed acyclic graph, with nodes in abnormal states being used as target nodes; a diagnosis module 200 for performing a diagnosis operation on the target node and performing a status check operation on the diagnosed target node; a calibration module 300 for, if the diagnosed target node is in an abnormal state, using the target node as the starting node, reversely traversing the directed acyclic graph, determining all predecessor nodes, and performing data check operations and calibration operations on the predecessor nodes and the target node; and an end module 400 for ending the process if the diagnosed target node is in a normal state. The beneficial effect of this device is that, through the status check operation, diagnosis operation, and calibration operation, abnormal problems in the calibration process can be promptly resolved, abnormal nodes can be promptly discovered, and corresponding operations can be promptly performed on related nodes based on the abnormal nodes. The present invention can monitor the status of each node in the quantum bit calibration process in real time, automatically execute corresponding operations, and then calibrate the quantum bit parameters, avoiding the need to execute the automated calibration task flow from scratch each time, greatly saving resources and improving calibration efficiency.
[0160] Figure 6 A schematic diagram of the structure of a quantum bit calibration device provided by an embodiment of the present invention is shown in FIG. Figure 6 As shown, qubit calibration includes:
[0161] Memory 60, for storing computer programs;
[0162] The processor 61 is configured to implement the steps of the quantum bit calibration method in the above embodiment when executing a computer program.
[0163] The quantum bit calibration device provided in this embodiment may include but is not limited to a smartphone, a tablet computer, a laptop computer, or a desktop computer.
[0164] The processor 61 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 61 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 61 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 61 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing content required to be displayed on the display screen. In some embodiments, the processor 61 may also include an artificial intelligence (AI) processor for handling computational operations related to machine learning.
[0165] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 60 is at least used to store the following computer program 601, wherein, after the computer program is loaded and executed by the processor 61, it can implement the relevant steps of the quantum bit calibration method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, etc., and the storage method may be short-term storage or permanent storage. Among them, the operating system 602 may include Windows, Unix, Linux, etc. The data 603 may include but is not limited to data of the quantum bit calibration method, etc.
[0166] In some embodiments, the quantum bit calibration device may further include a display screen 62 , an input / output interface 63 , a communication interface 64 , a power supply 65 , and a communication bus 66 .
[0167] Those skilled in the art will understand that Figure 6 The structure shown in does not constitute a limitation of the quantum bit calibration device and may include more or fewer components than shown.
[0168] It is understood that if the quantum bit calibration method in the above-mentioned embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the current technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and performs all or part of the steps of the various embodiments of the method of the present invention. The aforementioned storage medium includes: USB flash drive, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk, and other media that can store program code.
[0169] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned quantum bit calibration method are implemented.
[0170] A computer program product provided in an embodiment of the present application is introduced below. The computer program product described below can be referenced with other embodiments described herein.
[0171] A computer program product comprises a computer program / instruction, which implements the steps of the aforementioned quantum bit calibration method when executed by a processor.
[0172] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. Reference can be made to the descriptions of the identical or similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and the relevant parts can be referred to the descriptions of the methods.
[0173] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0174] Finally, it should be noted that, in this document, relationships such as first and second, etc., are used solely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.
[0175] The above is a detailed introduction to the quantum bit calibration method, device, equipment and computer-readable storage medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A quantum bit calibration method, characterized in that: include: Perform status checks on nodes in the directed acyclic graph and use nodes with abnormal status as target nodes; Performing a diagnosis operation on the target node, and performing a status check operation on the diagnosed target node; If the diagnosed target node is in an abnormal state, the target node is used as the starting node, the directed acyclic graph is traversed in reverse, all predecessor nodes are determined, and data checking and calibration operations are performed on the predecessor nodes and the target node; If the target node is in a normal state after diagnosis, the process ends.
2. The quantum bit calibration method according to claim 1, characterized in that Before performing a status check operation on the nodes in the directed acyclic graph and taking the node in the abnormal state as the target node, the following steps are also included: Obtaining each subtask of quantum bit calibration, and constructing the directed acyclic graph according to the relationship between each subtask; the nodes of the directed acyclic graph are each subtask; A preliminary quantum bit calibration is performed based on the current execution state of the system and the directed acyclic graph.
3. The quantum bit calibration method according to claim 2, characterized in that: Perform preliminary qubit calibration based on the current system execution state and the directed acyclic graph, including: If the current execution state of the system is the first calibration state, starting from the root node of the directed acyclic graph, preliminary calibration is performed on each node of the directed acyclic graph in sequence; If the current execution state of the system is not the first calibration state, starting from the unexecuted nodes in the directed acyclic graph, preliminary calibration is performed on each unexecuted node in the directed acyclic graph in sequence.
4. The quantum bit calibration method according to any one of claims 1 to 3, characterized in that: If the diagnosed target node is in an abnormal state, the target node is used as the starting node, the directed acyclic graph is traversed in reverse, all predecessor nodes are determined, and data checking and calibration operations are performed on the predecessor nodes and the target node, including: If the diagnosed target node is in an abnormal state, the target node is used as the starting node, and each node in the directed acyclic graph is traversed in reverse to determine all the predecessor nodes; Determine the inspection order of the predecessor nodes according to the traversal order; According to the checking order, performing the data checking operation on each of the predecessor nodes in sequence; Determining the state of the predecessor node according to the inspection result of the data inspection operation; If the predecessor node is in a normal state, the starting node is reported; If the predecessor node is in an abnormal state, the predecessor node is regarded as a problem node, the calibration operation is performed on the problem node, and the state of the problem node after the calibration operation is checked; If the problem node is in an abnormal state after the calibration operation, the problem node is reported; If the problem node is in a normal state after the calibration operation, performing the calibration operation on the starting node and checking the state of the starting node after the calibration operation; If the starting node is in an abnormal state after the calibration operation, reporting the starting node; If the starting node is in a normal state after the calibration operation, then end; The calibration operation includes parameter calibration tasks, data analysis and the diagnostic operation.
5. The quantum bit calibration method according to claim 1, wherein: Before performing a status check operation on the nodes in the directed acyclic graph and taking the node in the abnormal state as the target node, the following steps are also included: Determine whether the status of each node in the directed acyclic graph is expired; The expired node is used as the first node, a data check operation is performed on the first node, and a status of the first node is updated according to a check time and a check result of the data check operation.
6. The quantum bit calibration method according to claim 5, characterized in that: The method includes: taking the expired node as the first node, performing a data check operation on the first node, and updating the state of the first node according to the check time and the check result of the data check operation, including: Using the expired node as the first node; Determining a parameter range to be scanned according to the calibration result of the first node; Performing a data inspection operation on the data within the parameter range to be scanned to obtain the inspection time and inspection result; The state of the first node is updated according to the inspection time and the inspection result.
7. The quantum bit calibration method according to claim 1, wherein: Performing a diagnosis operation on the target node and performing a status check operation on the diagnosed target node includes: If the target node is in an error state, executing a corresponding first diagnostic operation, and performing the state checking operation on the diagnosed target node; If the target node is in the offset state, executing a corresponding second diagnostic operation to perform the state checking operation on the diagnosed target node; The first diagnostic operation and the second diagnostic operation are different diagnostic operations taken under different abnormal conditions, and their common purpose is to adjust parameters to execute the calibration process.
8. A quantum bit calibration device, characterized in that: include: The inspection module is used to perform status inspection operations on nodes in the directed acyclic graph and take nodes in abnormal status as target nodes; A diagnosis module, configured to perform a diagnosis operation on the target node and perform a status check operation on the diagnosed target node; a calibration module configured to, if the diagnosed target node is in an abnormal state, use the target node as a starting node, traverse the directed acyclic graph in reverse order, determine all predecessor nodes, and perform data checking and calibration operations on the predecessor nodes and the target node; The ending module is used to end the process if the target node after diagnosis is in a normal state.
9. A quantum bit calibration device, characterized in that include: Memory for storing computer programs; A processor, configured to implement the quantum bit calibration method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by the processor, the quantum bit calibration method according to any one of claims 1 to 7 is implemented.