Embodiments of this application relate to the field of quantum technologies, and in particular, to a quantum gate optimization method and apparatus, a device, and a storage medium.
The quantum gate is a basic component of a quantum circuit. A plurality of quantum gates can be combined to construct a complex quantum circuit, so as to implement quantum computing (QC) and quantum simulation. Therefore, the implementation of high-precision quantum gates is essential for QC and quantum simulation.
Currently, none of the quantum gate optimization solutions can improve both the precision and efficiency.
Embodiments of this application provide a quantum gate optimization method and apparatus, a device, and a storage medium, to provide a quantum gate optimization solution that improves both the precision and efficiency. The technical solutions are as follows:
According to an aspect of the embodiments of this application, a quantum gate optimization method is performed by a computer device, the method including:
According to an aspect of the embodiments of this application, a computer device is provided, including a processor and a memory, the memory storing at least one instruction, the at least one instruction, when executed by the processor, causing the computer device to implement the foregoing quantum gate optimization method.
According to an aspect of the embodiments of this application, a non-transitory computer-readable storage medium is provided, the computer-readable storage medium storing at least one instruction, and the at least one instruction, when executed by a processor of a computer device, causing the computer device to implement the foregoing quantum gate optimization method.
The technical solutions provided in the embodiments of this application include at least the following beneficial effects:
The quantum gate optimization solution provided in this application is a closed-loop optimization solution driven and implemented by data feedback. By combining a gradient-constrained optimization algorithm with actual measurement data, on the one hand, due to the gradient-constrained optimization of the control external field, this application can shorten an optimization time and lower optimization costs compared with some optimization solution without gradient constraints, and on the other hand, because the actual measurement data of the quantum gate is acquired during optimizations, and optimization is performed by using the actual measurement data as feedback, this application ensures the effect and precision of optimization. With reference to the foregoing two aspects, this application achieves a quantum gate optimization solution that improves both the precision and efficiency.
To describe the technical solutions of the embodiments of this application more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show only some embodiments of this application, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
To make the objectives, technical solutions, and advantages of this application clearer, the following further describes implementations of this application in detail with reference to the accompanying drawings.
Before embodiments of this application are described, some terms involved in this application are explained first.
1. Quantum computing (QC): A novel computing method that harnesses phenomena of quantum states, such as superposition and entanglement, in quantum mechanics to run algorithms and perform calculations.
2. Quantum bit (qubit): A two-level quantum system, which is a basic unit of QC and may be implemented on different physical carriers.
3. Superconducting quantum bit (SC qubit): A qubit based on a superconducting quantum circuit designed and fabricated using a micro-nano processing technology. Through classical microwave pulse signals, control and quantum state measurement of the SC qubit can be implemented.
4. Quantum circuit and quantum gate: Quantum circuit is a QC model that decomposes a QC process into a series of quantum gate operations on a plurality of qubits.
5. Lindblad equation: An equation used for describing evolution of a density matrix of an open quantum system that satisfies Markov approximation with time under a weak coupling interaction.
6. Quantum state tomography (QST): A commonly used method for calibrating quantum states by performing projection measurement on the quantum states in different directions to construct a corresponding density matrix.
7. Quantum process tomography (QPT): A commonly used method for calibrating a quantum gate, in which different initial states are selected to pass through a specific quantum gate, and corresponding final states are obtained through the QST to construct a process matrix including all information of the quantum gate.
8. Randomized benchmarking measurement: n random Clifford gates are selected, and through an inverse operation, a ground state probability of a gate circuit is obtained by collecting a large number of statistics, and a plurality of measurements are performed by changing the value of n, so that an attenuation rate of a waveform sequence can be extracted.
9. Interleaved randomized benchmarking measurement: n random Clifford gates are selected, and a target quantum gate that needs to be calibrated is inserted at the end, and through an inverse operation, a ground state probability of a gate circuit is obtained by collecting a large number of statistics, and a plurality of measurements are performed by changing the value of n, so that an attenuation rate of a waveform sequence can be extracted. With reference to results of the randomized benchmarking measurement, the precision of the target quantum gate may be further calibrated.
10. GRAPE algorithm: A gradient ascent pulse engineering algorithm, which is mainly obtaining a gradient of a discretized waveform based on a defined objective function, and making, through a plurality of iterations, a waveform converge to near an optimal value.
11. Powell algorithm: An accelerated algorithm that uses a conjugate direction to sequentially perform a one-dimensional search on a multi-dimensional objective function to find a minimum value.
12. Nelder-Mead algorithm: A gradient-free algorithm for finding a minimum value of a multivariate function, of which the core is updating an initially selected simplex according to specific rules until the simplex is small enough, so as to find out an optimized parameter at this time.
13. Control external field: With regard to the SC qubit, a control external field generally refers to a microwave drive applied to a qubit. A microwave applied to a diagonal element part of a bit Hamiltonian is referred to as a control external field in a z direction. A microwave applied to a non-diagonal element part of the bit Hamiltonian is referred to as a control external field in an xy direction.
14. Two-bit probability exchange: After a bit is prepared to an excited state, when another bit is coupled to it, the probability of the excited state will be exchanged between the two bits. The smaller the coupling strength, the weaker the exchange capability.
15. Trivial dynamic phase: Without considering an interbit coupling effect, due to the external field in the z direction, a cumulative phase introduced in the diagonal element of the bit is generally referred to as a trivial dynamic phase.
An ideal gate operator may be equivalent to a time evolution operator that completely depends on a control external field. Therefore, optimization of a quantum gate may be equivalent to optimization of the control external field corresponding to the quantum gate. The quantum gate optimization solution provided in this application is a closed-loop optimization solution driven and implemented by data feedback. By combining a gradient-constrained optimization algorithm with actual measurement data, on the one hand, due to the gradient-constrained optimization of the control external field, this application can shorten an optimization time and lower optimization costs compared with some optimization solution without gradient constraints, and on the other hand, because the actual measurement data of the quantum gate is acquired during optimizations, and optimization is performed by using the actual measurement data as feedback, this application ensures the effect and precision of optimization. With reference to the foregoing two aspects, this application achieves a quantum gate optimization solution that improves both the precision and efficiency.
Before method embodiments of this application are described, an operating environment of the method is described first. A quantum gate optimization method provided in the embodiments of this application may be performed and implemented by a classic computer (such as a PC). For example, the method may be performed and implemented by a classic computer executing a corresponding computer program. Alternatively, the method may be performed and implemented in a hybrid device environment including a classic computer and a quantum computer. For example, the method is implemented by a classic computer and a quantum computer cooperating with each other.
In the following method embodiments, for convenience of description, the description is provided by merely using a computer device as an execution entity of the steps. It is to be understood that the computer device may be a classic computer, or may be a hybrid execution environment including a classic computer and a quantum computer. This is not limited in the embodiments of this application.
In addition, in the embodiments of this application, a controlled Z (CZ) quantum gate (CZ gate for short) is mainly used as an example to introduce the technical solutions of this application. The technical solutions provided in this application are adapted to not only optimization of the CZ gate, but also optimization of some other quantum gates, for example, some common single-bit quantum gates (such as Rx, Ry, and Rz quantum gates) and some other complex quantum gates.
Step 210: Obtain an initialized control external field corresponding to a quantum gate.
In the embodiments of this application, a control external field refers to a microwave drive applied to a qubit corresponding to a quantum gate, and the control external field may be a pulse waveform. The initialized control external field may be selected based on experience or experiments.
In the embodiments of this application, a plurality of iterative updates are performed on the control external field to optimize the control external field, and the optimized control external field is applied to the qubit corresponding to the quantum gate to optimize precision of the quantum gate.
The core of quantum gate optimization is to improve the precision. Precision, also referred to as fidelity, refers to the comparison between a measurement result and an ideal value. Experimentally, the precision of a quantum gate can generally be measured by methods such as the QPT and randomized benchmarking measurement.
Step 220: Apply the control external field to a qubit corresponding to the quantum gate, and acquire actual measurement data of the quantum gate, the actual measurement data being used for reflecting an actual characteristic of the quantum gate.
In some embodiments, the control external field is applied to the qubit corresponding to the quantum gate in the following manner: dividing the control external field by time to obtain a pulse waveform sequence, the pulse waveform sequence including pulse waveforms corresponding to a plurality of time points; and applying the pulse waveforms corresponding to the plurality of time points to the qubit corresponding to the quantum gate. For example, when the control external field is denoted as μAM, 0<t<T, and the time T is divided into M parts (r=TIM), then the control external field μA(t) can be discretized as:
μA(t)⇒{μA;1=μA(t=0),μA;2=μA(τ), . . . , μA;M=μA((M−1)τ)} (1)
When the quantum gate is a single-bit quantum gate, the control external field may be applied to the single bit corresponding to the quantum gate. When the quantum gate is a multi-bit quantum gate, the corresponding control external field may be applied to only one or some of a plurality of bits corresponding to the quantum gate. For example, for a two-bit CZ gate, the control external field may be applied to only one of the bits.
The quantum gate optimization solution provided in the embodiments of this application is a closed-loop optimization solution driven and implemented by data feedback. Therefore, after the control external field is applied to the qubit corresponding to the quantum gate, the actual measurement data of the quantum gate is acquired through experiments. The actual measurement data is used for reflecting the actual characteristic of the quantum gate, so that the actual measurement data is utilized to implement the closed-loop optimization of the quantum gate (the control external field).
In an exemplary embodiment, the actual measurement data includes an actual gate operator corresponding to the quantum gate. In some embodiments, QPT is performed on the quantum gate to obtain a process matrix corresponding to the quantum gate; and based on the process matrix corresponding to the quantum gate, the actual gate operator corresponding to the quantum gate is determined.
The process matrix corresponding to the quantum gate is generally obtained through the QPT. The QPT is a technique for describing performance of a specific quantum gate, and can provide a visual image related to the process matrix. An ideal unitary evolution can be described directly by the mapping ψf=Uidealψ(0) of quantum states. However, a non-ideal system with noise has to be described by using a density matrix. It is considered that, there is a process matrix-dependent mapping relationship between an input quantum state ρ(0)and an output quantum state ρf, which is expanded into a superposition of a set of linear operators {Bi}:
ε(ρ(0))=ρf=Σi=1d
d is a dimension of the system, {{tilde over (E)}m, {tilde over (E)}n} is a complete set of basis vectors, and may include Pauli matrices, and Xmn is a process matrix that describes all information of a specific quantum gate. A process matrix X can be determined from a specific quantity of the input quantum states and the corresponding output quantum states by using the mapping relationship. A value range of i in the formula (2) is an integer in a range [1, d2].
In some embodiments, the Powell algorithm is used to estimate the process matrix obtained through the QPT measurement to find the actual gate operator corresponding to the quantum gate. The Powell algorithm is an accelerated algorithm using a conjugate direction, and has a better optimization effect for a parameter dimension less than 20. For an objective function, a parameter vector in an N-dimensional space is {right arrow over (X)}. Starting from an initial guess value {right arrow over (X)}0(0), in the lth iteration, there are N determined search directions {{right arrow over (h)}1(l), . . . , {right arrow over (h)}N(l)} pre-existing in a parameter space. In the k(≤N)th iteration, starting from {right arrow over (X)}k−1(l), a one-dimensional search is performed along the direction {right arrow over (h)}k(l) to minimize the objective function. After searches in all of the N directions are completed, a new direction is generated: {right arrow over (h)}N+1(l)={right arrow over (X)}N+1(l)−{right arrow over (X)}0(l), to replace one of the previous directions in {{right arrow over (h)}k(l)}. In the (l+1)th iteration, {right arrow over (X)}0(l+1)={right arrow over (X)}N+1(l) is selected as initial point, and a new set {{right arrow over (h)}k(l+1)} is used as search directions to perform iteration until a termination condition is met. This is the most primitive Powell algorithm, and such a direction update method is prone to linear correlation in an iteration. Consequently, a search process is carried out in a reduced dimensional space, and therefore, an optimal convergence value cannot be found. In view of this, the modified Powell algorithm is later provided, the core of which is to introduce a Powell condition as a criterion for determining whether the search direction needs to be adjusted and how to adjust the search direction, so as to achieve better results.
Experimentally, the behavior of a quantum gate is completely described by the process matrix X, which can be obtained through the QPT. Due to quantum dissipation and some other error sources, Xexp that is experimentally determined always deviates from an ideal value. Therefore, it is almost impossible to accurately calculate a time evolution operator U corresponding to the quantum gate. However, a fitting method can be adopted to find the best estimate Uexp (which is referred to as “the actual gate operator corresponding to the quantum gate”), and the estimate will be used in an optimization solution based on a gate operator as experimental measurement feedback. By constructing a constant matrix M (whose dimension is N2×N2) with a Pauli matrix as a basis vector, a relationship between a super operator form and a process matrix {right arrow over (X)} of a vector form corresponding to a quantum gate can be established, that is {right arrow over (X)}=M−1. Uexp can be estimated relatively quickly by choosing the Powell algorithm. For a given quantum gate operator U, a parameter vector {right arrow over (X)} in the N-dimensional space can be defined according to all of N independent elements {i}, that is, {right arrow over (X)}≡={right arrow over (X)}({Ui}). The objective function is selected as a square difference between a process matrix corresponding to a quantum gate U and an experimental measurement value, that is, F=∥X(U)−Xexp∥2=∥X(X)−Xexp∥2. The parameter vector {right arrow over (X)} corresponding to the quantum gate U is optimized by the Powell algorithm to minimize the objective function, so as to find Uexp which is closest to the process matrix Xexp measured in an experiment.
In another exemplary embodiment, the actual measurement data includes an actual output density matrix corresponding to the quantum gate. In some embodiments, at least one selected input quantum state is obtained; the input quantum state is processed through the quantum gate to obtain an output quantum state; and QST is performed on the output quantum state to obtain the actual output density matrix corresponding to the quantum gate.
The quantum state can be determined by using a method of the QST. A basic principle of the QST is to project the quantum state to different directions through a series of revolving gates selected in advance. Based on probabilities measured in different projection directions and maximum likelihood estimation, a density matrix corresponding to the quantum state can be fitted. Therefore, by performing the QST on the output quantum state of the quantum gate, the actual output density matrix corresponding to the quantum gate can be obtained.
Step 230: Calculating a gradient corresponding to the control external field based on the actual measurement data and ideal data.
In the embodiments of this application, the gradient corresponding to the control external field is calculated based on the actual measurement data and ideal data, and then the control external field is updated according to the gradient. The ideal data is data used for reflecting an ideal characteristic of the foregoing quantum gate. For example, when the actual measurement data includes the actual gate operator corresponding to the quantum gate, the ideal data includes an ideal gate operator corresponding to the quantum gate. In another example, when the actual measurement data includes the actual output density matrix corresponding to the quantum gate, the ideal data includes an ideal output density matrix of the quantum gate. The foregoing ideal data (such as the ideal gate operator, and the ideal output density matrix) can be set in advance according to a design situation of the quantum gate. The gradient-constrained optimization algorithm has a faster optimization speed than an optimization algorithm without gradient constraints, thereby saving optimization costs.
In some embodiments, the step includes the following substeps:
1. Derive a gradient calculation formula according to an objective function and a waveform function corresponding to the control external field, the objective function being configured to measure a gap between the actual measurement data and the ideal data, and an optimization objective of the objective function being to minimize a value of the objective function; and
2. Calculate, by using the gradient calculation formula, the gradient corresponding to the control external field based on the actual measurement data and the ideal data.
The objective function is related to precision of the quantum gate, and the objective function can be constructed based on a manner of measuring the precision of the quantum gate. In addition, this application provides two solutions, one is an optimization solution based on a gate operator, and the other is an optimization solution based on a density matrix. Therefore, the corresponding objective functions and the corresponding gradient calculation formulas are different.
For the optimization solution based on the gate operator, the actual measurement data includes the actual gate operator corresponding to the quantum gate, and the objective function is:
U=∥Ud†Uc−UCZ∥2=2−Tr{Uc†UdUCZ}−Tr{UCZUd†Uc} (3)
The corresponding gradient calculation formula is:
Uc represents a total time evolution operator corresponding to the quantum gate. Ud represents a time evolution operator corresponding to the quantum gate without interbit coupling. UCZ represents an ideal gate operator corresponding to the quantum gate. Ud†Uc is replaced by Uexp. Uexp represents the actual gate operator corresponding to the quantum gate, τ=T/M. μA;m represents the mth pulse waveform in a pulse waveform sequence obtained by dividing a control external field μA by time. Qc;m represents a calculated value of a coupling term corresponding to the mth pulse waveform. Qd;m represents a calculated value of a decoupling term corresponding to the mth pulse waveform. Im represents an imaginary component of a complex number. ∥∥2 represents a square of an Euler norm, ∥R∥2=Tr{R*R}. Tr{A} represents a trace of a matrix A, that is, a sum of diagonal elements.
For the optimization solution based on the density matrix, the actual measurement data includes the actual output density matrix corresponding to the quantum gate, and the objective function is:
The corresponding gradient calculation formula is:
ρf represents an output density matrix corresponding to the quantum gate. ρideal represents an ideal output density matrix corresponding to the quantum gate. ρ(0) represents an input density matrix corresponding to the quantum gate. c represents a time evolution super operator of a coupling term. d represents a time evolution super operator of a decoupling term. d−1cρ(0) is replaced by ρf;exp·ρf;exp represents an actual output density matrix corresponding to the quantum gate, τ=T/M. μA;m represents the mth pulse waveform in a pulse waveform sequence obtained by dividing the control external field μA by time. Qc;m represents a calculated value of a coupling term corresponding to the mth pulse waveform. Qd;m represents a calculated value of a decoupling term corresponding to the mth pulse waveform. In the formula (6), i represents an imaginary unit.
Step 240: Update the control external field according to the gradient to obtain an updated control external field, the updated control external field being applied to the qubit corresponding to the quantum gate to optimize the precision of the quantum gate.
In some embodiments, an updated value is calculated according to the gradient and a learning rate; and an updated control external field is calculated according to a current control external field and updated value. For example, the updated value is obtained by multiplying the gradient and the learning rate, and then the updated value is added to the current control external field to obtain the updated control external field. The learning rate is an empirical constant.
In addition, in the embodiments of this application, the GRAPE algorithm can be used to optimize a quantum gate (a control external field). When the quantum gate does not meet an optimization end condition, the updated control external field is used as the current control external field, and execution is started again from step 220; and the optimization process is ended when the quantum gate meets the optimization end condition. In some embodiments, the optimization end condition includes at least one of the following: the actual characteristic of the quantum gate reflected by the actual measurement data reaches a set index, or a change of the control external field before and after the update is less than a set value.
In summary, the quantum gate optimization solution provided in this application is a closed-loop optimization solution driven and implemented by data feedback. By combining a gradient-constrained optimization algorithm with actual measurement data, on the one hand, due to the gradient-constrained optimization of the control external field, this application can shorten an optimization time and lower optimization costs compared with some optimization solution without gradient constraints, and on the other hand, because the actual measurement data of the quantum gate is acquired during optimizations, and optimization is performed by using the actual measurement data as feedback, this application ensures the effect and precision of optimization. With reference to the foregoing two aspects, this application achieves a quantum gate optimization solution that improves both the precision and efficiency.
Using a CZ gate as an example below, a process of optimizing the CZ gate by using the technical solution in this application is described.
1. Non-Adiabatic CZ Gate
When there is no control external field, a Hamiltonian of a two-bit system (A,B)can be written as:
H0×HA⊗IB+IA⊗HB+Hint (7)
Hi=A,B is a Hamiltonian of a single bit, li=A,B is a unit operator, and Hint represents interaction between two bits. The CZ gate is implemented by a second excited state of one of the bits. A form of a three-level single-bit Hamiltonian (ℏ=1, where ℏ represents a reduced Planck constant, which is set to 1 in a natural unit system for convenience) is:
Hi=A,B=ωi|111i|+(2ωi+Δi)|2i2i| (8)
For each bit (i=A, B), ωi and Δi respectively represent a resonant frequency and an harmonicity of the bit. A parameter example of an experimental bit sample is provided herein, that is, ωA/2π=5.176 GHz, ωB/2π=4.438 GHz, and ΔA/2π=−245.2 MHz, ΔB/2π=−255.5 MHz.
In addition, an interaction Hamiltonian of the two-bit system (A,B)is:
Hint=g(aA+⊗aB−+aA−⊗aB+) (9)
ai=AB+=Σj=01√{square root over (j+1)}|(j+1)iji| and ai=A,B−=Σj=12√e,rad j|(j−1)iji|respectively represent a raising operator and a lowering operator, and g is coupling strength between the two bits. A parameter example of an experimental sample is g/2π=8.5 MHz.
Due to a weak coupling condition (g<<|ωA-ωB|) between the two bits, when there is no control external field, a probability exchange between the two bits is basically negligible. However, when a control external field in a z direction is applied, a resonance environment can be created for the two bits. The control external field can be written as:
Hext(t)=μA(t)PA (10)
PA=nA⊗IB, nA=Σj=02j|jAjA|. IB indicates that no operation is applied to a bit B, which corresponds to an identity matrix. PA is a constant matrix with only diagonal elements. |jA and jA| respectively represent basis vectors of a bit A, |jA is a right basis vector, and jA| is a left basis vector. Therefore, a total coupling Hamiltonian is Hc(t)=H0(g)+Hext(t). When the control external field is μA(t)=μA;r=ωB−ωA−ΔA, the two-bit system resonates between |1A1B and |2A0B. For convenience of writing, any state |jAj′B is abbreviated as |jj′ below, a letter in the first position represents the bit A, and a letter in the second position represents the bit B.
Under such a control external field, the two-bit system can also be reduced to a 5-level status for processing. In a simplified 5-level Hilbert space {|00, |10,|1111,|20}, the Hamiltonian of the two-bit quantum system Hc(t) can be expressed in the following form:
Hc(t)=0|0000|+[ωA+μA(t)]|1010|+ωB|0101|+[ωA+μA(t)+ωB]|1111|+[2(ωA+μA(t))+ΔA]|2020|+√{square root over (2)}g[|1120|+|2011|] (11)
The coupling between |10 and |01 is neglected here.
Under a resonance condition μA(t)=μA;r=ωB-ωA-ΔA, the foregoing Hamiltonian Hc(t) can be abbreviated as:
Hc(t)=0|0000|+[ωA+μA;r]|1010|+ωB|0101|+[ωA+μA;r+ωB][|1111|+|2020 |]+√{square root over (2)}g[|1120|+|2011|] (12)
In addition, an auxiliary Hamiltonian Hd(t) without interqubit coupling (g=0) can be given by the following formula:
Hd(t)=0|0000|+[ωA+μA;r]|1010|+ωB|0101|+[ωA+μA;r+ωB][|1111|+|2020|] (13)
Next, time evolution operator, Uc=exp(−iHcT) and Ud=exp(−iHdT), are constructed, where i represents an imaginary unit. Coupling effect of the Hamiltonian Hc given by the formula (12) only exists in |11 and |20. In a two-dimensional subspace formed by |11 and |20, two operators, I232 |1111|+|2020| and X2=|1120|+|2011|. Therefore, the Hamiltonian in the 2×2 subspace can be written as:
Hsub=[ωA+μA;r+ωB]I2+√{square root over (2)}gX2 (14)
In a time T, a corresponding time evolution operator can be written as:
Usub=e−i(ϕ
ϕA=(ωA+μA;r)T, ϕB=ωBT, and i represents an imaginary unit. The second term on the right side of the formula (15) is a rotation operator, which can be expanded into:
exp(−i√{square root over (2)}gTX2)=cos(√{square root over (2)}gT)I2−i sin(√{square root over (2)}gT)X2 (16)
When the evolution time is a half period, that is, T=π/√{square root over (2)}g, the time evolution operator of the two-dimensional subspace can be written as:
Usub=−e−i(ϕ
Therefore, the total time evolution operator is:
Uc=|0000|+e−iϕ
In addition, a time evolution operator without coupling is:
Ud=Å0000|+e−i(ϕ
A time evolution operator with a trivial dynamic phase removed is:
UCZ=Ud†Uc=|0000|+|1010|+|0101|−|1111|−|2020| (20)
When an initial state is only in a subspace {|00,|10,|01,|11}, the last term on the right side of the formula (20) is negligible, and the time evolution operator is an ideal CZ gate.
2. Optimization Solution Based on a Gate Operator
Due to inevitable errors in an evolution process, a simple square pulse (μA(0<t<T)=μA;r) as a control external field cannot produce a high-fidelity CZ gate. Therefore, a form of a control external field μA (t) needs to be modified. In this case, two Hamiltonians, Hc(t) and Hd(t) are time-dependent, and corresponding time evolution operators need to become Uc(t)=T+exp [−i ∫0THc(t)dt] and Ud(t)=T+exp [−i ∫0THd(t)dt]. T+ represents a forward propagation timing operator, and i represents an imaginary unit. For convenience, the time T is divided into M parts (τ=T/M), and the control external field μA(t) is discretized as:
μA(t)⇒{μA;1=μA(t=0), μA;2=μA(τ), . . . , μA;M=μA((M−1)τ)} (21)
The Hamiltonian Hc(t) can be discretized into:
Hc;m=1,2, . . . , M=0|0000|+[ωA+μA;m]|1010|+ωB|0101| (22) +[ωA+μA;m+ωB]|1111|+[2(ωA+μA;m)+ΔA]|2020|+√{square root over (2)}g[|1120|+|2011|]
The decoupling Hamiltonian Hd (t) can be discretized into:
Hd;m=1,2, . . . , M=0|0000|+[ωA+μA;m]|1010|+ωB|01| (23) +[ωA+μA;m+ωB]|1111|+[2(ωA+μA;m)+ΔA]|2020|
The corresponding two time evolution operators become:
Uc=Uc;MUc;M−1. . . Uc;2 Uc;1 (24)
Ud =Ud;MUd;M−1. . . Ud;2Ud;1 (25)
Uc;m=exp(−iHc;mτ), Ud;m=exp(−iHd;mτ), i represents an imaginary unit, and the time evolution operator U=Ud†Uc with a trivial dynamic phase removed is a CZ gate Ucz that needs to be optimized.
In the optimization solution based on the gate operator, an objective function is defined as:
U=∥Ud†Uc−UCZ∥2=2−Tr{Uc†UdUCZ}−Tr{UCZUd†Uc} (26)
Due to discretization of the control external field μA(t), U is a function of all pulse amplitudes, that is, U=U(μA;1, μA;2, . . . , μA;M). For the mth amplitude μA;m, a gradient of the objective function is:
An optimization condition is given by ∂U/∂μA;m=0, where m=1,2, . . . , M. To meet the optimization condition, the gradient in the formula (27) is further expanded. Partial derivatives of the Uc part are:
To calculate ∂Uc;m/∂μA;m, the time evolution operator needs to be expanded as:
Uc;M=I−τHc;m−τ2Hc;m2/2− (29)
In addition, the result is applied:
Under a normal circumstance, ∂Hc;m/∂μA;m and Hc;m are not mutually exclusive. For numerical calculations, this application uses an acceptable approximation:
Using the result, the formula (28) can be simplified into:
Two variables, PA=∂Hc;m/∂μA;m=nA⊗IB and Rc;m=Uc;mUc;m−1 . . . Uc;1, are introduced, so that the formula (32) can be rewritten as:
Qc;m represents a calculated value of a coupling term corresponding to the mth pulse waveform, Qc;m=Rc†PARc;m. A partial derivative of Ud can be obtained using the same method, which is:
Qd;m represents a calculated value of a decoupling term corresponding to the mth pulse waveform, Qd;m=Rd;m†PARd;m, Rd;m=Ud;mUd;m−1 . . . Ud;1. The formula (33) and the formula (34) are substituted into the formula (27) to obtain:
Im represents an imaginary component of a complex number, and i represents an imaginary unit.
Because it is very difficult to solve
directly analytically, this application uses a GRAPE method based on iterative updating, and a process thereof is shown in
μA;m(l+1)=μA;m(l)+αUkU,m(l) (36)
where a learning rate αU is an empirical constant updated through a series of iterations:
. . . →μ(l)→k(l)→μ(l+1)→ . . . ,
so that the gradient kU(l)≈0, which means that the waveform is close to an optimal value μopt, and basically does not change any more (μA(l+1)μA(l)). However, first, the formula (36) is just the simplest model, and other more complex models may alternatively be chosen; second, for high-dimensional optimization problems, it is also very important to choose an initial value; third, although the optimized waveform can be obtained purely through numerical calculations, such a waveform does not necessarily lead to a high-precision CZ gate in an actual experiment since there are often some uncontrollable errors in the experiment.
Therefore, this application provides adoption of a data-driven method to partially avoid the foregoing third problem. The term “partially avoid” here means that some parameters in the experiment, such as a coupling strength calibration error and a waveform generation error, can be minimized through optimization as much as possible. However, inherent defects of a bit, such as an excessively short decoherence time, cannot be prevented. Experimentally, a feasible way is to use the Powell algorithm to estimate a process matrix measured through QPT, so as to find the actual gate operator Uexp. Therefore, in the lth iteration step, the formula (35) can be changed to:
kU;m(l)≈2τlmTr{Qc;m(l)(Uexp(l))654 UCZ}+2τlmTr{Qd;m(l)Uexp(l)UCZ} (37)
This is, the gradient in combination with feedback of experimental measurement data is updated by using the experimental results, and therefore, converges more effectively, thereby improving the final precision of the quantum gate.
3. Lindblad Master Equation and Representation Thereof in a Liouville Space
In view of dissipation, the time evolution of a density matrix is represented by a Lindblad master equation:
ρ(t)=−i[H(t), ρ(t)]+Σs(Lsρ(t)Ls†−½{ρ(t), Ls†Ls}) (38)
H (t) is a total system Hamiltonian, and {Ls} is a set of Lindblad operators representing dissipation. For two arbitrary operators, A and B in a Hilbert space, [A, B]=AB−BA, and {A, B}=AB+BA, which are respectively expressed as a commutation relationship and an anti-commutation relationship, where i represents an imaginary unit.
To facilitate derivation and numerical calculations, concepts of the Liouville space and the Liouville super operator are introduced. In the Hilbert space with {|i} as a basis vector group, an expanded form of the density matrix is:
In the Liouville space, the foregoing matrix is converted into a vector form:
The foregoing formula is defined in a new basis vector group {|i, j}, and there is a one-to-one correspondence |i, j⇔|ij|. A complex conjugate term |i,j†=i,j|⇔|ji| thereof is introduced, and an inner product form thereof is:
i, j|i′, j′≡Tr{|ji|i′j′|}=δi,i′δj,j′ (41)
An outer product form is: |i,jk,l|. A unit operator (matrix) in the Liouville space can be expanded into:
=Σi,j|i,ji,j| (42)
Then, an arbitrary Liouville super operator is constructed, and a matrix form of which is as follows:
=Σi,j,k,li,j;k,l|i,jk,l| (43)
i,j;k,l=i,j||k,l. To illustrate the application of the Liouville super operator, two examples are provided below.
(a) Commutator of a system Hamiltonian
For a general N-dimensional Hilbert space, the system Hamiltonian may be expanded to H=Σi,jHi,j|ij|. In the Hilbert space, the commutator is written as:
Hρ−ρH=Σi,j,k(Hi,kρk,j−ρi,kHk,j)|ij|=Σi,j,k,l(Hi,kδj,l−Hi,j,δi,k,) ρk,l|ij| (44)
The formula (40) and formula (41) are applied, and the foregoing formula in the Liouville space can be rewritten as:
Therefore, a matrix form of the commutation relationship of the system Hamiltonian is as follows:
(b) Dissipation caused by a Lindblad operator Ls
A dissipation term of the Lindblad equation in the formula (38) can be expanded as:
The corresponding Liouville super operator is written as:
s=Σi,j,k,l[Ls;i,kLs;i,k†−1/2(Ls†Ls)i,jδi,k−1/2(Ls†Ls)i,kδl,j]|i,jk,l| (48)
For an energy relaxation part of a single qubit (N(≥2)), the Lindblad operator is written as:
The corresponding Liouville super operator is written as:
For a phase relaxation part of a single qubit, the Lindblad operator is written as:
The corresponding Liouville super operator is written as:
In summary, the Liouville super operator corresponding to a total dissipation term of a single qubit is:
A specific form of the Liouville super operator is substituted into the Lindblad equation, a matrix equation that the density matrix evolves with time will be obtained, and the form is as follows:
{dot over (ρ)}(t)=−i(t)ρ(t) (54)
The total Liouville super operator (t) includes a system part sys(t) and a dissipative part diss, that is (t)=sys(t)+i diss. A solution to the formula (50) is:
ρ(T)=(T)ρ(0),(T)=T+exp[−i ∫0T(t)dt] (55)
(T) is a super operator about that a density matrix in the Liouville space evolves with time, and i represents an imaginary unit.
4. Optimization Solution Based on a Density Matrix
Another optimization solution provided in this application is implemented based on the formula (54) and the formula (55). For a two-qubit system in an experiment, either a 5-dimensional Hilbert space with {|00,|10,|01,|11,|20} as a basis vector or a more comprehensive 9-dimensional Hilbert space with {|iA(=0,1,2)iB(=0,1,2)} as a basis vector can be considered. Similar to a processing method of the solution 1, the solution also introduces two Hamiltonians, Hc(t)=H0(g)+Hext(μA(t)) and Hd (t)=H0(g=0)+Hext(μA(t), and correspondingly two Liouville super operators ,(t) and d(t) are constructed. By measuring dynamic phases ϕA(T) and ϕB(T), additional operators on Hd(t) can be effectively obtained. Therefore, c(t) includes a dissipation term, and d(t) does not include a dissipation term. In addition, discretization of an external field, that is, μA(t)⇒{μA;2, μA;2, . . . , μA;M}, produces two sets of Liouville super operators, forms of which are as follows:
c(t)⇒{c;1, c;2, . . . , c;M} (56)
d(t)⇒{d;1, d;2, . . . , d;M} (57)
The forms of the two time evolution super operators are as follows:
c=c;Mc;M−1 . . . c;2c;1 (58)
d=d;Md;M−1 . . . d;2d;1 (59)
In the foregoing formula, c represents the time evolution super operator of a coupling term, and d represents the time evolution super operator of a decoupling term:
c;m=exp[−ic;mτ] (60)
d;m=exp[−id;mτ] (61)
Each short period of time is τ=T/M, and i represents an imaginary unit.
In the optimization solution based on a density matrix, a particular initial state can be selected, for example, ϕ(0)=(|0)+|1))⊗(|0−|1)/2 and ρ(0)=ϕ(0)ϕ†(0), and whether a final state ρf(T)=d−1cρ(0) is consistent with an ideal result ρideal=UCZρ(0)UCZ† is checked. In the Hilbert space, this application introduces an objective function:
ρ=∥ρf−ρideal∥2=Tr{[ρf−ρideal]†[ρf−ρideal]}≈2−2Tr{ρidealρf} (62)
ρf†=ρf is applied to derivation of the formula (62) ρideal†=ρideal; and Tr{ρideal2}=1. An actual final state is usually a mixed state, but in the experiments, a weak dissipation condition leads to a better approximation, that is Tr{ρf2}≈1. Next, the formula (62) is converted into an inner product form in the Liouville space:
ρ≈2−2ρideal†ρf=2−2ρideal†d−1cρ(0) (63)
Similarly, a condition {∂ρ/∂μA;m=1,2, . . . ,M=0} is used for controlling minimization of ρ. For the mth pulse amplitude, a corresponding gradient is:
The following approximation is used:
∂c;m/∂μA;m≈−iτ(∂c;m/∂μA;m)c;m (65)
∂d;m−1/∂μA;m≈iτd;m−1(∂d;m/∂μA;m) (66)
In addition, the condition 67c;m/∂μA;m=∂d;m/∂μA;m=A is used, where A=[nA⊗IB, . . . ], and the formula (64) is simplified to:
kρ;m=2iτ[ρideal†c;md−1cρ(0)−ρideal†d;md−1cρ(0)] (67)
In the foregoing formula, Qc;m represents a calculated value of a coupling term corresponding to the mth pulse waveform, Qd;m represents a calculated value of a decoupling term corresponding to the mth pulse waveform, and i represents an imaginary unit:
c;m=c;m−1Ac;m (68)
d;m=d;m−1Ad;m (69)
and
c;m=c;m+1−1 . . . c;M−1d (70)
d;m=d;m . . . d;1 (71)
Two items in brackets on the right side of the equation in the formula (67) are pure imaginary numbers, so that it is ensured that a gradient kp;m is a real number.
Similarly, an optimized condition
needs to be obtained through the GRAPE method, as shown in
μA;m(l+1)=μA;m(l)+αρkρ,m(l) (72)
A learning rate αρ is an empirical constant.
When a waveform converges near an optimal value, kρ(l)≈0, that is, μA(l+1)≈μA(l). Similarly, experimentally, it is necessary to introduce data measured in an experiment for feedback. In the lth iteration, when an actual output density matrix measured in the experiment is ρf;exp(l), a form of the gradient in the formula (67) can be rewritten as:
kρ;m(l)=2iτ[ρideal†c;m(l)ρf;exp(l)−ρideal†d;m(l)ρf;exp(l)] (73)
The gradient in the formula (73) is also mixed with experimental information, and therefore, the optimal value of the waveform can be found more effectively.
In addition, for selection of an initial control external field, the following methods may be used. A control pulse of the CZ gate can be designed as a function with different waveforms. It is usually necessary to select a relatively smooth waveform to reduce a filtering effect existing in a circuit. For a waveform with a fast rise time (such as a square wave), the filtering effect in the circuit is equivalent to performing a Fourier transform on a square wave on a spectrum. Because a high-order harmonic spectrum of the square wave is very wide, a very large range of the spectrum is affected. However, for a relatively smooth waveform, an affected spectrum is relatively narrow. Therefore, a smooth waveform is less affected by filtering. An example of a flattop waveform is provided, of which a function form is:
erf(x) is a Gaussian error function, defined as
A parameter t0=0 represents a start time, Γ and T respectively represent an amplitude and a time length of a pulse of an initialized control external field, σ is related to the curvature of an edge of the pulse, and t≥0. Initially selected parameters of an experimental example are Γ=−492.5/2 πMHz, T=52 ns, and σ=3 ns.
In addition, in some other embodiments, considering that there are some determinate errors in a real quantum system, a more complex model can be established, to take specific forms of the actual error effects (such as the filtering effect) into consideration in the Hamiltonian of the system, to obtain a more precise gradient.
In some other embodiments, to correct an obtained gradient, with reference to an actual system, some boundary conditions can be given, or some gradient correction algorithms (such as the gradient correction in the Adam algorithm commonly used in deep learning) can be used in an iteration using the GRAPE algorithm.
In some other embodiments, the GRAPE algorithm is combined with other algorithms. After the gradient cannot guide an effective update of the control external field, an optimized control external field is used as the initial control external field and passed into other algorithms, and some new parameters can be selected for optimization.
Next, experimental implementation of two optimization solutions in an SC qubit system is described.
(a) Experimental method of an optimization solution based on a gate operator
By using the foregoing optimization solution based on a gate operator, a CZ gate can be optimized experimentally. A specific implementation is as follows. As shown in
For such an optimization solution based on a gate operator, the gate operator Uexp(l) in an experiment needs to be used in an iteration process. However, experimentally, the process matrix X(l) is obtained through the QPT measurement. Therefore, it is necessary to find the corresponding Uexp(l). Using the Powell algorithm introduced earlier, Uexp(l) can be well estimated. Experimentally, trivial dynamic phases of two bits, ϕA and ϕB can be calibrated by using the Ramsey method and compensated for a quantum gate operation after μA(l)(t). Therefore, Uexp(l) obtained by analyzing the QPT result automatically includes an auxiliary operator (Ud(l))† without coupling interaction. Because a real system includes a lot of extra noise, the CZ gate is not completely unitary. The precision still needs to be measured by using the process matrix X(l), but the best estimate, Uexp(l), in the iteration process still has a very important guiding significance for the rise of the precision. To calculate a discretized gradient vector kU(l)={kU;1(l), . . . , kU;M(l)}, considering a resolution limit of an arbitrary waveform generator (AWG) that controls a source of the waveform, a discrete time step can be set as short as possible, an example parameter is 0.5 ns, and a learning rate is based on an actual situation, which is empirically set to αU≈0.08 GHz2. The parameters {Qc;m(l)} and {Qd;m(l)} can be calculated according to the control waveform μA(l)={μA;1(l), . . . , μA;M(l)} in the lth iteration. Finally, by using the gradient calculated by using the formula (37), a waveform μA(l+1) of a next step is calculated according to the formula (36). In an actual experiment, to better generate the waveform and alleviate impact of filtering in a circuit, the discretized waveform can be re-interpolated as a continuous waveform and sent to the AWG for a next iteration.
(b) Experimental processes and results of an optimization solution based on a density matrix
For an optimization solution based on a density matrix, in a theoretical solution, for the sake of simplicity, only an initial state is selected, but in fact, the selection of the initial state can be diverse. For example, two initial states, ϕ(0)=(|0+|1)⊗(|0−|1)/2 and ϕ′(0)=(|0−|1)⊗(|0+|1)/2 can be considered, which can be obtained by applying revolving gates of {Y/2, −Y/2} and {−Y/2, Y/2} to a ground state respectively. The selection of the two initial states is to partially offset impact caused by experimental preparation and measurement errors. Similarly, it is started from the initial waveform μA(0)(t) of the first solution. In the lth iteration step, an external field with a waveform μA(l)(t) is applied, and output quantum states of the two selected initial states after passing through the external field are measured through the QST. For each output quantum state ρf;exp(l), the gradient vector kρ(l)={kρ;1(l), . . . , kρ;M(l)} is calculated by the waveform μA(l)={μA;1(l), . . . , μA;M(l)} and ρf;exp(l) according to the formula (73). Because the two selected states are symmetric, two obtained gradients are averaged, and a next waveform μA(l+1) is calculated by the formula (72). A selected example parameter of the learning rate is αρ≈0.06 GHz2, and is similarly interpolated as a continuous waveform and sent to the AWG.
This application provides two different data-driven GRAPE optimization solutions for CZ gate optimization. The two solutions are respectively based on a gate operator and a particular output density matrix, and obtain an optimal control external field by minimizing two different objective functions. According to a feedback control mechanism, the key point of each solution is to use mixed information of an input control external field and an experimental measurement value (an actual gate operator or an actual output density matrix) to numerically calculate a gradient vector. Based on the theory, this application uses an SC qubit system to demonstrate an optimized implementation of a two-bit CZ gate. Compared with the related art, the GRAPE algorithm is relatively efficient in terms of optimization speed, especially for a case that a parameter space is large.
The following are apparatus embodiments of this application, which can be used for performing the method embodiments of this application. For details not disclosed in the apparatus embodiments of this application, reference may be made to the method embodiments of this application.
The external field obtaining module 510 is configured to obtain an initialized control external field corresponding to a quantum gate.
The data acquisition module 520 is configured to apply the control external field to a qubit corresponding to the quantum gate and acquire actual measurement data of the quantum gate, the actual measurement data being used for reflecting an actual characteristic of the quantum gate.
The gradient calculation module 530 is configured to calculate a gradient corresponding to the control external field based on the actual measurement data and ideal data.
The external field update module 540 is configured to update the control external field according to the gradient to obtain an updated control external field, the updated control external field being applied to the qubit corresponding to the quantum gate to optimize precision of the quantum gate.
In an exemplary embodiment, the gradient calculation module 530 is configured to:
derive a gradient calculation formula according to an objective function and a waveform function corresponding to the control external field, the objective function being configured to measure a gap between the actual measurement data and the ideal data, an optimization objective of the objective function being to minimize a value of the objective function; and
calculate, by using the gradient calculation formula, the gradient corresponding to the control external field based on the actual measurement data and the ideal data.
In an exemplary embodiment, the actual measurement data includes an actual gate operator corresponding to the quantum gate. The data acquisition module 520 is configured to perform QPT on the quantum gate to obtain a process matrix corresponding to the quantum gate; and determine the actual gate operator corresponding to the quantum gate based on the process matrix corresponding to the quantum gate.
In an exemplary embodiment, the actual measurement data includes an actual output density matrix corresponding to the quantum gate. The data acquisition module 520 is configured to obtain at least one selected input quantum state; process the input quantum state through the quantum gate to obtain an output quantum state; and perform QST on the output quantum state to obtain an actual output density matrix corresponding to the quantum gate.
In an exemplary embodiment, the external field update module 540 is configured to calculate an updated value according to the gradient and a learning rate; and calculate the updated control external field according to a current control external field and the updated value.
In an exemplary embodiment, the data acquisition module 520 is configured to divide the control external field by time to obtain a pulse waveform sequence, the pulse waveform sequence including pulse waveforms corresponding to a plurality of time points; and apply the pulse waveforms corresponding to the plurality of time points to the qubit corresponding to the quantum gate.
In an exemplary embodiment, the apparatus 500 further includes a condition determining module (which is not shown in
when the quantum gate does not meet an optimization end condition, use the updated control external field as the current control external field, and repeat the operations of applying the current control external field to the qubit corresponding to the quantum gate, acquiring the actual measurement data of the quantum gate, calculating a gradient corresponding to the current control external field, and updating the current control external field until the quantum gate meets the optimization end condition; and
the optimization end condition including at least one of the following: the actual characteristic of the quantum gate reflected by the actual measurement data reaches a set index, or a change of the control external field before and after the update is less than a set value.
In view of the above, the quantum gate optimization solution provided in this application is a closed-loop optimization solution driven and implemented by data feedback. By combining a gradient-constrained optimization algorithm with actual measurement data, on the one hand, due to the gradient-constrained optimization of the control external field, this application can shorten an optimization time and lower optimization costs compared with some optimization solution without gradient constraints, and on the other hand, because the actual measurement data of the quantum gate is acquired during optimizations, and optimization is performed by using the actual measurement data as feedback, this application ensures the effect and precision of optimization. With reference to the foregoing two aspects, this application achieves a quantum gate optimization solution that improves both the precision and efficiency.
When the apparatus provided in the foregoing embodiments implements functions of the apparatus, division of the foregoing functional modules is merely an example for description. In the practical application, the functions may be assigned to and completed by different functional modules according to the requirements, that is, the internal structure of the device is divided into different functional modules, to implement all or some of the functions described above. In addition, the apparatus and method embodiments provided in the foregoing embodiments belong to the same concept. For the specific implementation process, reference may be made to the method embodiments, and details are not described herein again. In this application, the term “unit” or “module” refers to a computer program or part of the computer program that has a predefined function and works together with other related parts to achieve a predefined goal and may be all or partially implemented by using software, hardware (e.g., processing circuitry and/or memory configured to perform the predefined functions), or a combination thereof. Each unit or module can be implemented using one or more processors (or processors and memory). Likewise, a processor (or processors and memory) can be used to implement one or more modules or units. Moreover, each module or unit can be part of an overall module that includes the functionalities of the module or unit.
The computer device 600 includes a processing unit (for example, a central processing unit (CPU), a graphics processing unit (GPU) and a field programmable gate array (FPGA), etc.) 601, a system memory 604 including a random-access memory (RAM) 602 and a read-only memory (ROM) 603, and a system bus 605 connecting the system memory 604 and the central processing unit 601. The computer device 600 further includes a basic input/output (I/O) system 606 assisting in transmitting information between components in a server, and a mass storage device 607 configured to store an operating system 613, an application program 614, and another program module 615.
The basic I/O system 606 includes a display 608 configured to display information and an input device 609, such as a mouse or a keyboard, for a user to input information. The display 608 and the input device 609 are both connected to the CPU 601 by using an input/output controller 610 connected to the system bus 605. The basic I/O system 606 may further include the I/O controller 610 configured to receive and process inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the I/O controller 610 further provides an output to a display screen, a printer or another type of an output device.
The mass storage device 607 is connected to the CPU 601 by using a mass storage controller (which is not shown) connected to the system bus 605. The mass storage device 607 and an associated computer-readable medium provide non-volatile storage for the computer device 600. That is, the mass storage device 607 may include a computer-readable medium (which is not shown) such as a hard disk or a compact disc read-only memory (CD-ROM) drive.
Without loss of generality, the computer-readable medium may include a computer storage medium and a communication medium. The computer storage medium includes volatile and non-volatile media, and removable and non-removable media implemented by using any method or technology used for storing information such as computer-readable instructions, data structures, program modules, or other data. The computer storage medium includes a RAM, a ROM, an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory or another solid-state memory technology, a CD-ROM, a digital video disc (DVD) or another optical memory, a tape cartridge, a magnetic cassette, a magnetic disk memory, or another magnetic storage device. Certainly, a person skilled in the art may learn that the computer storage medium is not limited to the foregoing types. The system memory 604 and the mass storage device 607 may be collectively referred to as a memory.
According to the embodiments of this application, the computer device 600 may be further connected, through a network such as the Internet, to a remote computer on the network and run. That is, the computer device 600 may be connected to a network 612 by using a network interface unit 611 connected to the system bus 605, or may be connected to another type of network or a remote computer system (which is not shown) by using a network interface unit 611.
The memory further includes at least one instruction, at least one program, a code set, or an instruction set. The at least one instruction, the at least one program, the code set, or the instruction set is stored in the memory and is configured to be executed by one or more processors to implement the foregoing quantum gate optimization method.
In an exemplary embodiment, a computer-readable storage medium is further provided, storing at least one instruction, at least one program, a code set, or an instruction set, the at least one instruction, the at least one program, the code set, or the instruction set, when executed by a processor, implementing the quantum gate optimization method.
In some embodiments, the computer-readable storage medium may include a read-only memory (ROM), a random-access memory (RAM), a solid state drive (SSD), an optical disc, or the like. The RAM may include a resistive random access memory (ReRAM) and a dynamic random access memory (DRAM).
In an exemplary embodiment, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, to cause the computer device to perform the foregoing quantum gate optimization method.
“Plurality of” mentioned in the specification means two or more. “And/or” describes an association relationship for describing associated objects and represents that three relationships may exist. For example, A and/or B may represent the following three cases: Only A exists, both A and B exist, and only B exists. The character “/” in this specification generally indicates an “or” relationship between the associated objects. In addition, the step numbers described in this specification merely exemplarily show a possible execution sequence of the steps. In some other embodiments, the steps may not be performed according to the number sequence. For example, two steps with different numbers may be performed simultaneously, or two steps with different numbers may be performed according to a sequence contrary to the sequence shown in the figure. This is not limited in the embodiments of this application.
The foregoing descriptions are merely exemplary embodiments of this application, but are not intended to limit this application. Any modification, equivalent replacement, or improvement made within the spirit and principle of this application shall fall within the protection scope of this application.
Number | Date | Country | Kind |
---|---|---|---|
202110410057.9 | Apr 2021 | CN | national |
This application is a continuation application of PCT Patent Application No. PCT/CN2021/121487, entitled “QUANTUM GATE OPTIMIZATION METHOD AND APPARATUS, DEVICE, AND STORAGE MEDIUM”, filed on Sep. 28, 2021, which claims priority to Chinese Patent Application No. 202110410057.9, entitled “QUANTUM GATE OPTIMIZATION METHOD AND APPARATUS, DEVICE, AND STORAGE MEDIUM” filed on Apr. 15, 2021, both of which are incorporated by reference in their entirety.
Number | Name | Date | Kind |
---|---|---|---|
11474867 | Bonderson | Oct 2022 | B2 |
11507872 | Cao | Nov 2022 | B2 |
11763187 | Babbush | Sep 2023 | B2 |
11928586 | Niu | Mar 2024 | B2 |
20150358022 | McDermott, III et al. | Dec 2015 | A1 |
20180123597 | Sete et al. | May 2018 | A1 |
20200327441 | Cao et al. | Oct 2020 | A1 |
20200364602 | Niu et al. | Nov 2020 | A1 |
20200410343 | Niu et al. | Dec 2020 | A1 |
Number | Date | Country |
---|---|---|
109217939 | Jan 2019 | CN |
110612540 | Dec 2019 | CN |
111369004 | Jul 2020 | CN |
112313677 | Feb 2021 | CN |
112488317 | Mar 2021 | CN |
113158615 | Jul 2021 | CN |
Entry |
---|
Re-Bing Wu et al., “Data-Driven Gradient Algorithm for High-Precision Quantum Control”, Physical Review A, Apr. 24, 2018, 4 pgs., Retrieved from the Internet: https://joumals.aps.org/pra/abstract/10_1103/PhysReyA_97_042122. |
Qi Yin “Studies on Theories and Optical Experiments of Quantum Tomography Technics”, A dissertation for doctor degree, University of Science and Technology of China, Oct. 15, 2018, 16 pgs. |
Tencent Technology, WO, PCT/CN2021/121487, Jan. 13, 2022, 4 pgs. |
Tencent Technology, IPRP, PCT/CN2021/121487, Oct. 12, 2023, 5 pgs. |
Tencent Technology, European Office Action, EP 21835572.5, Oct. 19, 2023, 11 pgs. |
Extended European Search Report, EP21835572.5, Oct. 11, 2022, 11 pgs. |
Tencent Technology, ISR, PCT/CN2021/121487, Jan. 13, 2022, 2 pgs. |
Number | Date | Country | |
---|---|---|---|
20220351064 A1 | Nov 2022 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2021/121487 | Sep 2021 | WO |
Child | 17721227 | US |