A quantum chip calibration method, system, device and computer storage medium
By obtaining the initial and correlation parameters of the quantum chip bits, the calibration process of the quantum chip is optimized, solving the problem of reduced accuracy caused by increasing the number of quantum bits, and achieving higher accuracy and performance of the quantum chip.
Patent Information
- Application Number
- CN202311792311.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-25
AI Technical Summary
As the number of qubits in a quantum chip increases, parameter drift issues arise, leading to reduced accuracy and impacting the chip's usability.
By acquiring the initial parameters of each bit in the quantum chip, the single-bit gate is calibrated to generate calibration parameters. Based on the correlation parameters, the calibration order of the gate frequency is determined. Reinforcement learning and Monte Carlo search trees are used to optimize the calibration process and reduce the calibration error between bits.
This improves the precision of quantum chips, reduces errors caused by inter-qubit calibration, and enhances the overall performance of quantum chips.
Smart Images

Figure CN117744824B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of quantum technology, and more specifically, to a quantum chip calibration method, system, electronic device, and computer-readable storage medium. Background Technology
[0002] Currently, with the continuous research and advancement of quantum computing technology, the number of qubits on quantum chips is increasing year by year, and larger-scale quantum chips are emerging. At that time, the number of qubits in quantum chips will be even greater. However, with the increase in the number of qubits in quantum chips, some qubits will experience parameter drift during use, which will reduce the accuracy of the quantum chip and affect its use.
[0003] In conclusion, improving the precision of quantum chips is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0004] The purpose of this application is to provide a quantum chip calibration method, which can, to some extent, solve the technical problem of how to improve the accuracy of quantum chips. This application also provides a quantum chip calibration system, an electronic device, and a computer-readable storage medium.
[0005] To achieve the above objectives, this application provides the following technical solution:
[0006] A quantum chip calibration method, comprising:
[0007] Obtain the initial parameters of each bit in the quantum chip;
[0008] Based on the initial parameters, the corresponding single-bit gate is calibrated to obtain calibration parameters;
[0009] Obtain the correlation parameters between each of the single-bit gates;
[0010] The calibration sequence of each gate frequency is determined based on the calibration parameters and the correlation parameters;
[0011] The corresponding gate frequencies are calibrated according to the calibration parameters in the calibration sequence.
[0012] Preferably, the calibration of the corresponding single-bit gate based on the initial parameters to obtain calibration parameters includes:
[0013] For the single-bit gate, determine the microwave corresponding to the initial parameters and drive the bit;
[0014] Obtain the response information of the single-bit gate to the microwave;
[0015] The response information is clustered to obtain the clustering results;
[0016] Generate the twist distance of the cluster centers for each of the clustering results;
[0017] A first loss function is constructed based on the twisted clustering;
[0018] The response information is divided into 0 states and 1 states using the k-means clustering algorithm, and the probability value of being in the 1 state is determined.
[0019] A nonlinear fitting parameter equation is constructed based on the probability value, and a second loss function is constructed based on the nonlinear fitting parameter equation;
[0020] A third loss function is constructed based on the first and second loss functions;
[0021] The single-bit gate is calibrated according to the rule that makes the loss value of the third loss function less than a preset value, and the calibration parameters are obtained.
[0022] Preferably, the twist distance of the cluster centers for generating each of the clustering results includes:
[0023] The twist distance of the cluster center for each clustering result is generated using the twist distance generation formula.
[0024] The formula for generating the distortion distance includes:
[0025]
[0026] Where, d K The twist distance represents the cluster centers of the K clustering results; p represents the vector dimension; min represents the minimum value; E represents the expectation; X represents the response information; c X Γ represents the cluster center closest to sample X; T represents the transpose of the matrix; Γ represents the covariance matrix;
[0027] The step of constructing the first loss function based on the twisted clustering includes:
[0028] The first loss function is constructed based on the twisted clustering using the first construction formula.
[0029] The first construction formula includes:
[0030] L K =|d2-d K |;
[0031] Among them, L K d1 represents the first loss function; d2 represents the twist distance when K is 2; || represents taking the absolute value.
[0032] Preferably, the step of constructing a nonlinear fitting parameter equation based on the probability value, and constructing a second loss function based on the nonlinear fitting parameter equation, includes:
[0033] The nonlinear fitting parameter equation is constructed based on the probability value using the fitting formula;
[0034] The fitting formula includes:
[0035]
[0036] Wherein, P(t) represents the nonlinear fitting parameter equation; t represents time; d represents the probability value; e represents the natural constant; γ represents the decay rate; sin represents the sine function; and w represents the frequency. Indicates rabbinic oscillation;
[0037] The step of constructing the second loss function based on the nonlinear fitting parameter equation includes:
[0038] The second loss function is constructed based on the nonlinear fitting parameter equation using the second construction formula;
[0039] The second construction formula includes:
[0040]
[0041] Among them, L P The second loss function is represented by N; the numerical value of the response information is represented by P. i ' represents the i-th data in the response information; P(t) i ) represents the value of the i-th data point in the nonlinear fitting parametric equation; α, β, This represents the set constant parameter;
[0042] The construction of the third loss function based on the first loss function and the second loss function includes:
[0043] The third loss function is constructed based on the first loss function and the second loss function using the third construction formula;
[0044] The third construction formula includes:
[0045]
[0046] Among them, L tot This represents the third loss function.
[0047] Preferably, determining the calibration order of each gate frequency based on the calibration parameters and the correlation parameters includes:
[0048] Based on the fourth loss function, an error model is constructed using the calibration parameters and the correlation parameters.
[0049] Generate a Monte Carlo search tree containing information about all the single-bit gates;
[0050] Based on the error model, a reinforcement learning method is applied to traverse the Monte Carlo search tree to obtain the calibration order of each gate frequency.
[0051] Preferably, the step of traversing the Monte Carlo search tree using a reinforcement learning method based on the error model to obtain the calibration order of each of the gate frequencies includes:
[0052] The Monte Carlo search tree input values are used to pre-train an agent;
[0053] The calibration order of each gate frequency obtained by the agent traversing the Monte Carlo search tree according to the error model and applying the reinforcement learning method is received.
[0054] Preferably, the fourth loss function includes:
[0055]
[0056] Among them, L sys Denotes the fourth loss function; δ, ε, ∈ indicates a global parameter setting; f jmax Δ1, Δ2, and Δ3 represent the frequency extreme point of the j-th single-bit gate; Δ1, Δ2, and Δ3 represent the floating range. This represents the frequency sweep amplitude between the j-th single-bit gate and the (j+1)-th single-bit gate; f represents the frequency value of the j-th single-bit gate; detuning T1 represents the bit crosstalk between the nearest and second-nearest single-bit gates; T1 represents the decoherence time; T mean The value represents the average decoherence time; || represents the absolute value.
[0057] The reward function of the reinforcement learning method includes:
[0058]
[0059] Where R represents the value of the reward function; s represents the state; a represents the traversal behavior; ζ represents the terminal state; s′ represents the intermediate state value; ∩ represents the intersection; This represents the empty set.
[0060] Preferably, the loss function of the agent includes:
[0061] L Z=(Rv) 2 +E p [log(p θ (s,a)*v(s,a))]+α|θ| 2 ;
[0062] Among them, L Z The value of the loss function of the agent is represented by v; the value of the action output by the error model is represented by p; and the probability of the policy action output by the error model is represented by E. p Let p represent the expectation; log represent the logarithm; and θ represent the parameters of the agent.
[0063] Preferably, the parameters of the single-bit gate include bit frequency, the relationship between frequency and current bias, the duration of the π pulse, the amplitude of the π pulse, the frequency of the read cavity, the time sequence length of the read pulse, and the amplitude of the read pulse.
[0064] A quantum chip calibration system, comprising:
[0065] The first acquisition module is used to acquire the initial parameters of each bit in the quantum chip;
[0066] The second acquisition module is used to calibrate the corresponding single-bit gate based on the initial parameters to obtain calibration parameters;
[0067] The third acquisition module is used to acquire the correlation parameters between each of the single-bit gates;
[0068] The first determining module is used to determine the calibration order of each gate frequency based on the calibration parameters and the associated parameters;
[0069] The first calibration module is used to calibrate the corresponding gate frequency according to the calibration parameters in the calibration sequence.
[0070] An electronic device, comprising:
[0071] Memory, used to store computer programs;
[0072] A processor for executing the computer program to implement the steps of any of the above-described quantum chip calibration methods.
[0073] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of any of the above-described quantum chip calibration methods.
[0074] This application provides a quantum chip calibration method that involves obtaining initial parameters for each bit in the quantum chip; calibrating the corresponding single-bit gates based on the initial parameters to obtain calibration parameters; obtaining correlation parameters between the single-bit gates; determining the calibration order of each gate frequency based on the calibration parameters and correlation parameters; and calibrating the corresponding gate frequencies according to the calibration parameters in the calibration order. In this application, the initial parameters of the bits in the quantum chip are first used to calibrate the single-bit gates to obtain calibration parameters, providing a foundation for accurate calibration of the gate frequencies based on these parameters. Then, the correlation parameters between the single-bit gates and the calibration parameters are used to determine the calibration order of each gate frequency. Finally, the corresponding gate frequencies are calibrated according to the calibration parameters in the calibration order. This reduces calibration errors caused by the calibration influence between bits and improves the accuracy of the quantum chip. The quantum chip calibration system, electronic device, and computer-readable storage medium provided in this application also solve the corresponding technical problems. Attached Figure Description
[0075] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0076] Figure 1 A first flowchart of a quantum chip calibration method provided in this application embodiment;
[0077] Figure 2 This is a second flowchart of a quantum chip calibration method provided in an embodiment of this application;
[0078] Figure 3 This is a schematic diagram of automatic calibration for a single-bit gate;
[0079] Figure 4 This is a schematic diagram of the graph traversal strategy in this application;
[0080] Figure 5 This is a schematic diagram of the structure of a quantum chip calibration system provided in an embodiment of this application;
[0081] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0082] Figure 7 This is another structural schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0083] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0084] Please see Figure 1 , Figure 1 This is a first flowchart of a quantum chip calibration method provided in an embodiment of this application.
[0085] This application provides a quantum chip calibration method that may include the following steps:
[0086] Step S101: Obtain the initial parameters of each bit in the quantum chip.
[0087] In practical applications, the initial parameters of each bit in the quantum chip can be obtained first. These initial parameters may include bit frequency, resonant cavity frequency, etc. The size of the quantum chip can be determined according to the application scenario; for example, a quantum chip can be a quantum chip with more than 100 bits.
[0088] Step S102: Calibrate the corresponding single-bit gate based on the initial parameters to obtain the calibration parameters.
[0089] In practical applications, after obtaining the initial parameters of each bit, the corresponding single-bit gate can be calibrated based on the initial parameters to obtain the calibration parameters. That is, each initial parameter can be applied to calibrate the corresponding single-bit gate individually. During this process, the frequencies of other single-bit gates can be adjusted by magnetic flux to a position with low coupling strength with the single-bit gate to be calibrated, so as to isolate the influence of other single-bit gates on the single-bit gate to be calibrated. Thus, only the initial parameters of the bit are applied to obtain calibration parameters that are not affected by other single-bit gates.
[0090] It should be noted that a single-bit gate is simply a single bit gate. In specific application scenarios, the parameters of a single-bit gate can be determined according to actual needs. Considering that any single-bit gate operation can be decomposed into a 90-degree X-gate and a virtual Z-gate, and the virtual Z-gate can be implemented by phase shifting of the signal without calibration, this application can perform automated calibration for the X(90) gate. That is, the initial parameters of each single-bit gate can include bit frequency, the relationship between frequency and current bias, the time of the π pulse, the amplitude of the π pulse, the frequency of the read cavity, the time sequence length of the read pulse, and the amplitude of the read pulse. Among them, the relationship between frequency and current bias can be the relationship between the maximum frequency and mutual inductance and offset, etc.
[0091] Step S103: Obtain the correlation parameters between each single-bit gate.
[0092] Step S104: Determine the calibration sequence of each gate frequency based on the calibration parameters and correlation parameters.
[0093] Step S105: According to the calibration sequence, calibrate the corresponding gate frequency based on the calibration parameters.
[0094] In practical applications, assuming a quantum chip has N qubits, there are at least N idle bit frequencies, 2N interaction frequencies, and N readout frequencies, for a total of 4N degrees of freedom. If each degree of freedom has 100 selectable frequencies, then there will be 100 4N The options represent a very large set of parameters, and there are correlations between the individual bit gates. These correlations can cause the individual bit gates to interfere with each other during calibration. To mitigate this, after calibrating the corresponding individual bit gates based on the initial parameters and obtaining the calibration parameters, we can first calibrate the gate frequency of the bit gates without applying the calibration parameters. Instead, we can obtain the correlation parameters between the individual bit gates, determine the calibration order of the gate frequencies that minimizes the calibration impact between bits based on the calibration parameters and the correlation parameters, and finally calibrate the corresponding gate frequencies according to the calibration order and the calibration parameters.
[0095] It should be noted that when the quantum chip in this application is applied to a quantum computer, the quantum chip calibration method of this application is used to calibrate the quantum computer. Similarly, the quantum chip calibration method of this application can be flexibly applied as needed. For example, the method of this application can be used to calibrate the quantum chip after it has been manufactured, or the method of this application can be used to perform initialization calibration of the quantum chip before it performs a task. This application does not make any specific limitations here.
[0096] This application provides a quantum chip calibration method that involves obtaining initial parameters for each bit in the quantum chip; calibrating the corresponding single-bit gates based on the initial parameters to obtain calibration parameters; obtaining correlation parameters between the single-bit gates; determining the calibration order of each gate frequency based on the calibration parameters and correlation parameters; and calibrating the corresponding gate frequencies according to the calibration parameters in the calibration order. In this application, the initial parameters of the bits in the quantum chip are first used to calibrate the single-bit gates to obtain calibration parameters, providing a foundation for accurate calibration of the gate frequencies based on these parameters. Then, the correlation parameters between the single-bit gates and the calibration parameters are used to determine the calibration order of each gate frequency. Finally, the corresponding gate frequencies are calibrated according to the calibration parameters in the calibration order. This method can reduce calibration errors caused by the calibration influence between bits and improve the accuracy of the quantum chip.
[0097] Please see Figure 2 , Figure 2This is a second flowchart of a quantum chip calibration method provided in an embodiment of this application.
[0098] This application provides a quantum chip calibration method that may include the following steps:
[0099] Step S201: Obtain the initial parameters of each bit in the quantum chip.
[0100] Step S202: For a single-bit gate, determine the microwave corresponding to the initial parameters and drive the bit.
[0101] Step S203: Obtain the response information of the single-bit gate to the microwave.
[0102] In practical applications, the calibration direction of a single-bit gate can be analyzed based on its response to information. That is, for a single-bit gate, the microwave corresponding to the initial parameters can be determined and the bit driven to obtain the gate's response information. This response information can then be used to calibrate the single-bit gate. It should be noted that during this process, the single-bit gate will generate Rabi oscillations in response to the microwave-driven bit; these Rabi oscillations can be recorded as well.
[0103] Step S204: Cluster the response information to obtain the clustering results.
[0104] Step S205: Generate the twist distance of the cluster centers for each clustering result.
[0105] Step S206: Construct the first loss function based on the twisted clustering.
[0106] In practical applications, after obtaining the response information of a single-bit gate, the response information can be analyzed using information theory methods, that is, the response information can be clustered to obtain clustering results. The clustering process can be determined according to actual needs. The clustering results can divide the response information into a target number of clusters, with each cluster having its own cluster center. Then, the distortion distance of the cluster center of each clustering result is generated, and the first loss function is constructed based on the distortion clustering.
[0107] In specific application scenarios, during the generation of the twist distance of the cluster centers for each clustering result, the twist distance can be generated using a twist distance generation formula. The twist distance generation formula includes:
[0108]
[0109] Where, d K The twist distance between the cluster centers of the K clustering results represents the vector dimension; p represents the minimum value; E represents the expectation; X represents the response information; c XLet X represent the cluster center closest to sample X, K represent the total number of cluster centers, T represent the transpose of the matrix, and Γ represent the covariance matrix.
[0110] In specific application scenarios, during the process of constructing the first loss function based on distorted clustering, a first construction formula can be used to construct the first loss function based on distorted clustering; the first construction formula includes:
[0111] L K =|d2-d K |;
[0112] Among them, L K d1 represents the first loss function; d2 represents the warp distance when K is 2; || represents taking the absolute value.
[0113] Step S207: Divide the response information into 0 state and 1 state using the k-means clustering algorithm, and determine the probability value of being in state 1.
[0114] Step S208: Construct a nonlinear fitting parameter equation based on the probability value, and construct a second loss function based on the nonlinear fitting parameter equation.
[0115] Step S209: Construct a third loss function based on the first and second loss functions.
[0116] In practical applications, after constructing the first loss function based on twisted clustering, the response information can be processed using a nonlinear fitting method. Specifically, the response information can first be divided into 0-states and 1-states using the k-means clustering algorithm, and the probability value of being in the 1-state can be determined. The 0-state and 1-state can represent the two results of the bit gate operation, and the meaning of the 0-state and 1-state can be determined according to the application scenario. Then, a nonlinear fitting parameter equation is constructed based on the probability value, and a second loss function is constructed based on the nonlinear fitting parameter equation. Finally, a third loss function is constructed based on the first loss function and the second loss function.
[0117] In specific application scenarios, during the process of constructing a nonlinear fitting parameter equation based on probability values and then constructing a second loss function based on the nonlinear fitting parameter equation, a fitting formula can be used to construct the nonlinear fitting parameter equation based on the probability values; the fitting formula includes:
[0118]
[0119] Where P(t) represents the nonlinear fitting parametric equation; t represents time; d represents the probability value; e represents the natural constant; γ represents the decay rate; sin represents the sine function; and w represents the frequency. This indicates rabbinic oscillation.
[0120] In specific application scenarios, during the process of constructing a second loss function based on the nonlinear fitting parameter equation, a second construction formula can be used to construct the second loss function based on the nonlinear fitting parameter equation; the second construction formula includes:
[0121]
[0122] Among them, L P The second loss function is represented by N; the numerical value of the response information is represented by P. i ' represents the i-th data in the response information; P(t) i ) represents the value of the i-th data point in the nonlinear fitting parametric equation; α, β, This represents the set constant parameter.
[0123] In specific application scenarios, in the process of constructing a third loss function based on the first and second loss functions, a third construction formula can be used to construct the third loss function based on the first and second loss functions.
[0124] The third construction formula includes:
[0125]
[0126] Among them, L tot This represents the third loss function.
[0127] Step S210: According to the rule that the loss value of the third loss function is less than the preset value, the single-bit gate is calibrated to obtain the calibration parameters.
[0128] In practical applications, after obtaining the third loss function, the single-bit gate can be calibrated according to the rule that the loss value of the third loss function is less than a preset value, thus obtaining calibration parameters, such as... Figure 3 As shown. Specifically, the bit parameters can be adjusted by minimizing the third loss function using the gradient descent method, and then returning to step S203 for the next loop. Minimizing the loss function is to (1) ensure that the Rabi oscillation can fit as closely as possible; (2) ensure that the Rabi amplitude can reach the expected 90-degree flip; and (3) ensure that the IQ-adjusted signal data can be distinguished into two clusters as much as possible.
[0129] It should be noted that during the calibration of the single-bit gate according to the rule of ensuring that the loss value of the third loss function is less than a preset value, the order of the calibrated parameters can be restricted. For example, when the initial parameters are bit frequency, read cavity frequency, bit drive pulse amplitude, and read cavity drive pulse amplitude, the parameters can be calibrated in the order of bit frequency to bit drive pulse amplitude and then to read cavity frequency. Furthermore, when the value of the third loss function is greater than or equal to the user-set upper limit of fault tolerance, the calibration can be considered a failure. In this case, the previous calibration node can be checked for error function and recalibrated. During this process, the number of times the single-bit gate parameters are adjusted in each round can be limited by the number of adjustments or a set threshold.
[0130] Step S211: Obtain the correlation parameters between each single-bit gate.
[0131] Step S212: Determine the calibration sequence of each gate frequency based on the calibration parameters and correlation parameters.
[0132] Step S213: According to the calibration sequence, calibrate the corresponding gate frequency based on the calibration parameters.
[0133] In practical applications, in multi-qubit chips, each qubit gate is coupled and crosstalked with its nearest and second-nearest neighbor qubit gates. In a qubit system with N nearest neighbor couplings, the calibration problem is equivalent to solving an exponential combinatorial optimization problem in N-dimensional space. When there are many frequency choices for each qubit gate, the search space of the entire problem will significantly exceed the scale achievable by current computing power. Therefore, finding the optimal operating point for each qubit gate becomes a high-dimensional, multi-constraint, and non-convex optimization problem with a huge parameter space. Furthermore, current calibration systems rely on manual calibration or are only applicable to simple scenarios, such as supporting only single-qubit, dual-qubit, or small-qubit cases. Applying these systems to the calibration of large-scale qubit chips will become inefficient and time-consuming, and cannot guarantee optimal parameter optimization, failing to meet the complexities of future exponential growth in qubits. To address this issue, reinforcement learning and Monte Carlo search trees can be applied to quickly determine the calibration order of each gate frequency based on calibration parameters and correlation parameters. Specifically, an error model can be constructed using the fourth loss function and calibration parameters and correlation parameters; a Monte Carlo search tree containing information about all single-bit gates can be generated; and reinforcement learning methods can be applied to traverse the Monte Carlo search tree based on the error model to learn the calibration order of each gate frequency.
[0134] In specific application scenarios, the overall calibration system's learning and calibration of the quantum chip can be divided into five steps: 1. Write the calibration data obtained from single-qubit gate calibration, along with circuit and device parameters, crosstalk parameters, and coherence time parameters, into a database. 2. Construct an error model using the parameters in the database under certain constraints. 3. Optimize the frequency using reinforcement learning based on the quantum chip's topology. 4. Perform calibration of each qubit under the guidance of reinforcement learning. 5. Conduct a random benchmark test and determine whether the quantum algorithm can be executed.
[0135] In specific application scenarios, during the process of traversing the Monte Carlo search tree based on the error model and applying reinforcement learning methods to obtain the calibration order, an agent of the neural network type can be used to automatically determine the calibration order. That is, the agent can be pre-trained with the Monte Carlo search tree input values; the receiving agent obtains the calibration order by traversing the Monte Carlo search tree based on the error model and applying reinforcement learning methods.
[0136] In specific application scenarios, considering that bit gates need to be set at extreme points through flux modulation, i.e., positions insensitive to flux, to reduce phase de-phase caused by flux noise, that is, to keep the bit gate as close to f as possible. max Between ±Δ1, where Δ1 is the frequency fluctuation range, typically set between 100-500MHz, the bit frequency is brought closer to the flux stability point. Considering that a large sweep range can cause pulse distortion and other errors, the sweep amplitude of the dual-gate system should be kept below a certain range, i.e., f. q -Δ2<f qq <f q +Δ2, where Δ2 is the frequency fluctuation range of the dual-gate system, typically set between 10-50MHz, to bring the bit frequency closer to neighboring bits. To minimize crosstalk between neighboring and second-nearest bits, the frequency detuning of the neighboring and second-nearest single-gate and dual-gate systems can be adjusted to a value greater than a certain threshold, i.e., f. detuning >Δ3, where Δ3 represents the fluctuation range of the frequency detuning of adjacent and second-adjacent single-gate and dual-gate frequencies, typically set between 10-20MHz, to separate adjacent bit frequencies and reduce crosstalk. Considering that the frequency can be adjusted to increase the T1 decoherence time of each bit to be greater than the average value, i.e., T1 > T... mean This keeps the bits away from noise in the two-level system (TLS). In summary, the fourth loss function can include:
[0137]
[0138] Among them, L sys Denotes the fourth loss function; δ, ε, ∈ indicates a global parameter setting; fjmax Δ1, Δ2, and Δ3 represent the frequency extreme point of the j-th single-bit gate; Δ1, Δ2, and Δ3 represent the floating range. This represents the frequency sweep amplitude between the j-th single-bit gate and the (j+1)-th single-bit gate; f represents the frequency value of the j-th single-bit gate; detuning T represents bit crosstalk between neighboring and next-nearest single-bit gates; T1 represents the decoherence time; T mean || represents the average decoherence time; || represents taking the absolute value.
[0139] In specific application scenarios, the reward function of reinforcement learning methods can include:
[0140]
[0141] Where R represents the value of the reward function; s represents the state; a represents the traversal behavior; ζ represents the terminal state; s′ represents the intermediate state value; ∩ represents the intersection; This represents the empty set.
[0142] In specific application scenarios, the loss function of the intelligent agent can include:
[0143] L Z =(Rv) 2 +E p [log(p θ (s,a)*v(s,a))]+α|θ| 2 ;
[0144] Among them, L Z The value of the loss function of the agent is represented by v; the value of the action output by the error model is represented by p; the probability of the policy action output by the error model is represented by E. p Let p represent the expected value; log represents the logarithm; and θ represents the agent's parameters. It should be noted that the first part of the agent's loss function is the difference between the actual reward and the neural network's predicted value; the second part is the expected value of the reward, which is the optimization objective of the policy gradient; and the third part is a regularization term set to prevent overfitting.
[0145] In specific application scenarios, during the process of using reinforcement learning to learn parameter distribution and generate calibration strategies to guide the Monte Carlo search tree, the state s can be defined as the set contained in the graph G corresponding to the Monte Carlo search tree, including the sets of calibrated and uncalibrated parameters; the traversal behavior a can be defined as a vector in the four directions of up, down, left, and right, such as... Figure 4As shown; the terminating state ζ can be defined as the state after traversing the bitmap. Correspondingly, the agent can generate a large number of samples through a Monte Carlo search tree to obtain training data for training the neural network. During this process, the Monte Carlo search tree stores four main pieces of information for each action 'a' in the wiring: the number of edge visits N(s,a), the total action value W(s,a), the average action value Q(s,a), and the prior policy probability P(s,a), where the action value and the prior policy probability are output by the error model.
[0146] Similar to the traditional Monte Carlo tree search method, the process of the agent performing the calibration sequence search is divided into a selection phase, an extended simulation phase, and a backtracking phase. The first phase involves selecting an action 'a' that combines UCT (Upper Confidence Bound Apply to Tree) with the judgment of the optimal action value. t =argmax(Q(s) ζ ,a)+U(s ζ ,a)), where For the UCT strategy selection, argmax represents the function for maximizing the set of independent variables, c represents a constant, and b represents the set of actions; action selection continues until the final node or a leaf node. Next is the expansion simulation phase. When a new leaf node that has not yet been searched is reached, for the leaf node state s, the input is given to the neural network to predict the policy action probability p and action value v, and the stored information is initialized as [N(s,a)=0,W(s,a)=0,Q(s,a)=0,P(s,a)=P]. Finally, in the backtracking phase, the information from the new node is backtracked to the parent node: N(s,a)=N(s,a)+1, W(s,a)=W(s,a)+v, Q(s,a)=W(s,a) / N(s,a). After hundreds or thousands of searches, the agent selects the branch π(a|s)=N(s,a) using the Monte Carlo search tree strategy. 1 / τ / ∑ b N(s,b) 1 / τ τ is a parameter that controls the degree of exploration.
[0147] Please see Figure 5 , Figure 5 This is a schematic diagram of a quantum chip calibration system provided in an embodiment of this application.
[0148] This application provides a quantum chip calibration system that may include:
[0149] The first acquisition module 101 is used to acquire the initial parameters of each bit in the quantum chip;
[0150] The second acquisition module 102 is used to calibrate the corresponding single-bit gate based on the initial parameters to obtain calibration parameters;
[0151] The third acquisition module 103 is used to acquire the correlation parameters between each single-bit gate;
[0152] The first determining module 104 is used to determine the calibration sequence of each gate frequency based on the calibration parameters and the associated parameters;
[0153] The first calibration module 105 is used to calibrate the corresponding gate frequency according to the calibration parameters in the calibration sequence.
[0154] This application provides a quantum chip calibration system, wherein the second acquisition module may include:
[0155] The first determining unit is used to determine the microwave corresponding to the initial parameters and drive the bit for a single-bit gate.
[0156] The first acquisition unit is used to acquire the response information of a single-bit gate to microwaves;
[0157] The first clustering unit is used to cluster the response information to obtain the clustering results;
[0158] The first generation unit is used to generate the twist distance of the cluster centers for each clustering result;
[0159] The first building unit is used to construct the first loss function based on twisted clustering;
[0160] The second determining unit is used to divide the response information into 0 states and 1 states using the k-means clustering algorithm, and to determine the probability value of being in the 1 state.
[0161] The first fitting unit is used to construct a nonlinear fitting parameter equation based on the probability value, and to construct a second loss function based on the nonlinear fitting parameter equation;
[0162] The second building unit is used to construct a third loss function based on the first and second loss functions;
[0163] The second acquisition unit is used to calibrate the single-bit gate according to the rule that makes the loss value of the third loss function less than a preset value, and obtain calibration parameters.
[0164] The quantum chip calibration system provided in this application embodiment includes a first generation unit specifically used for: generating the twist distance of the cluster center of each clustering result using a twist distance generation formula;
[0165] The formula for generating warp distance includes:
[0166]
[0167] Where, d K The twist distance between the cluster centers of the K clustering results represents the vector dimension; p represents the minimum value; E represents the expectation; X represents the response information; c X Γ represents the cluster center closest to sample X; T represents the transpose of the matrix; Γ represents the covariance matrix;
[0168] The first building unit is specifically used to: construct a first loss function based on twisted clustering using a first building formula;
[0169] The first construction formula includes:
[0170] L K =|d2-d K |;
[0171] Among them, L K d1 represents the first loss function; d2 represents the warp distance when K is 2; || represents taking the absolute value.
[0172] This application provides a quantum chip calibration system, wherein the first fitting unit is specifically used to: construct a nonlinear fitting parameter equation based on probability values using a fitting formula;
[0173] The fitting formulas include:
[0174]
[0175] Where P(t) represents the nonlinear fitting parametric equation; t represents time; d represents the probability value; e represents the natural constant; γ represents the decay rate; sin represents the sine function; and w represents the frequency. Indicates rabbinic oscillation;
[0176] The first fitting unit is specifically used to: construct a second loss function based on the nonlinear fitting parameter equation using the second construction formula;
[0177] The second construction formula includes:
[0178]
[0179] Among them, L P The second loss function is represented by N; the numerical value of the response information is represented by P. i ' represents the i-th data in the response information; P(t) i ) represents the value of the i-th data point in the nonlinear fitting parametric equation; α, β, This represents the set constant parameter;
[0180] The second building unit is specifically used for:
[0181] A third loss function is constructed based on the first and second loss functions using a third construction formula.
[0182] The third construction formula includes:
[0183]
[0184] Among them, L tot This represents the third loss function.
[0185] This application provides a quantum chip calibration system, wherein the first determining module includes:
[0186] The third building unit is used to construct an error model based on the fourth loss function, applying calibration parameters and correlation parameters;
[0187] The second generation unit is used to generate a Monte Carlo search tree containing information about all single-bit gates;
[0188] The first traversal unit is used to traverse the Monte Carlo search tree according to the error model and apply reinforcement learning methods to obtain the calibration order.
[0189] This application provides a quantum chip calibration system, wherein the first traversal unit is specifically used for: pre-training an agent with Monte Carlo search tree input values; and receiving the calibration order obtained by the agent traversing the Monte Carlo search tree according to the error model and applying reinforcement learning methods.
[0190] This application provides a quantum chip calibration system, wherein the fourth loss function includes:
[0191]
[0192] Among them, L sys Denotes the fourth loss function; δ, ε, ∈ indicates a global parameter setting; f jmax Δ1, Δ2, and Δ3 represent the frequency extreme point of the j-th single-bit gate; Δ1, Δ2, and Δ3 represent the floating range. This represents the frequency sweep amplitude between the j-th single-bit gate and the (j+1)-th single-bit gate; f represents the frequency value of the j-th single-bit gate; detuning T represents bit crosstalk between neighboring and next-nearest single-bit gates; T1 represents the decoherence time; T mean || represents the average decoherence time; || represents the absolute value.
[0193] The reward functions for reinforcement learning methods include:
[0194]
[0195] Where R represents the value of the reward function; s represents the state; a represents the traversal behavior; ζ represents the terminal state; s′ represents the intermediate state value; ∩ represents the intersection; This represents the empty set.
[0196] This application provides a quantum chip calibration system in which the loss function of the intelligent agent includes:
[0197] L Z =(Rv) 2 +E p [log(p θ [(s,a)*v(s,a)]+α|θ| 2 ;
[0198] Among them, L Z The value of the loss function of the agent is represented by v; the value of the action output by the error model is represented by p; the probability of the policy action output by the error model is represented by E. p Let p represent the expectation; log represents the logarithm; and θ represents the parameters of the agent.
[0199] This application provides a quantum chip calibration system in which the parameters of a single-bit gate include bit frequency, the relationship between frequency and current bias, the duration of the π pulse, the amplitude of the π pulse, the frequency of the readout cavity, the time sequence length of the readout pulse, and the amplitude of the readout pulse.
[0200] This application also provides an electronic device and a computer-readable storage medium, both of which have the corresponding effects of the quantum chip calibration method provided in the embodiments of this application. Please refer to... Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0201] An electronic device provided in this application includes a memory 201 and a processor 202. The memory 201 stores a computer program, and the processor 202 executes the computer program to implement the steps of the quantum chip calibration method described in any of the above embodiments.
[0202] Please see Figure 7Another electronic device provided in this application embodiment may further include: an input port 203 connected to the processor 202 for transmitting commands input from the outside to the processor 202; a display unit 204 connected to the processor 202 for displaying the processing results of the processor 202 to the outside; and a communication module 205 connected to the processor 202 for realizing communication between the electronic device and the outside. The display unit 204 may be a display panel, a laser scanner, or the like; the communication method adopted by the communication module 205 includes, but is not limited to, Mobile High-Definition Link (MHL), Universal Serial Bus (USB), High-Definition Multimedia Interface (HDMI), wireless connectivity: Wireless Fidelity (WiFi), Bluetooth communication technology, Bluetooth Low Energy communication technology, and communication technology based on IEEE 802.11s.
[0203] This application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the steps of the quantum chip calibration method described in any of the above embodiments.
[0204] The computer-readable storage media involved in this application include random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs (Compact Disc Read-Only Memory), or any other form of storage media known in the art.
[0205] For descriptions of relevant parts of the quantum chip calibration system, electronic device, and computer-readable storage medium provided in the embodiments of this application, please refer to the detailed descriptions of the corresponding parts in the quantum chip calibration method provided in the embodiments of this application, and they will not be repeated here. Furthermore, parts of the technical solutions provided in the embodiments of this application that are consistent with the implementation principles of corresponding technical solutions in the prior art have not been described in detail to avoid excessive elaboration.
[0206] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0207] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A quantum chip calibration method, characterized in that, include: Obtain the initial parameters of each bit in the quantum chip; The corresponding single-bit gate is calibrated based on the initial parameters to obtain calibration parameters; Obtain the correlation parameters between each of the single-bit gates; The calibration sequence of each gate frequency is determined based on the calibration parameters and the correlation parameters; The corresponding gate frequencies are calibrated according to the calibration parameters in the calibration sequence. The step of calibrating the corresponding single-bit gate based on the initial parameters to obtain calibration parameters includes: For the single-bit gate, determine the microwave corresponding to the initial parameters and drive the bit; Obtain the response information of the single-bit gate to the microwave; The response information is clustered to obtain the clustering results; Generate the twist distance of the cluster centers for each of the clustering results; Construct a first loss function based on the said distortion distance; The response information is divided into 0 states and 1 states using the k-means clustering algorithm, and the probability value of being in the 1 state is determined. A nonlinear fitting parameter equation is constructed based on the probability value, and a second loss function is constructed based on the nonlinear fitting parameter equation; A third loss function is constructed based on the first and second loss functions; The single-bit gate is calibrated according to the rule that makes the loss value of the third loss function less than a preset value, and the calibration parameters are obtained. The step of determining the calibration order of each gate frequency based on the calibration parameters and the correlation parameters includes: Based on the fourth loss function, an error model is constructed using the calibration parameters and the correlation parameters. Generate a Monte Carlo search tree containing information about all the single-bit gates; Based on the error model, a reinforcement learning method is applied to traverse the Monte Carlo search tree to obtain the calibration order of each gate frequency.
2. The method according to claim 1, characterized in that, The twist distance of the cluster centers used to generate each of the clustering results includes: The twist distance of the cluster center for each clustering result is generated using the twist distance generation formula. The formula for generating the distortion distance includes: ; in, express The twist distance of the cluster centers of the clustering results; Indicates the vector dimension; This indicates taking the minimum value; Expressing expectations; This indicates the response information; Indicates distance from sample The nearest cluster center; Represents the transpose of a matrix; Represent the covariance matrix; The construction of the first loss function based on the distortion distance includes: The first loss function is constructed based on the distortion distance using the first construction formula. The first construction formula includes: ; in, Represents the first loss function; express The twist distance when it is 2; This indicates taking the absolute value.
3. The method according to claim 2, characterized in that, The step of constructing a nonlinear fitting parameter equation based on the probability value, and constructing a second loss function based on the nonlinear fitting parameter equation, includes: The nonlinear fitting parameter equation is constructed based on the probability value using the fitting formula; The fitting formula includes: ; in, This represents the nonlinear fitting parameter equation; Indicates time; This represents the probability value; Represents the natural constant; Indicates the decay rate; Represents the sine function; Indicates frequency; Indicates rabbinic oscillation; The step of constructing the second loss function based on the nonlinear fitting parameter equation includes: The second loss function is constructed based on the nonlinear fitting parameter equation using the second construction formula; The second construction formula includes: ; in, This represents the second loss function; This represents the numerical value of the response information; Indicates the first in the response information One data point; Indicates the first The values of the data in the nonlinear fitting parameter equation; , , , This represents the set constant parameter; The construction of the third loss function based on the first loss function and the second loss function includes: The third loss function is constructed based on the first loss function and the second loss function using the third construction formula; The third construction formula includes: ; in, This represents the third loss function.
4. The method according to claim 1, characterized in that, The step of traversing the Monte Carlo search tree using reinforcement learning methods based on the error model to obtain the calibration order of each gate frequency includes: The Monte Carlo search tree input values are used to pre-train an agent; The agent receives the calibration order of each gate frequency obtained by traversing the Monte Carlo search tree according to the error model and applying the reinforcement learning method.
5. The method according to claim 4, characterized in that, The fourth loss function includes: ; in, This represents the fourth loss function; , , , This indicates the global parameter being set; Indicates the first The frequency extreme points of the single-bit gate; , , Indicates the floating range; Indicates the first The single-bit gate and the first The frequency sweep amplitude between the single-bit gates; Indicates the first The frequency value of the single-bit gate; This represents bit crosstalk between the nearest and next-nearest single-bit gates; Indicates the decoherence time; This represents the average value of the decoherence time; Indicates taking the absolute value; The reward function of the reinforcement learning method includes: ; in, This represents the value of the reward function; Indicates state; Indicates traversal behavior; Indicates a terminated state; Indicates an intermediate state value; Indicates intersection; This represents the empty set.
6. The method according to claim 5, characterized in that, The loss function of the agent includes: ; in, This represents the value of the loss function of the agent; This represents the action value output by the error model; This represents the probability of the policy action output by the error model; express Expectations; Represents a logarithm; The parameters represent the intelligent agent.
7. The method according to claim 1, characterized in that, The initial parameters of the single-bit gate include bit frequency, the relationship between frequency and current bias, the duration of the π pulse, the amplitude of the π pulse, the frequency of the read cavity, the time sequence length of the read pulse, and the amplitude of the read pulse.
8. A quantum chip calibration system, characterized in that, include: The first acquisition module is used to acquire the initial parameters of each bit in the quantum chip; The second acquisition module is used to calibrate the corresponding single-bit gate based on the initial parameters to obtain calibration parameters; The third acquisition module is used to acquire the correlation parameters between each of the single-bit gates; The first determining module is used to determine the calibration order of each gate frequency based on the calibration parameters and the associated parameters; The first calibration module is used to calibrate the corresponding gate frequency according to the calibration parameters in accordance with the calibration sequence. The second acquisition module includes: The first determining unit is used to determine the microwave corresponding to the initial parameters for the single-bit gate and drive the bit. The first acquisition unit is used to acquire the response information of the single-bit gate to the microwave; The first clustering unit is used to cluster the response information to obtain clustering results; The first generation unit is used to generate the twist distance of the cluster centers for each of the clustering results; The first construction unit is used to construct a first loss function based on the twist distance; The second determining unit is used to divide the response information into 0 states and 1 states using the k-means clustering algorithm, and to determine the probability value of being in the 1 state; The first fitting unit is used to construct a nonlinear fitting parameter equation based on the probability value, and to construct a second loss function based on the nonlinear fitting parameter equation. The second construction unit is used to construct a third loss function based on the first loss function and the second loss function; The second acquisition unit is used to calibrate the single-bit gate according to the rule that makes the loss value of the third loss function less than a preset value, and obtain the calibration parameters. The first determining module includes: The third construction unit is used to construct an error model based on the fourth loss function, applying the calibration parameters and the correlation parameters; The second generation unit is used to generate a Monte Carlo search tree containing information about all the single-bit gates; The first traversal unit is used to traverse the Monte Carlo search tree according to the error model using a reinforcement learning method to obtain the calibration order of each of the gate frequencies.
9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the quantum chip calibration method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the quantum chip calibration method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Quantum bit calibration method and device and quantum computer
CN113011594A
Method and device for determining signal sampling quality, equipment and storage medium
CN114757225A
