Quantum error mitigation method and device, electronic equipment and readable storage medium
By monitoring and evaluating error events in the quantum computing process in real time, quantum error mitigation strategies are determined, which solves the problem of low accuracy caused by relying on idealized assumptions in the prior art, and improves the accuracy of quantum computing.
Patent Information
- Application Number
- CN202411145179.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-29
AI Technical Summary
Existing quantum error mitigation methods rely on idealized assumptions, resulting in low accuracy and affecting the accuracy of quantum computing results.
By monitoring the state of subbits in real time, identifying error events, using a preset quantum error recognition model for feature recognition, and evaluating the degree of impact of error events based on the preset error impact evaluation model, determining and implementing quantum error mitigation strategies.
It improves the accuracy and adaptability of quantum error mitigation, reduces the dependence on idealized assumptions, and enhances the accuracy of quantum computing results.
Smart Images

Figure CN119047595A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of quantum computing technology, and in particular to a quantum error mitigation method, device, electronic device, and readable storage medium. Background Art
[0002] Quantum computing is a technology that uses the principles of quantum mechanics to perform calculations. Quantum computing is a process based on the state changes and interactions of quantum bits, which may produce multiple possible calculation results. Compared with traditional classical computing, it shows potential extraordinary computing power in solving certain types of problems. However, quantum computers are very sensitive to interference from the external environment, which makes quantum computing results prone to errors. This is an important and challenging issue in the field of quantum computing.
[0003] The main sources of quantum errors include quantum decoherence and quantum noise, which can lead to loss of quantum information and inaccurate calculation results. To address this problem, researchers have developed a variety of quantum error correction and mitigation techniques. For example, the corresponding error extrapolation method in quantum error mitigation technology involves executing quantum algorithms multiple times at different error rates, and then extrapolating these results to the case of zero error rate to estimate the algorithm performance under ideal conditions.
[0004] However, this quantum error mitigation method is usually based on some overly idealized assumptions, which are often difficult to fully hold true in actual quantum systems, resulting in a significant reduction in the accuracy of the extrapolated results, which in turn affects the accuracy of the final results of quantum computing. Therefore, there is currently a technical problem of low accuracy in quantum computing results due to low accuracy in quantum error mitigation.
[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0006] The main purpose of this application is to provide a quantum error mitigation method, device, electronic device and readable storage medium, aiming to solve the technical problem of low accuracy of quantum computing results caused by low accuracy of quantum error mitigation.
[0007] To achieve the above objectives, the present application provides a quantum error mitigation method, comprising:
[0008] During quantum computing, the state of the qubit is monitored in real time, and error events are determined based on the monitored results;
[0009] Performing feature recognition on the error event according to a preset quantum error recognition model to obtain an error feature;
[0010] Evaluate all error features attributable to the error event according to a preset error impact evaluation model to obtain the degree of influence of the error event on the quantum computing result;
[0011] According to all error features of the error event and the impact degree, a quantum error mitigation strategy corresponding to the error event is determined, and the quantum error mitigation strategy is executed.
[0012] In one embodiment, the preset error impact assessment model includes: a preset quantum state fidelity decay model, a preset quantum gate error propagation model, and a preset quantum measurement error model, and the impact degree includes: a first fidelity decay degree, a first calculation accuracy deviation, a first probability distribution deviation, and an error impact level;
[0013] The step of evaluating all error features attributable to the error event according to a preset error impact evaluation model to obtain the degree of influence of the error event on the quantum computing result comprises:
[0014] Inputting all error features of the error event into the preset quantum state fidelity decay model, predicting the degree of decrease in the fidelity of the quantum information corresponding to the quantum computation caused by the error event, and obtaining a first fidelity decay degree;
[0015] Inputting all the error features into the preset quantum gate error propagation model, predicting the accumulated error of the error event in the quantum gate circuit corresponding to the quantum calculation, so as to determine the first calculation accuracy deviation;
[0016] All the error features are input into the preset quantum measurement error model, the deviation of the error event from the measurement probability distribution corresponding to the quantum calculation is predicted to obtain a first probability distribution deviation, and the error impact level of the error event is determined based on the first probability distribution deviation.
[0017] In one embodiment, the quantum error mitigation strategy includes an error mitigation algorithm and a mitigation priority, and the impact degree includes: a first fidelity attenuation degree, a first calculation accuracy deviation, a first probability distribution deviation, and an error impact level;
[0018] The step of determining a quantum error mitigation strategy corresponding to the error event according to all error characteristics of the error event and the impact degree, and executing the quantum error mitigation strategy comprises:
[0019] Get preset quantum error mitigation models;
[0020] All error features and the impact degree of the error event are input into the preset quantum error mitigation model, a mitigation priority is determined according to the error impact level in the impact degree, and an error mitigation algorithm that matches the error features, the first fidelity attenuation degree in the impact degree, the first calculation accuracy deviation, and the first probability distribution deviation is determined.
[0021] In one embodiment, the step of obtaining a preset quantum error mitigation model further includes:
[0022] Obtaining the computational requirements for quantum computing;
[0023] Determine the accuracy requirement weight and resource requirement weight of quantum computing from the computing requirements;
[0024] The default accuracy weight of a preset default mitigation model in a quantum computing system corresponding to the quantum computing is adjusted to the accuracy requirement weight, and the default resource weight in the preset default mitigation model is adjusted to the resource requirement weight, so that the preset default mitigation model configured with the accuracy requirement weight and the resource requirement weight is used as a preset quantum error mitigation model.
[0025] In one embodiment, after the step of determining an error mitigation algorithm that matches the error feature, the first fidelity attenuation degree in the impact degree, the first calculation accuracy deviation, and the first probability distribution deviation, the step further includes:
[0026] After performing quantum error mitigation on the quantum computing process according to the quantum error mitigation strategy, periodically detecting quantum indicators of the quantum computing according to a preset period;
[0027] When it is detected that the quantum indicator satisfies a preset strategy adjustment condition, adjusting the quantum error mitigation strategy, the calibration setting parameters of the quantum computing, and / or the preset period;
[0028] Among them, the preset strategy adjustment conditions include: the difference between the resource consumption in the quantum indicator and the historical resource consumption detected in the previous time step is greater than the first preset adjustment threshold, the absolute value of the difference between the second fidelity attenuation in the quantum indicator and the historical fidelity attenuation detected in the previous time step is greater than the second preset adjustment threshold, the difference between the second calculation accuracy deviation in the quantum indicator and the historical calculation accuracy deviation detected in the previous time step is less than the third preset adjustment threshold, and / or the second probability distribution deviation in the quantum indicator and the historical probability distribution deviation detected in the previous time step are greater than the fourth preset adjustment threshold.
[0029] In one embodiment, the method further comprises:
[0030] When a plurality of the error events are monitored simultaneously, sorting each of the error events according to the impact degree corresponding to each of the error events to obtain a sorting order;
[0031] The quantum error mitigation strategy corresponding to each of the error events is executed in sequence according to the sorting order.
[0032] In one embodiment, the method further comprises:
[0033] Obtaining a preset error characteristic classification model, a plurality of preset machine learning models of different types, and obtaining a set of error data in a historical quantum computing process from a quantum computing system corresponding to the quantum computing;
[0034] Inputting the error data set into the error characteristic classification model to obtain an error characteristic type of the error data set, wherein the error characteristic type represents an error regularity of the error data set;
[0035] Determining a target machine learning model that matches the error characteristic type in each of the preset machine learning models;
[0036] According to the error data set, the target machine learning model is iteratively trained until the training loss of the target machine learning model is less than a preset loss threshold, and the target machine learning model is used as a preset quantum error recognition model for the quantum computing system.
[0037] In addition, to achieve the above objectives, the present application provides a quantum error mitigation device, the quantum error mitigation device comprising:
[0038] A monitoring module is used to monitor the state of the qubit in real time during the quantum computing process and determine error events based on the monitored results;
[0039] An error recognition module, used to perform feature recognition on the error event according to a preset quantum error recognition model to obtain error features;
[0040] An impact identification module is used to evaluate all error features attributable to the error event according to a preset error impact evaluation model to obtain the degree of influence of the error event on the quantum computing result;
[0041] A mitigation module is used to determine a quantum error mitigation strategy corresponding to the error event according to all error characteristics of the error event and the impact degree, and execute the quantum error mitigation strategy.
[0042] In addition, to achieve the above-mentioned purpose, the present application also provides an electronic device, which includes: a memory, a processor, and a program of the quantum error mitigation method stored in the memory and executable on the processor. When the program of the quantum error mitigation method is executed by the processor, the steps of the quantum error mitigation method as described above can be implemented.
[0043] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which is stored a program for implementing the quantum error mitigation method, and when the program of the quantum error mitigation method is executed by a processor, the steps of the quantum error mitigation method as described above are implemented.
[0044] In addition, to achieve the above objectives, the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned quantum error mitigation method when executed by a processor.
[0045] One or more technical solutions proposed in the present application have at least the following technical effects: the present application monitors the state of quantum bits in the quantum computing process in real time, determines error events according to the monitoring results, and performs feature identification on the error events according to a preset quantum error identification model to obtain error features, thereby realizing real-time monitoring and identification of error events in the quantum computing process, and then evaluates all error features corresponding to the error events according to a preset error impact assessment model to obtain the degree of influence of the error events on the quantum computing results, thereby jointly determining the quantum error mitigation strategy corresponding to the error events according to the error features and the degree of influence, and executing the quantum error mitigation strategy to realize the execution of the corresponding quantum error mitigation strategy for the error events occurring in real time during the quantum computing process. Compared with the error mitigation method for quantum computing determined according to idealized assumptions in the prior art, the present application can determine the quantum error mitigation strategy more flexibly and accurately according to the actual error features and the corresponding degree of influence, thereby more accurately mitigating errors in the quantum computing process, thereby facilitating the improvement of the accuracy of the quantum computing results. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description, are used to explain the principles of the present application.
[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0048] Figure 1This is a flow chart of an embodiment of the quantum error mitigation method of the present application;
[0049] Figure 2 A schematic diagram of the generation process of a preset quantum error recognition model in the quantum error mitigation method of this application;
[0050] Figure 3 A flowchart of another embodiment of the quantum error mitigation method of the present application;
[0051] Figure 4 This is a flow chart of another embodiment of the quantum error mitigation method of the present application;
[0052] Figure 5 This is a schematic diagram of the system structure of the quantum error mitigation device according to an embodiment of the present application;
[0053] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the quantum error mitigation method in the embodiment of the present application.
[0054] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0055] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0056] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0057] Quantum computing is a technology that uses the principles of quantum mechanics to perform calculations. Compared with traditional classical computing, it shows potential extraordinary computing power in solving certain types of problems. However, quantum computers are very sensitive to interference from the external environment, which makes qubits (the calculation results produced during quantum computing) prone to errors, which is an important and challenging problem in the field of quantum computing.
[0058] The main sources of quantum errors include quantum decoherence and quantum noise, which can lead to the loss of quantum information and inaccurate calculation results. To address this problem, researchers have developed a variety of quantum error correction and mitigation techniques. Quantum error correction techniques aim to protect quantum information by introducing redundant qubits and complex encoding schemes so that it can recover from errors. However, these techniques require a large amount of additional quantum resources and are complex to implement, especially in the early stages of current quantum technology development. In contrast, quantum error mitigation methods aim to reduce the impact of errors on calculation results rather than directly correct them. These methods generally require fewer resources and are easier to implement on existing quantum hardware. Error mitigation techniques include various statistical techniques, post-processing procedures, and error extrapolation methods.
[0059] A key strategy for quantum error mitigation is quantum error elimination and error extrapolation. The former is to eliminate errors by observing the error conditions in the quantum circuit and, through probability analysis, placing the inverse operation corresponding to the error in the quantum circuit; the latter involves executing the quantum algorithm multiple times at different error rates and then extrapolating these results to the zero error rate to estimate the algorithm performance under ideal conditions. These two methods have been applied on multiple quantum computing platforms.
[0060] However, existing quantum error handling methods rely on fixed error models, which have been widely used in theory, but often show significant limitations in the dynamic and changing actual quantum computing environment. This type of static method fails to fully adapt to the real-time changes in the environment and the emergence of new error modes, resulting in limited performance of the static method when dealing with complex quantum systems. On the other hand, although traditional quantum error correction technology is effective at the theoretical level, it is limited in practical applications due to its demand for a large number of additional quantum resources (such as adding redundant qubits), especially at the current stage where quantum hardware resources are still scarce. In addition, the current error extrapolation technology is usually based on some overly idealized assumptions, which are often difficult to fully hold true in actual quantum systems, resulting in a significant reduction in the accuracy of the extrapolation results. And under the traditional framework, the error handling process is often resource-intensive and time-consuming, especially in quantum computing tasks that require rapid iterations, which may lead to significant delays and performance degradation.
[0061] In this regard, the present application monitors the state of the qubits in the quantum computing process in real time, thereby identifying the error characteristics in the error events in the monitored results, and then determining the quantum error mitigation strategy according to the error characteristics and the corresponding impact degree of the error event, so that the corresponding quantum error mitigation strategy can be adjusted in real time according to the error event, ensuring that the quantum error mitigation strategy corresponds to the actual error event encountered, thereby adaptively adjusting the corresponding quantum error mitigation strategy according to the actual error situation. The adaptability of adjusting the quantum error mitigation strategy is enhanced. The dependence of the quantum error mitigation strategy on idealized assumptions is greatly reduced, thereby enhancing the accuracy and reliability of quantum error mitigation.
[0062] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a quantum computer, or an electronic device that can realize the above functions.
[0063] Based on this, the embodiment of the present application provides a quantum error mitigation method, referring to Figure 1 , Figure 1 This is a flow chart of an embodiment of a quantum error mitigation method of the present application.
[0064] In this embodiment, the quantum error mitigation method includes steps S10 to S40:
[0065] Step S10, during the quantum computing process, the state of the quantum bit is monitored in real time, and an error event is determined based on the monitored results;
[0066] It should be noted that the present embodiment is applied to a quantum computing system, and the quantum computing system may be a quantum computer. Quantum computing can be performed on the quantum computing system. Quantum computing is a new computing mode that follows the laws of quantum mechanics to control quantum information units for computing. A qubit is the basic information unit of quantum computing. A qubit can exist in multiple states at the same time, for example, a qubit can be in a superposition state. During quantum computing, multiple qubits may correspond to each other. During the quantum computing process, the state of each qubit may change, including single changes and continuous changes. It can be understood that quantum computing is a continuous process. During the quantum computing process, different states of qubits at different time points may be monitored. The monitoring result refers to the state of each qubit in the quantum computing process monitored in real time. An error event refers to the erroneous data in the quantum computing process reflected in the monitoring result. For example, an error event may be an event such as a state flip corresponding to a quantum bit, a superposition state destruction corresponding to a qubit, and the like.
[0067] Exemplarily, the state of one or more corresponding qubits in the quantum computing process may be monitored in real time to determine a monitoring result, so as to determine a corresponding error event in the quantum computing process based on the monitoring result.
[0068] Step S20, performing feature recognition on the error event according to a preset quantum error recognition model to obtain error features;
[0069] It should be noted that the preset quantum error recognition model is preset in advance on the quantum computing system, which may be a quantum computer. The types of preset quantum error recognition models corresponding to different quantum computers may be the same or different. The preset quantum error recognition model configured on the quantum computer can be obtained according to the law of errors occurring when the quantum computer performs quantum computing. The preset quantum error recognition model can be obtained by training in advance. The preset quantum error recognition model is used to extract error features from error events.
[0070] Environmental noise interference and other factors can seriously affect the accuracy and reliability of quantum computing. Therefore, accurately identifying and understanding the error characteristics of error events in quantum processes is a prerequisite for implementing effective quantum error mitigation strategies. Error characteristics can be used to describe the error type of error events, the environment when the error occurs, etc. Error characteristics are characterized by the characteristics of the existence of error events. Error characteristics can be the qubits involved in the error event, the error type of the error event, such as the state flip and phase drift corresponding to the qubit, the error timestamp corresponding to the error event, or the corresponding environmental factors of the error event, such as electromagnetic interference and thermal noise.
[0071] Exemplarily, the error event may be input into a preset quantum error recognition model to perform feature recognition on the error event to obtain an error feature.
[0072] In a feasible implementation manner, the step of obtaining a preset quantum error recognition model may include steps S21 to S24:
[0073] Step S21, obtaining a preset error characteristic classification model, a plurality of preset machine learning models of different types, and obtaining an error data set in a historical quantum computing process from a quantum computing system corresponding to the quantum computing;
[0074] It should be noted that the error characteristic classification model is used to identify the pattern of errors in quantum computing systems. Multiple different types of preset machine learning models can be SVM models, deep learning models, decision tree models, random forest models, etc. Different error patterns correspond to different preset machine learning models for training. The error data set includes multiple error sub-data and their corresponding error labels. The error sub-data in the error data set are error data generated during historical quantum computing in the quantum computing system. The error data set can be used to analyze the pattern of errors in the quantum computing system.
[0075] Exemplarily, the error data set can also be obtained by fixed-point monitoring of the quantum computing process of the quantum computing system. For example, a monitoring point can be set in the quantum computing process of the quantum computing system to monitor and obtain error sub-data in the quantum computing process. The error label corresponding to the error sub-data may include data related to the error, and the error label includes but is not limited to the error type (such as bit flip, phase drift), error timestamp, cause of the error, involved qubits and possible environmental factors, etc. Qubits can be used to store quantum information.
[0076] After collecting multiple error sub-data, each error sub-data needs to be preprocessed, including data cleaning (removing irrelevant data and correcting error records), normalization (ensuring data consistency) and feature extraction (converting data into a format suitable for machine learning). If necessary, manually annotate the error sub-data to provide the information required to train the preset machine learning model. For the feature vector of each error sub-data, the normalization process can be expressed as:
[0077]
[0078] Among them, μ and σ are the mean and standard deviation of the eigenvector of each error sub-data. n is the eigenvector of the error sub-data before normalization, x′ n is the standard feature vector of the normalized error sub-data.
[0079] Step S22, inputting the error data set into the error characteristic classification model to obtain the error characteristic type of the error data set;
[0080] It should be noted that the error characteristic type can be used to describe the error data pattern of the error data set. The error characteristic type can be a situation with obvious boundaries but high dimensionality of error sub-data (i.e., many features), for example, the separation between each error sub-data is clear and can be separated in high-dimensional space by nonlinear mapping; the error characteristic type can also be that each error sub-data can be described by a series of rules or judgment logic; the error characteristic type can also be that the error sub-data is complex and contains multiple types of errors; the error characteristic type can also be when the features of each error sub-data are complex and interrelated, for example, the error pattern is hidden in a large amount of error sub-data and complex structure.
[0081] Step S23, determining a target machine learning model that matches the error characteristic type in each preset machine learning model;
[0082] It should be noted that different error characteristic types correspond to different target machine learning models. This embodiment determines the corresponding target machine learning models for different error characteristic types, so that a preset quantum error recognition model that conforms to the law of the error characteristic type can be trained for different error characteristic types, thereby facilitating the improvement of the accuracy of identifying error characteristics.
[0083] For example, when the error sub-data has obvious boundaries but the data dimension is high (i.e., there are many features), for example, the separation between error types is clear and can be separated in high-dimensional space by nonlinear mapping, the SVM model is determined as the target machine learning model for processing, and the optimization problem corresponding to the SVM model can be expressed as:
[0084]
[0085] The constraints corresponding to the SVM model are:
[0086] y i (w T φ(x i )+b)≥1-ξ i
[0087] ξ i ≥0,i=1,...,n
[0088] Where w is the normal vector of the hyperplane, b is the offset, is a function that maps input data to a high-dimensional space, C is a regularization parameter, ξ i is a slack variable. In the case where the error data has hierarchical or piecewise characteristics, y i Refers to the i-th error label, i is the number, i can be a positive integer.
[0089] For example, when the error characteristic type is that each error sub-data can be described by a series of rules or judgment logic, the target machine learning model can be a decision tree; when the error characteristic type is that the error sub-data is complex and contains multiple types of errors, and if a single decision tree overfits the recognition of the error sub-data, or the accuracy of a single decision tree is not high, the target machine learning model can be a random forest; when the error characteristic type is that the characteristics of each error sub-data are complex and interrelated, for example, when the error rules are hidden in a large amount of error sub-data and complex structures, the target machine learning model can be a deep learning model.
[0090] Step S24, iteratively train the target machine learning model according to the error data set until the training loss of the target machine learning model is less than a preset loss threshold, and determine the preset quantum error recognition model of the quantum computing system.
[0091] It should be noted that the training loss can be the training distance between the training error feature and the error label output by the target machine learning model. The preset loss threshold can be determined based on the actual situation. Exemplarily, the step of iteratively training the target machine learning model includes: inputting the error sub-data in the error data set into the target machine learning model, obtaining the training error feature, calculating the training distance between the training error feature and the error label, and obtaining the training loss. If the training loss is less than the preset loss threshold, the preset quantum error recognition model is obtained. If the training loss is greater than or equal to the preset loss threshold, the error sub-data is re-acquired, and the step of returning to the error sub-data input into the target machine learning model continues to train the target machine learning model, and guides the training loss to be less than the preset loss threshold.
[0092] After the preset quantum error recognition model is trained, cross-validation and other techniques can be used to evaluate the performance of the preset quantum error recognition model to ensure that the preset quantum error recognition model has good generalization ability.
[0093] This embodiment determines the corresponding target machine learning model for different error characteristic types, and then trains to obtain a preset quantum error recognition model, thereby facilitating improving the accuracy of error feature recognition.
[0094] In other embodiments, for different error characteristic types, preset quantum error recognition models corresponding to each error characteristic type can be trained; according to the error characteristic type of the quantum computing system, the preset quantum error recognition model matching the error characteristic type is configured on the quantum computing system.
[0095] For a better understanding of this embodiment, refer to Figure 2, briefly describe the generation process of the preset quantum error recognition model, collect data for training, such as an error data set, preprocess the error data set, the preprocessing includes cleaning and deduplication of the error data set, determine the target machine learning model that matches the error data set, train the target machine learning model according to the error data set until the training loss of the target machine learning model is less than the preset loss threshold, and obtain the preset quantum error recognition model.
[0096] Step S30, evaluating all error features attributable to the error event according to a preset error impact evaluation model to obtain the degree of influence of the error event on the quantum computing result;
[0097] It should be noted that an error event may correspond to one or more error characteristics. For example, the multiple error characteristics corresponding to an error event may be the quantum bits involved, the error type, and the environmental conditions in which the error occurs (thermal noise, electromagnetic interference, etc.).
[0098] The preset error impact assessment model is used to identify the degree of influence of all error characteristics in the error event on the quantum computing result. The quantum computing result refers to the measurement result obtained by measuring the quantum computing process after the quantum computing. In the quantum computing process, different error types and error degrees have different effects on the final quantum computing result of the quantum computing. Therefore, after determining the error characteristics of the error event, determining the degree of influence of the error characteristics on the quantum computing result is the key to determining the quantum error mitigation strategy.
[0099] The preset error impact assessment model includes multiple models for assessing the impact degree of error types, and the impact degree includes the error impact assessment result and error impact level, the first fidelity attenuation degree, the first calculation accuracy deviation, and the first probability distribution deviation.
[0100] Exemplarily, all error features of the error event are input into a preset error impact assessment model, and the first fidelity attenuation, the first calculation accuracy deviation, and the first probability distribution deviation corresponding to the error event are evaluated, and the error impact level of the error event is determined according to the first probability distribution deviation. Since the first fidelity attenuation and the first calculation accuracy deviation both affect the first probability distribution deviation, the error impact level can be determined based on the first probability distribution deviation.
[0101] This embodiment uses actual error characteristics for analysis and prediction, reducing reliance on unrealistic assumptions, thereby improving the accuracy and reliability of quantum computing.
[0102] In one embodiment, the preset error impact assessment model includes: a preset quantum state fidelity decay model, a preset quantum gate error propagation model and a preset quantum measurement error model, and the impact degree includes: a first fidelity decay degree, a first calculation accuracy deviation, a first probability distribution deviation and an error impact level; step S30 also includes steps S31 to S33:
[0103] Step S31, inputting all error features of the error event into a preset quantum state fidelity decay model, predicting the degree of decrease in the fidelity of the quantum information corresponding to the quantum computing caused by the error event, and obtaining a first fidelity decay degree;
[0104] It should be noted that the impact degree can be used to describe the various impacts of error events on the quantum computing process. The error impact assessment results in the impact degree include the first fidelity decay degree, the first calculation accuracy deviation, and the first probability distribution deviation. The first fidelity decay degree is characterized by the degree of reduction in the fidelity of quantum information during the quantum computing process. The fidelity of quantum information is used to measure the reliability of quantum information transmission; the quantum evaluation model also includes a preset quantum state fidelity decay model, a preset quantum gate error propagation model, and a preset quantum measurement error model.
[0105] The preset quantum state fidelity decay model is used to determine the first fidelity decay degree corresponding to the error feature. It can be understood that the preset quantum state fidelity decay model is used to evaluate the degree of decrease in the fidelity of quantum information caused by the error event. Exemplarily, the preset quantum state fidelity decay model can be expressed as:
[0106]
[0107] Where |φ> is the ideal quantum state, ρ is the quantum state affected by all error features corresponding to the error event, and F is the first fidelity decay. After the error features are input into the preset quantum state fidelity decay model, the first fidelity decay can be obtained. The quantum state is used to describe the state of the qubit.
[0108] Step S32, inputting all error features into a preset quantum gate error propagation model, predicting the accumulated errors of the error events in the quantum gate circuit corresponding to the quantum calculation, so as to determine the first calculation accuracy deviation.
[0109] It should be noted that the first calculation accuracy deviation reflects the calculation deviation of the quantum calculation. The preset quantum gate error propagation model is used to determine the first calculation accuracy deviation corresponding to the error event. It can be understood that the preset quantum gate error propagation model is used to evaluate the deviation of the calculation accuracy caused by the cumulative propagation of the error event under the quantum gate circuit corresponding to the quantum calculation. Exemplarily, the preset quantum gate error propagation model can be expressed as:
[0110]
[0111] Among them, e i is the operation error rate of the i-th quantum gate, E is the first calculation accuracy deviation accumulated by the quantum gate circuit containing the sequence quantum gate operation, and n is the total number of quantum gates.
[0112] Step S33, input all error features into a preset quantum measurement error model, predict the deviation of the error event from the measurement probability distribution corresponding to the quantum calculation, obtain a first probability distribution deviation, and determine the error impact level of the error event based on the first probability distribution deviation.
[0113] It should be noted that the first probability distribution deviation reflects the deviation of the measurement probability distribution corresponding to the quantum calculation. The preset quantum measurement error model is used to determine the first probability distribution deviation corresponding to the error event. It can be understood that the preset quantum measurement error model is used to evaluate the deviation when measuring the measurement probability distribution corresponding to the quantum calculation under the influence of the error event. An exemplary preset quantum measurement error model can be expressed as:
[0114]
[0115] p(i) is the ideal measurement probability of the i-th qubit, q(i) is the actual measurement probability of the i-th qubit under the influence of an error event, and Δ is the first probability distribution deviation.
[0116] The measurement probability distribution corresponding to quantum computing refers to measuring multiple quantum states corresponding to quantum computing, obtaining multiple quantum state results, and statistically analyzing the probability of each quantum state result to generate a probability distribution of multiple quantum state results. This embodiment determines the first fidelity attenuation, the first calculation accuracy deviation, and the first probability distribution deviation corresponding to the error feature, thereby achieving a comprehensive analysis of the impact of the error feature on quantum computing, so as to better determine the corresponding quantum error mitigation strategy based on the error feature in the future. Improve the accuracy of quantum mitigation.
[0117] The error impact level can be used to describe the degree of influence of error characteristics on quantum computing results. The error impact level can reflect the urgency of mitigating error characteristics, so that when multiple error characteristics need to be mitigated, the error mitigation order corresponding to each error characteristic can be determined according to the error impact level.
[0118] Since in the process of quantum computing, the first fidelity attenuation and the first computing accuracy deviation will affect the first probability distribution deviation, quantum computing ultimately needs to determine the probability distribution, and the probability distribution can reflect the final computing result of quantum computing. Therefore, the error impact level can be determined by the first probability distribution deviation in the error impact assessment result.
[0119] Specifically, the error impact level may include severe errors, moderate errors and minor errors, and the step of determining the error impact level according to the first probability distribution deviation includes: if the first probability distribution deviation is greater than or equal to a first preset threshold, the error impact level is determined to be a severe error; if the first probability distribution deviation is less than the first preset threshold, and the first probability distribution deviation is greater than the second preset threshold, the error impact level is determined to be a moderate error; if the first probability distribution deviation is less than the second preset threshold, the error impact level is determined to be a minor error, wherein the first preset threshold is greater than the second preset threshold.
[0120] It should be noted that severe errors are characterized as error features that have the most significant negative impact on the accuracy of the final result of quantum computing, and this error feature needs to be mitigated first. Moderate errors are characterized as error features that have a moderate negative impact on the accuracy of the final result of quantum computing, and this error feature can be mitigated. Minor errors are characterized as error features that have a small negative impact on the accuracy of the final result of quantum computing, and this error feature can be ignored or the error features corresponding to the severe errors and the error features corresponding to the moderate errors can be processed before the error features corresponding to the minor errors are processed. Negative impact refers to the impact of reducing accuracy.
[0121] The first probability distribution deviation is greater than or equal to the first preset threshold, which means that the first probability distribution deviation is large, and the gap between the probability distribution actually measured and the ideal probability distribution is large. The error impact level is a serious error, which means that the error characteristics corresponding to the first probability distribution deviation seriously affect the final calculation results of the quantum calculation.
[0122] The first probability distribution deviation is less than the first preset threshold, and the first probability distribution deviation is greater than the second preset threshold. There is a certain difference between the probability distribution actually measured and the ideal probability distribution, but the difference is not large, so the error impact level can be determined to be a medium error. The first probability distribution deviation is less than the second preset threshold, indicating that the first probability distribution deviation is small, and the error feature has a small impact on the final result corresponding to the quantum calculation, so in this case, the error impact level is determined to be a slight error.
[0123] The first preset threshold is greater than the second preset threshold, and the first probability distribution deviation refers to the absolute value of the difference between the probability distribution obtained by actual measurement and the ideal probability distribution.
[0124] This embodiment determines the error impact level of the error feature through the first probability distribution deviation, so as to facilitate the subsequent determination of the order of mitigation corresponding to the error feature, so as to give priority to mitigating the error features with a serious error error impact level, so as to ensure the accuracy of quantum computing. In addition, after determining the preset error impact assessment model, the error impact assessment results output by the preset error impact assessment model can be verified through actual quantum computing experiments to check the accuracy and reliability of the preset error impact assessment model. And the preset error impact assessment model can be calibrated and optimized through the results of the quantum computing experiment to improve the accuracy of the preset error impact assessment model.
[0125] For a better understanding of this implementation, refer to Figure 3 , briefly describe the process of determining the impact degree of error features: obtain a preset error impact assessment model, input all error features corresponding to the error event into the preset error impact assessment model to obtain the impact degree, including the first fidelity attenuation, the first calculation accuracy deviation, and the first probability distribution deviation, and determine the error impact level of the error event according to the first probability distribution deviation in the impact degree. The error impact level may include severe errors, medium errors, and minor errors. It can be understood that the corresponding error features can be classified as severe errors, medium errors, or minor errors according to different error impact assessment results. The error impact level and the error impact assessment results can be transmitted to the policy layer of the quantum computing system. The policy layer of the quantum computing system is used to determine the quantum error mitigation strategy. The quantum computing system also includes an error recognition layer and an error impact assessment layer. The error recognition layer is used to identify the error features of the error event, and the error impact assessment layer is used to determine the mitigation priority and error impact level corresponding to the error event.
[0126] Step S40, determining a quantum error mitigation strategy corresponding to the error event according to all error characteristics and impact levels of the error event, and executing the quantum error mitigation strategy.
[0127] It should be noted that the quantum error mitigation strategy is used to mitigate the mitigation error characteristics generated during quantum computing. The quantum error mitigation strategy is an error mitigation method for error events and corresponding impact levels. The quantum error mitigation strategy includes a mitigation priority and an error mitigation algorithm. The error mitigation algorithm may include multiple error mitigation operations. Different error characteristics and impact levels correspond to different quantum error mitigation strategies. The quantum error mitigation strategy is adaptively determined based on the error characteristics and impact level. It can be understood that in this embodiment, the corresponding quantum error mitigation strategy can be automatically determined by the error characteristics and impact level to accurately mitigate the impact of the error characteristics on quantum computing. The impact level may include a first fidelity attenuation degree, a first calculation accuracy deviation, a first probability distribution deviation, and an error impact level. The quantum error mitigation strategy includes an error mitigation algorithm and a mitigation priority.
[0128] Exemplarily, the mitigation priority that matches the error impact level can be searched in the preset priority mapping relationship, and the error mitigation algorithm corresponding to the error feature, the first fidelity attenuation, the first calculation accuracy deviation and the first probability distribution deviation can be searched in the preset algorithm mapping relationship. The preset priority mapping relationship includes the mapping relationship between each preset error impact level and the corresponding preset mitigation priority, and the preset priority mapping relationship can be determined based on the actual situation. The preset algorithm mapping relationship includes the mapping relationship between each preset error result and the corresponding preset error algorithm, and the preset error result includes the preset error feature, the preset first fidelity attenuation, the preset first calculation accuracy deviation and the preset first probability distribution deviation. In other embodiments, the error feature and the degree of impact can also be input into the preset quantum error mitigation model, and the corresponding mitigation priority and error mitigation algorithm are determined by the preset quantum error mitigation model.
[0129] This embodiment monitors the state of quantum bits in the quantum computing process in real time, determines error events according to the detection results, and performs feature identification on the error events according to a preset quantum error identification model to obtain error features, thereby realizing real-time monitoring and identification of error events in the quantum computing process, and then evaluates all error features corresponding to the error events according to a preset error impact assessment model to obtain the degree of influence of the error events on the quantum computing results, so that the quantum error mitigation strategy corresponding to the error events can be jointly determined according to the error features and the degree of influence, and the quantum error mitigation strategy is executed to implement the corresponding quantum error mitigation strategy for the error events occurring in real time during the quantum computing process. Compared with the error mitigation method for quantum computing determined according to idealized assumptions in the prior art, the embodiment of the present application can determine the quantum error mitigation strategy more flexibly and accurately according to the actual error features and the corresponding degree of influence, so that the errors in the quantum computing process can be more accurately mitigated, thereby facilitating the improvement of the accuracy of the quantum computing results.
[0130] Moreover, this embodiment can identify the error characteristics and the corresponding impact in real time, and determine the quantum error mitigation strategy according to the error characteristics and the impact, so as to adapt to the changes in the quantum computing process, thereby providing continuous and effective error mitigation and enhancing the adaptability and robustness of the quantum computing system. Moreover, this embodiment can determine the quantum error mitigation strategy in real time, so as to significantly reduce the delay in the quantum computing process and improve the overall execution performance of the quantum computing task.
[0131] Further, the quantum error mitigation strategy includes an error mitigation algorithm and a mitigation priority, and the impact degree includes: a first fidelity attenuation degree, a first calculation accuracy deviation, a first probability distribution deviation, and an error impact level; in one embodiment, step S40 also includes steps S41 to S42:
[0132] Step S41, obtaining a preset quantum error mitigation model;
[0133] It should be noted that the preset quantum error mitigation model is used to determine all error features corresponding to the error event and the quantum error mitigation strategy corresponding to the corresponding impact degree. For example, the preset default mitigation model can be obtained from the quantum computing system, and the preset default mitigation model can be used as the preset quantum error mitigation model. It is also possible to find a preset quantum error mitigation model that matches the computational requirements of quantum computing from the quantum computing system, or it can be the preset default mitigation model and the computational requirements of quantum computing to determine the preset quantum error mitigation model.
[0134] In a feasible embodiment, step S41 further includes steps S411 to S413:
[0135] Step S411, obtaining the computational requirements of quantum computing;
[0136] Step S412, determining the accuracy requirement weight and resource requirement weight of quantum computing from the computing requirements;
[0137] Step S413, adjusting the default accuracy weight of the preset default mitigation model in the quantum computing system corresponding to the quantum computing to the accuracy requirement weight, and adjusting the default resource weight in the preset default mitigation model to the resource requirement weight, so as to use the preset default mitigation model configured with the accuracy requirement weight and the resource requirement weight as the preset quantum error mitigation model.
[0138] It should be noted that the computing requirements are used to describe the resource usage of quantum computing and the accuracy requirements of the final computing results. The preset default mitigation model is also used to determine the quantum error mitigation strategy, and the preset default mitigation model can be obtained based on deep learning model training.
[0139] The precision requirement weight can reflect the requirement for the accuracy of quantum computing results, and the resource requirement weight can reflect the importance of resource calls in the quantum computing process. The larger the precision requirement weight of quantum computing, the higher the requirement for the accuracy of quantum computing this time, and the larger the resource requirement weight, the more it is hoped to call as few resources as possible in the quantum computing process.
[0140] There may be multiple quantum error mitigation strategies for the same error event and the corresponding degree of impact, and different quantum error mitigation strategies may not have the same impact on accuracy and resource calls. For example, when quantum error mitigation strategy A is executed, the accuracy of the final result of quantum computing is improved by 50%, but a large amount of resources z1 need to be called; when quantum error mitigation strategy B is executed, the accuracy of the final result of quantum computing is improved by 40%, but the amount of resources that need to be called is z2, and z1 is greater than z2. At this time, based on the computing requirements of quantum computing, it can be determined whether quantum computing tends to be more accurate or tends to use fewer resources to determine the corresponding quantum error mitigation strategy. This can more accurately determine the quantum error mitigation strategy. Automatically balance the accuracy and resource usage of quantum computing.
[0141] Therefore, this embodiment determines the computing requirements of quantum computing, configures the accuracy requirement weight and resource requirement weight in the computing requirements in the preset default mitigation model, and obtains a preset quantum error mitigation model, so as to facilitate the use of the preset quantum error mitigation model to determine the quantum error mitigation strategy corresponding to the quantum computing under the error characteristics, so as to improve the accuracy of determining the quantum error mitigation strategy. The preset quantum error mitigation model can be stored on the quantum computing system. This facilitates improving the accuracy of quantum computing, reducing the cost of quantum computing, and improving the benefits of quantum computing while relying on fewer quantum resources.
[0142] As an example, the precision requirement weight and resource requirement weight of the quantum computing are obtained, and the precision requirement weight and resource requirement weight are adjusted to the precision requirement weight, and the default resource weight in the preset default mitigation model is adjusted to the resource requirement weight, so as to obtain the preset quantum error mitigation model. As another example, the computational requirements of the quantum computing are obtained, and a preset quantum error mitigation model matching the computational requirements is searched in the quantum computing system. If a preset quantum error mitigation model matching the computational requirements exists in the quantum computing system, the preset quantum error mitigation model is obtained. If a preset quantum error mitigation model matching the computational requirements does not exist in the quantum computing system, step S413 is performed.
[0143] Among them, the training process of the preset default mitigation model may include: obtaining multiple error samples and corresponding policy labels, and determining the model to be trained, the error samples include error feature samples and impact degree samples, and the policy labels are error mitigation measures formulated for the error samples. The error samples are input into the model to be trained, the policy features are obtained, and the policy training distance between the policy features and the policy labels is calculated. If the policy training distance is less than the preset loss value, it means that the model to be trained has converged and the preset default mitigation model is obtained; if the policy training distance is less than the preset loss value, the error samples are re-obtained to iteratively train the model to be trained until the policy training distance of the model to be trained is less than the preset loss value. The preset default mitigation model is configured with a default accuracy weight and a default resource weight. In other embodiments, the preset default mitigation model can also be directly called to determine the corresponding quantum error mitigation strategy.
[0144] Step S42, input all error characteristics and impact levels of the error event into a preset quantum error mitigation model, determine the mitigation priority according to the error impact level in the impact level, and determine an error mitigation algorithm that matches the error characteristics, the first fidelity attenuation degree in the impact level, the first calculation accuracy deviation, and the first probability distribution deviation.
[0145] It should be noted that the quantum error mitigation strategy includes mitigation priority and error mitigation algorithm. The quantum error mitigation algorithm may include one or more error mitigation operations. For example, the error mitigation algorithm may be a zero-noise extrapolation technique: by performing calculations at different noise levels and performing extrapolation analysis, the results under ideal noise-free conditions can be inferred; or a reverse operation insertion technique may be used, which may perform multiple reverse operations: inserting reverse operations during quantum computing to offset the impact of error characteristics, etc. The preset quantum error mitigation model may adaptively output a quantum error mitigation strategy based on error events and the degree of impact.
[0146] The quantum error mitigation strategy may also include multiple error mitigation algorithms. For example, when the preset quantum error mitigation model identifies that the fidelity attenuation of the quantum information reflected by the first fidelity attenuation is too much, and the first probability distribution deviation is too large, the error mitigation algorithm corresponding to the error characteristic and the first fidelity attenuation can be determined as a zero-noise extrapolation technique, and the error mitigation algorithm corresponding to the error characteristic and the first probability distribution deviation can be determined as a probability error cancellation (Probability Error Cancellation, PEC). In other embodiments, it may also be an error mitigation algorithm corresponding to the error characteristic, the first fidelity attenuation, the first probability distribution deviation, and the first calculation accuracy deviation. Mitigation priority can be used to describe the order of execution of the quantum error mitigation strategy. Mitigation priority may include a first priority, a second priority, and a third priority, etc.
[0147] Exemplarily, when the error impact level is a serious error, the mitigation priority is determined to be the first priority, when the error impact level is a medium error, the mitigation priority is determined to be the second priority, and when the error impact is a slight error, the mitigation priority is determined to be the third priority. The mitigation order corresponding to the first priority is prior to the second priority and prior to the third priority, and the second priority is prior to the third priority.
[0148] In a feasible embodiment, after step S42, steps S421 to S422 are further included:
[0149] Step S421, after performing quantum error mitigation on the quantum computing process according to the quantum error mitigation strategy, periodically detecting the quantum indicator of the quantum computing according to a preset period;
[0150] Step S422, when it is detected that the quantum indicator meets the preset strategy adjustment condition, adjust the quantum error mitigation strategy, the calibration setting parameters of the quantum computing, and / or the preset period;
[0151] Among them, the preset strategy adjustment conditions include: the difference between the resource consumption in the quantum indicator and the historical resource consumption detected in the previous time step is greater than the first preset adjustment threshold, the absolute value of the difference between the second fidelity decay degree in the quantum indicator and the historical fidelity decay degree detected in the previous time step is greater than the second preset adjustment threshold, the difference between the second calculation accuracy deviation in the quantum indicator and the historical calculation accuracy deviation detected in the previous time step is less than the third preset adjustment threshold, and / or the second probability distribution deviation in the quantum indicator and the historical probability distribution deviation detected in the previous time step are greater than the fourth preset adjustment threshold.
[0152] It should be noted that as the quantum error mitigation strategy is implemented and the running time of the quantum computing system increases, some factors may change accordingly, such as the fidelity of quantum information. After quantum error mitigation is performed on the error characteristics of quantum computing, the quantum indicators of quantum computing can be periodically detected to determine the calculation status of quantum computing after quantum error mitigation. The quantum indicators reflect the calculation status of the quantum computing process after quantum error mitigation.
[0153] The quantum index may include the resource consumption in the quantum computing process, the second fidelity decay of the quantum information corresponding to the quantum computing after error mitigation of the quantum computing, the second computing accuracy deviation and / or the second probability distribution deviation, etc. Resource consumption refers to the consumption of quantum resources in the quantum computing process.
[0154] The preset quantum error recognition model can also be called to identify the mitigation error characteristics of the mitigation error event after the quantum computing process is error mitigated, and the corresponding mitigation error characteristics are called to the preset error impact assessment model to obtain the second fidelity attenuation, the second calculation accuracy deviation and the second probability distribution deviation. The second fidelity attenuation is characterized by the degree of reduction in the fidelity of the quantum information detected after the quantum computing is error mitigated; the second calculation accuracy deviation reflects the calculation deviation after the quantum computing is error mitigated. The second probability distribution deviation reflects the deviation of the probability distribution corresponding to the quantum computing detected after the quantum computing is error mitigated.
[0155] When the difference between the resource consumption and the historical resource consumption detected in the previous time step is greater than the first preset adjustment threshold, it indicates that the use of quantum resources may have increased abnormally; when the absolute value of the difference between the second fidelity decay degree and the historical fidelity decay degree detected in the previous time step is greater than the second preset adjustment threshold, it indicates that the second fidelity decay degree has changed suddenly, which may be a sudden increase or a sudden decrease, etc.; when the difference between the second calculation accuracy deviation and the historical calculation accuracy deviation detected in the previous time step is less than the third preset adjustment threshold, it indicates that the second calculation accuracy deviation has suddenly increased; when the second probability distribution deviation and the historical probability distribution deviation detected in the previous time step are greater than the fourth preset adjustment threshold, it indicates that the second probability distribution deviation has suddenly increased.
[0156] It is understandable that when the use of quantum resources may increase abnormally, the second fidelity attenuation suddenly changes, the second calculation accuracy deviation suddenly increases, and / or the second probability distribution deviation suddenly increases, it is necessary to adjust the quantum error mitigation strategy of the error characteristics, the calibration setting parameters of the quantum calculation, and / or the preset period. The calibration setting parameters may refer to the gate calibration parameters of the quantum gate corresponding to the quantum calculation.
[0157] Exemplarily, when it is detected that the quantum indicator meets the preset strategy adjustment conditions, the preset period can be increased to increase the process of detecting the quantum indicator of quantum calculation twice adjacently, so as to evaluate the implementation effect of the quantum error mitigation strategy from a long-term perspective, avoid the situation where the quantum indicator obtained by detection is not in compliance with the preset strategy adjustment conditions due to too frequent detection, and avoid adjusting the quantum error mitigation strategy with good mitigation effect.
[0158] For example, the quantum error mitigation strategy can also be adjusted, such as updating the error mitigation algorithm, etc., and the calibration setting parameters of quantum computing can also be adjusted, such as lowering the gate calibration parameters of the quantum gate. For example, when the error mitigation algorithm includes inserting quantum gates to eliminate errors, each quantum gate operation will accumulate a certain error phase during the quantum computing process. After a certain amount of errors are accumulated, these errors are eliminated by inserting a gate that is "inverse" to these accumulated errors. However, when the gate calibration parameters are too high, the accumulated errors cannot be eliminated after a period of time. In this case, the opposite effect may occur or the errors cannot be eliminated. Therefore, the effect of quantum error mitigation can be improved by lowering the gate calibration parameters.
[0159] When one or more of the following conditions are met, it is determined that the quantum indicator meets the preset strategy adjustment situation: the difference between the resource consumption in the quantum indicator and the historical resource consumption detected in the previous time step is greater than the first preset adjustment threshold, the absolute value of the difference between the second fidelity decay degree in the quantum indicator and the historical fidelity decay degree detected in the previous time step is greater than the second preset adjustment threshold, the difference between the second calculation accuracy deviation in the quantum indicator and the historical calculation accuracy deviation detected in the previous time step is less than the third preset adjustment threshold, and / or the second probability distribution deviation in the quantum indicator and the historical probability distribution deviation detected in the previous time step are greater than the fourth preset adjustment threshold.
[0160] When it is detected that the quantum indicator meets the preset strategy adjustment conditions, the quantum error mitigation strategy of the error feature, the calibration setting parameters of the quantum calculation, and the preset period can be adjusted, or only one or two of the quantum error mitigation strategy and the calibration setting parameters of the quantum calculation can be adjusted. This embodiment does not specifically limit this. The resource consumption in the quantum indicator can be directly obtained from the quantum computing system, and the quantum computing system can automatically record the resource consumption during the quantum computing process. The quantum error mitigation strategy for adjusting the error feature can be to input the detected mitigation error feature of the mitigation error event, the second fidelity attenuation, the second calculation accuracy deviation, and the second probability distribution deviation into the preset quantum error mitigation model to obtain a newly output quantum error mitigation strategy.
[0161] Furthermore, the embodiments of the present application may also perform feedback training on a preset quantum error mitigation model, a preset quantum error identification model, and a preset error impact assessment model to improve the accuracy of each model.
[0162] This embodiment automatically monitors the quantum computing process after the implementation of the quantum error mitigation strategy, thereby achieving instant response to changes in the quantum computing process, automatically adjusting the quantum error mitigation strategy, calibrating the set parameters and / or the preset cycle, etc., to maintain or improve the accuracy and efficiency of the calculation. This application ensures that errors can be quickly identified and mitigated during the quantum computing process, greatly reducing any execution delay, and significantly improving quantum computing performance.
[0163] In a feasible embodiment, the quantum error mitigation method further includes:
[0164] Step X10, when multiple error events are monitored simultaneously, sorting each error event according to the impact degree corresponding to each error event to obtain a sorting order;
[0165] Step X20, executing the quantum error mitigation strategy corresponding to each error event in sequence according to the sorting order.
[0166] It should be noted that multiple error events can be monitored simultaneously during the quantum computing process, and in order to better mitigate errors in the quantum computing process, the error events that have a greater impact on the quantum computing results can be mitigated first. Therefore, this embodiment sorts each error event according to the impact degree corresponding to each error event.
[0167] Exemplarily, the error impact level can be determined from the impact degree, and the sorting order of the quantum error mitigation strategies corresponding to each error event can be determined according to the error impact level, and the quantum error mitigation strategies can be executed in the sorting order. Specifically, when the error impact level is the severity level, the execution order of the quantum error mitigation strategies corresponding to the error event is determined to be the first order; if there are multiple quantum error mitigation strategies with the first order of sorting, then any target quantum error mitigation strategy is determined to be executed in the quantum error mitigation strategies corresponding to each first order, until all quantum error mitigation strategies corresponding to the first order are executed.
[0168] When the error impact level is medium, the sorting order is determined to be the second order; if there are multiple quantum error mitigation strategies whose sorting order is the second order at the same time, after all the quantum error mitigation strategies corresponding to the first order are executed, any target quantum error mitigation strategy is determined to be executed among the quantum error mitigation strategies corresponding to each second order until all the quantum error mitigation strategies corresponding to the second order are executed.
[0169] When the error impact level is slight, the sorting order is determined to be the third order; if there are multiple quantum error mitigation strategies whose sorting order is the third order at the same time, after all the quantum error mitigation strategies corresponding to the first order are executed, and after all the quantum error mitigation strategies corresponding to the second order are executed, then determine to execute any target quantum error mitigation strategy in the quantum error mitigation strategies corresponding to each third order, until all the quantum error mitigation strategies corresponding to the third order are executed. Among them, the mitigation order of the first order is before the second order and the third order, and the mitigation order of the second order is before the third order. In other embodiments, the execution order of the quantum error mitigation strategies can also be determined by the mitigation priority of each quantum error mitigation strategy.
[0170] This embodiment determines the execution order of each quantum error mitigation strategy by sorting order, so that error events that have a greater impact on quantum computing results can be mitigated first, so as to quickly mitigate quantum errors corresponding to quantum computing and ensure the accuracy of quantum computing.
[0171] Further, for a better understanding of this embodiment, refer to Figure 4 , briefly describe the process of determining and executing the quantum error mitigation strategy in this embodiment. The quantum computing system may include an error recognition layer, an error impact assessment layer, and a strategy layer. The error recognition layer may detect the quantum computing process, specifically, it may monitor the quantum state of the quantum bit in the quantum computing process in real time, call the preset quantum error recognition model to perform feature recognition on the monitored error event, and obtain the error feature; input all the error features corresponding to the error event into the preset error impact assessment model, the first fidelity attenuation degree, the first calculation accuracy deviation, and the first probability distribution deviation may be sent to the error impact assessment layer, and the error impact assessment layer may determine the impact of all the error features. Specifically, only all the error features may be input into the preset error impact assessment model to obtain the first fidelity attenuation degree, the first calculation accuracy deviation, and the first probability distribution deviation, and the error impact level may be determined according to the first probability distribution deviation. All the error features of the error recognition layer, the first fidelity attenuation degree, the first calculation accuracy deviation, the first probability distribution deviation, and the error impact level of the error impact assessment layer may be input into the strategy layer, so as to determine the quantum error mitigation strategy through the preset quantum error mitigation model of the strategy layer, and execute the quantum error mitigation strategy. Since quantum computing is an ongoing process, the quantum computing may not be completed after the quantum error mitigation strategy is executed on the quantum computing, so the quantum computing process can still be monitored. The situation of quantum computing after the quantum error mitigation strategy is executed can be monitored. Therefore, the quantum computing process can still be monitored through the error identification layer.
[0172] After executing the quantum error mitigation strategy, it can be fed back to the preset quantum error recognition model in the error recognition layer to perform feedback training on the preset quantum error recognition model, thereby improving the accuracy and reliability of the preset quantum error recognition model; it can also be fed back to the error impact assessment layer to perform feedback training on the preset error impact assessment model, thereby improving the accuracy and reliability of the error feature recognition model.
[0173] This application also provides a quantum error mitigation device, please refer to Figure 5 , the quantum error mitigation device includes:
[0174] A monitoring module 10 is used to monitor the state of the quantum bit in real time during the quantum computing process and determine the error event based on the monitoring results;
[0175] An error recognition module 20 is used to perform feature recognition on the error event according to a preset quantum error recognition model to obtain an error feature;
[0176] An impact identification module 30 is used to evaluate all error features attributable to the error event according to a preset error impact evaluation model to obtain the degree of influence of the error event on the quantum computing result;
[0177] The mitigation module 40 is used to determine a quantum error mitigation strategy corresponding to the error event according to all error characteristics of the error event and the impact degree, and execute the quantum error mitigation strategy.
[0178] The quantum error mitigation device provided in the present application adopts the quantum error mitigation method in the above-mentioned embodiment, aiming to solve the technical problem of low accuracy of quantum computing results caused by low accuracy of quantum error mitigation. Compared with the prior art, the beneficial effects of the quantum error mitigation method provided in the embodiment of the present application are the same as the beneficial effects of the quantum error mitigation method provided in the above-mentioned embodiment, and other technical features in the quantum error mitigation device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here. The embodiment of the present application provides an electronic device, which may be a playback device, and the electronic device includes: at least one processor; and a memory connected to communication with the at least one processor; wherein the memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the quantum error mitigation method in the above-mentioned embodiment.
[0179] Reference below Figure 6, which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0180] like Figure 6 As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM) 1004. In RAM 1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, ROM 1002, and RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device may allow the electronic device to communicate wirelessly or wired with other devices to exchange data. Although the electronic device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead.
[0181] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 1009, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0182] The electronic device provided by the present application adopts the quantum error mitigation method in the above-mentioned embodiment 1 to solve the technical problem of low accuracy of quantum computing results caused by low accuracy of quantum error mitigation. Compared with the prior art, the beneficial effects of product flow data distribution provided by the embodiment of the present application are the same as the beneficial effects of the quantum error mitigation method provided by the above-mentioned embodiment, and the other technical features in the quantum error mitigation device are the same as the features disclosed by the above-mentioned embodiment method, which will not be repeated here. It should be understood that the various parts of the present disclosure can be implemented by hardware, software, firmware or a combination thereof. In the description of the above-mentioned embodiments, specific features, structures, materials or characteristics can be combined in a suitable manner in any one or more embodiments or examples. The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims. The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the quantum error mitigation method in the above-mentioned embodiment 1. The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor devices, equipment or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable EPROM (ElectricalProgrammable Read OnlyMemory, read-only memory) or flash memory, an optical fiber, a portable compact disk CD-ROM (compact disc read-onlymemory, read-only memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution device, device or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency, radio frequency), etc., or any suitable combination of the above. The above-mentioned computer-readable storage medium may be contained in an electronic device; it may also exist alone without being assembled into an electronic device.The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device: monitors the state of the quantum bit in real time during the quantum computing process, and determines an error event based on the monitoring results; performs feature identification on the error event based on a preset quantum error identification model to obtain an error feature; evaluates all error features attributable to the error event based on a preset error impact assessment model to obtain the degree of influence of the error event on the quantum computing result; determines the quantum error mitigation strategy corresponding to the error event based on all error features and the degree of influence of the error event, and executes the quantum error mitigation strategy.
[0183] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a LAN (local area network) or a WAN (Wide Area Network), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0184] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based device that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0185] The modules involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The name of the module does not constitute a limitation on the unit itself under certain circumstances. The computer-readable storage medium provided in the present application stores computer-readable program instructions for executing the above-mentioned quantum error mitigation method, which is intended to solve the technical problem of low accuracy of quantum computing results caused by low accuracy of quantum error mitigation. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiments of the present application are the same as the beneficial effects of the quantum error mitigation method provided in the above-mentioned embodiments, which will not be repeated here.
[0186] The present application also provides a computer program product, including a computer program, which implements the steps of the quantum error mitigation method as described above when executed by a processor. The computer program product provided by the present application is intended to solve the technical problem of low accuracy of the results of quantum computing caused by the low accuracy of quantum error mitigation. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the quantum error mitigation method provided by the above embodiment, which will not be repeated here. The above is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. All equivalent structures or equivalent process transformations made using the contents of the specification and drawings of this application, or directly or indirectly used in other related technical fields, are similarly included in the patent processing scope of the present application.
Claims
1. A quantum error mitigation method, characterized in that: The method includes: During quantum computing, the state of the qubit is monitored in real time, and error events are determined based on the monitored results; Performing feature recognition on the error event according to a preset quantum error recognition model to obtain an error feature; Evaluate all error features attributable to the error event according to a preset error impact evaluation model to obtain the degree of influence of the error event on the quantum computing result; According to all error features of the error event and the impact degree, a quantum error mitigation strategy corresponding to the error event is determined, and the quantum error mitigation strategy is executed.
2. The method according to claim 1, characterized in that The preset error impact assessment model includes: a preset quantum state fidelity decay model, a preset quantum gate error propagation model and a preset quantum measurement error model, and the impact degree includes: a first fidelity decay degree, a first calculation accuracy deviation, a first probability distribution deviation and an error impact level; The step of evaluating all error features attributable to the error event according to a preset error impact evaluation model to obtain the degree of influence of the error event on the quantum computing result comprises: Inputting all error features of the error event into the preset quantum state fidelity decay model, predicting the degree of decrease in the fidelity of the quantum information corresponding to the quantum computation caused by the error event, and obtaining a first fidelity decay degree; Inputting all the error features into the preset quantum gate error propagation model, predicting the accumulated error of the error event in the quantum gate circuit corresponding to the quantum calculation, so as to determine the first calculation accuracy deviation; All the error features are input into the preset quantum measurement error model, the deviation of the error event from the measurement probability distribution corresponding to the quantum calculation is predicted to obtain a first probability distribution deviation, and the error impact level of the error event is determined based on the first probability distribution deviation.
3. The method according to claim 1, characterized in that The quantum error mitigation strategy includes an error mitigation algorithm and a mitigation priority, and the impact degree includes: a first fidelity attenuation degree, a first calculation accuracy deviation, a first probability distribution deviation, and an error impact level; The step of determining a quantum error mitigation strategy corresponding to the error event according to all error characteristics of the error event and the impact degree, and executing the quantum error mitigation strategy comprises: Get preset quantum error mitigation models; All error features and the impact degree of the error event are input into the preset quantum error mitigation model, a mitigation priority is determined according to the error impact level in the impact degree, and an error mitigation algorithm that matches the error features, the first fidelity attenuation degree in the impact degree, the first calculation accuracy deviation, and the first probability distribution deviation is determined.
4. The method according to claim 3, characterized in that The step of obtaining a preset quantum error mitigation model further includes: Obtaining the computational requirements for quantum computing; Determine the accuracy requirement weight and resource requirement weight of quantum computing from the computing requirements; The default accuracy weight of a preset default mitigation model in a quantum computing system corresponding to the quantum computing is adjusted to the accuracy requirement weight, and the default resource weight in the preset default mitigation model is adjusted to the resource requirement weight, so that the preset default mitigation model configured with the accuracy requirement weight and the resource requirement weight is used as a preset quantum error mitigation model.
5. The method according to claim 3, characterized in that After the step of determining an error mitigation algorithm that matches the error feature, the first fidelity attenuation degree in the impact degree, the first calculation accuracy deviation, and the first probability distribution deviation, the method further includes: After performing quantum error mitigation on the quantum computing process according to the quantum error mitigation strategy, periodically detecting quantum indicators of the quantum computing according to a preset period; When it is detected that the quantum indicator satisfies a preset strategy adjustment condition, adjusting the quantum error mitigation strategy, the calibration setting parameters of the quantum computing, and / or the preset period; Among them, the preset strategy adjustment conditions include: the difference between the resource consumption in the quantum indicator and the historical resource consumption detected in the previous time step is greater than the first preset adjustment threshold, the absolute value of the difference between the second fidelity attenuation in the quantum indicator and the historical fidelity attenuation detected in the previous time step is greater than the second preset adjustment threshold, the difference between the second calculation accuracy deviation in the quantum indicator and the historical calculation accuracy deviation detected in the previous time step is less than the third preset adjustment threshold, and / or the second probability distribution deviation in the quantum indicator and the historical probability distribution deviation detected in the previous time step are greater than the fourth preset adjustment threshold.
6. The method according to claim 1, characterized in that The method further comprises: When a plurality of the error events are monitored simultaneously, sorting each of the error events according to the impact degree corresponding to each of the error events to obtain a sorting order; The quantum error mitigation strategy corresponding to each of the error events is executed in sequence according to the sorting order.
7. The method according to claim 1, characterized in that The method further comprises: Obtaining a preset error characteristic classification model, a plurality of preset machine learning models of different types, and obtaining a set of error data in a historical quantum computing process from a quantum computing system corresponding to the quantum computing; Inputting the error data set into the preset error characteristic classification model to obtain an error characteristic type of the error data set, wherein the error characteristic type represents an error regularity of the error data set; Determining a target machine learning model that matches the error characteristic type in each of the preset machine learning models; According to the error data set, the target machine learning model is iteratively trained until the training loss of the target machine learning model is less than a preset loss threshold, and the target machine learning model is used as a preset quantum error recognition model for the quantum computing system.
8. A quantum error mitigation device, characterized in that: The device comprises: A monitoring module is used to monitor the state of the qubit in real time during the quantum computing process and determine error events based on the monitored results; An error recognition module, used to perform feature recognition on the error event according to a preset quantum error recognition model to obtain error features; An impact identification module is used to evaluate all error features attributable to the error event according to a preset error impact evaluation model to obtain the degree of influence of the error event on the quantum computing result; A mitigation module is used to determine a quantum error mitigation strategy corresponding to the error event according to all error characteristics of the error event and the impact degree, and execute the quantum error mitigation strategy.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the quantum error mitigation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program for implementing a quantum error mitigation method, and the program for implementing a quantum error mitigation method is executed by a processor to implement the steps of the quantum error mitigation method according to any one of claims 1 to 7.
Citation Information
Cited By
Error mitigation method and related device
CN120832962A
Error mitigation methods and related apparatuses
CN120832962B
