Pulse sequence generation method and device, medium and computer equipment

By constructing the operation unit of pulse sequence in quantum computing, including hard pulse and free evolution process, and optimizing it, the problem of slow optimization speed and large error caused by too many hard pulses is solved, and more efficient quantum gate operation is achieved. and lower RF field non-uniformity effects.

CN118690859APending Publication Date: 2024-09-24SHENZHEN SPINQ TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310285190.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In quantum computing, too many hard pulses lead to slow optimization speed, large impact of radio frequency field inhomogeneity, and increased experimental errors. Especially in multi-bit cases, the dynamic decoupling process is cumbersome.

Method used

By constructing the operation unit of the pulse sequence, including hard pulse operation and free evolution process, an optimization algorithm is used to iteratively optimize the number and parameters of the operation unit until the target fidelity is reached to reduce the number of hard pulses and the amount of optimization parameters.

Benefits of technology

Significantly reduce the number and action time of hard pulses, reduce the impact of radio frequency field inhomogeneity, increase optimization speed, and reduce experimental errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690859A
    Figure CN118690859A
Patent Text Reader

Abstract

The invention discloses a pulse sequence generation method and device, a medium and computer equipment. The generation method comprises the following steps: determining an operation unit of a pulse sequence to be generated according to a target operation and a nuclear magnetic resonance spin system type, wherein the operation unit comprises a plurality of hard pulse operations and a free evolution process; iteratively optimizing the number of operation units in the pulse sequence to be generated, the pulse parameter of each hard pulse operation in each operation unit and the duration of the free evolution process by adopting an optimization algorithm until the target fidelity is achieved; and outputting the number of the operation units meeting the target fidelity, the pulse parameter of each hard pulse operation and the duration of the free evolution process as generation parameters of the pulse sequence to be generated. Through cooperative use of the hard pulse operation and the free evolution process, the number of hard pulses is greatly reduced, the action time of the hard pulse operation is shortened, experimental errors are reduced, the influence of non-uniformity of a radio frequency field is reduced, and the quantity of parameters needing to be optimized is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of quantum computing technology, and in particular, relates to a method for generating a pulse sequence, a generating device, a medium and a computer device. Background Art

[0002] In quantum computing, pulses are the underlying language for interacting with quantum physical systems. For quantum computers with different physical implementations, pulses are needed to control quantum bits. Take nuclear magnetic resonance quantum computing, which has the most mature control means, as an example: in this system, nuclear spins are used as quantum bits. Applying radio frequency pulses that resonate with the Larmor frequency of nuclear spins can excite nuclear spins. By adjusting the phase and duration of the radio frequency field, any single quantum bit operation can be achieved. By considering the coupling interaction, any two-bit gate can be achieved, and finally any quantum logic gate operation can be achieved. However, the coupling terms in the system Hamiltonian will affect the control effect. In order to further improve the control accuracy of quantum computing, the dynamic decoupling (Dynamically decoupling), strongly modulating pulses (SMP) and GRAPE (Gradient ascent pulse engineering, GRAPE) proposed based on the nuclear magnetic resonance system have been widely used and even transplanted to quantum computing platforms of other physical systems. Traditional logic operations built with hard pulses require the use of dynamic decoupling technology to eliminate unnecessary coupling evolution. However, in the case of multi-bit dynamic decoupling, the Hadamard matrix (NMR quantum computation: a critical evaluation 2000: 139-154.) is required to generate a cumbersome decoupling pulse sequence. The SMP algorithm (Design of strongly modulating pulses to implement precise effective Hamiltonians for quantum information processing. The Journal of chemical physics, 2002, 116 (17): 7599-7606.) and the GRAPE algorithm (Optimal control of coupled spin dynamics: design of nmr pulse sequences by gradient ascent algorithms. J. Magn. Reson., 172: 296, 2005.) can obtain precise control pulse parameters through numerical calculation without decoupling, but often require many hard pulse cascades to implement. On the one hand, the increase in the number of pulses leads to a sharp increase in the parameters that need to be optimized, and the optimization speed is slow. On the other hand, the increase in the number of pulses means that the NMR sample will be exposed to the radio frequency field for a longer time, and the inhomogeneity of the radio frequency field will have a greater impact on the sample. At the same time, the increase in the number of pulses makes the probability of pulse parameter jumps greater, thereby increasing the accumulated experimental error. Summary of the invention

[0003] The technical problem solved by the present invention is: how to reduce the number of hard pulses during quantum gate operation to improve the optimization speed, reduce the influence of radio frequency field inhomogeneity, and reduce the experimental errors accumulated due to hard pulse parameter jumps.

[0004] The present application discloses a method for generating a pulse sequence, the method comprising:

[0005] Determining an operation unit of a pulse sequence to be generated according to a target operation and a type of a nuclear magnetic resonance spin system, wherein the operation unit includes a plurality of hard pulse operations and a free evolution process;

[0006] Iteratively optimizing the number of operation units in the pulse sequence to be generated, the pulse parameters of each hard pulse operation in each operation unit, and the duration of the free evolution process until the target fidelity is achieved;

[0007] The number of operation units that meet the target fidelity, the pulse parameters of each hard pulse operation and the duration of the free evolution process are output and used as generation parameters of the pulse sequence to be generated.

[0008] Preferably, the process of iteratively optimizing the number of operation units in the pulse sequence to be generated, the pulse parameters of each hard pulse operation in each operation unit, and the duration of the free evolution process by using an optimization algorithm until the target fidelity is reached includes:

[0009] Setting the number of the operation units;

[0010] Initializing the duration of the free evolution process in each of the operation units according to the system Hamiltonian and randomly initializing the pulse parameters of each hard pulse operation;

[0011] Adopting a gradient descent algorithm to iteratively optimize the duration and the pulse parameters until the current round stop condition is reached;

[0012] After the current round of optimization iterations is completed, the current round of fidelity is obtained, and it is determined whether the current round of fidelity is greater than or equal to the target fidelity. If so, the iterative optimization is stopped.

[0013] Preferably, the generating method further comprises:

[0014] If the current round fidelity is less than the target fidelity, determining whether the number of initialization times reaches a predetermined value;

[0015] If not, the duration and the pulse parameters are reinitialized and the optimization iteration is continued; if yes, the number of the operation units is increased and the optimization iteration is performed again.

[0016] Preferably, the current round stopping condition is that the loss function decreases to a predetermined value or the number of iterations reaches a preset value.

[0017] Preferably, the method for determining the operation unit of the pulse sequence to be generated according to the target operation and the type of the nuclear magnetic resonance spin system is: determining the number of hard pulse operations in the operation unit and the sequence of each hard pulse operation and the free evolution process according to the target operation and the type of the nuclear magnetic resonance spin system.

[0018] Preferably, when the type of the nuclear magnetic resonance spin system is a heteronuclear nuclear magnetic resonance multi-qubit system, the number of hard pulse operations includes the number of hard pulse operations required to perform local operations on each qubit.

[0019] Preferably, when the type of the nuclear magnetic resonance spin system is a same-nuclear nuclear magnetic resonance multi-qubit system, the number of hard pulse operations is the number of hard pulse operations required to achieve local operation or global operation.

[0020] The present application also discloses a pulse sequence generating device, the generating device comprising:

[0021] An initial construction module, used for determining an operation unit of a pulse sequence to be generated according to a target operation and a type of a nuclear magnetic resonance spin system, wherein the operation unit includes a plurality of hard pulse operations and a free evolution process;

[0022] An optimization iteration module, used for iteratively optimizing the number of operation units in the pulse sequence to be generated, the pulse parameters of each hard pulse operation in each operation unit, and the duration of the free evolution process by using an optimization algorithm until the target fidelity is achieved;

[0023] The parameter output module is used to output the number of operation units that meet the target fidelity, the pulse parameters of each hard pulse operation and the duration of the free evolution process as generation parameters of the pulse sequence to be generated.

[0024] The present application also discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a pulse sequence generation program, and when the pulse sequence generation program is executed by a processor, the above-mentioned pulse sequence generation method is implemented.

[0025] The present application also discloses a computer device, which includes a computer-readable storage medium, a processor, and a pulse sequence generation program stored in the computer-readable storage medium. When the pulse sequence generation program is executed by the processor, the above-mentioned pulse sequence generation method is implemented.

[0026] Compared with the prior art, the present invention discloses a method for generating a pulse sequence and a device for generating a pulse sequence, which have the following technical effects:

[0027] By combining hard pulse operation with the free evolution process, the number of hard pulses is greatly reduced, and the duration of hard pulse operation is shortened, thereby reducing experimental errors and the impact of RF field inhomogeneity. At the same time, since the free evolution process only contains duration parameters, the overall number of parameters that need to be optimized in the pulse sequence is also reduced, which is conducive to improving the optimization speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a schematic diagram of pulse sequence cascade obtained by SMP optimization in the prior art;

[0029] Figure 2 is a flow chart of a method for generating a pulse sequence according to the first embodiment of the present invention;

[0030] Figure 3 Schematic diagram of a pulse sequence for performing local operation on a heteronuclear system in Example 1 of the present invention;

[0031] Figure 4 Schematic diagram of a pulse sequence for performing global operation on a heteronuclear system in Example 1 of the present invention;

[0032] Figure 5 Schematic diagram of a pulse sequence for performing local operation or global operation on a homonuclear system in Embodiment 1 of the present invention;

[0033] Figure 6 A detailed process diagram of a method for generating a pulse sequence according to the first embodiment of the present invention;

[0034] Figure 7 This is a schematic diagram of the operation of implementing CNOT in a heteronuclear system in Example 1 of the present invention;

[0035] Figure 8 This is a principle block diagram of a pulse sequence generating device according to a second embodiment of the present invention;

[0036] Fig. 9 Schematic diagram of a computer device according to a fourth embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0038] Before describing the various embodiments of the present application in detail, the technical concept of the present application is first briefly described: when the prior art uses a strong modulation pulse technology solution to optimize the pulse parameters of the required pulse sequence, the number of hard pulses is gradually increased and the optimization is performed again. Finally, when the fidelity is reached, the number of pulse sequences obtained is large, resulting in a slow optimization speed and a longer total pulse action time, which increases the influence of the RF field inhomogeneity on the sample during the experiment, thereby increasing the experimental error. To this end, the present application provides a method for generating a pulse sequence. First, the operation units of the required pulse sequence are constructed, each operation unit includes a number of hard pulse operations and a free evolution process, and then an optimization algorithm is used to optimize the number of operation units, the parameters of each hard pulse operation, and the duration of the free evolution process to obtain the best parameter combination. In this way, multiple free evolution processes are inserted into the pulse sequence to replace some hard pulse operations. On the premise of achieving the same quantum gate operation effect, the number of hard pulses is greatly reduced, and the action time of hard pulse operations is reduced, thereby reducing experimental errors and reducing the impact of RF field inhomogeneity. At the same time, since the free evolution process only contains duration parameters, the overall number of parameters that need to be optimized for the pulse sequence is also reduced, which is conducive to improving the optimization speed.

[0039] Before describing the various steps of the first embodiment, necessary preparation is made for the relevant technologies in nuclear magnetic resonance quantum computing to facilitate understanding of the subsequent improvement steps.

[0040] Dynamical gates in quantum computing through the dynamical evolution of the system U = e -iHt To achieve this, the dynamic evolution of the system depends on the Hamiltonian H of the system, so regulating the Hamiltonian H and evolution time t of the quantum system can realize the dynamic gates in various quantum calculations. For the nuclear magnetic resonance quantum computing system, the Hamiltonian H can include two parts, namely the internal Hamiltonian H int and the external Hamiltonian H ext ,in:

[0041]

[0042]

[0043] Internal Hamiltonian H int It includes the Zeeman splitting energy of nuclear spins in the static magnetic field B0 and the coupling energy between nuclear spins; the external Hamiltonian H ext It is the energy of the nuclear spin in the applied control pulse (RF field). is the reduced Planck constant, is the Larmor frequency of the nuclear spin in a static magnetic field, ω rot is the frequency of the rotating coordinate system, J ij is the coupling strength between nuclear spins.x ,I y ,I z is the Pauli operator, is the Larmor frequency of the nuclear spin in the radio frequency field, ω rf is the frequency of the RF field, and φ is the phase of the RF field. In some cases, the desired dynamic gate operation can be achieved by simply adjusting the parameters of the external Hamiltonian. If you want to achieve high-precision quantum control, you need to use SMP or GRAPE pulse optimization technology to numerically optimize the adjustable parameters in the dynamic evolution through the gradient descent algorithm of a classical computer. Ultimately, the dynamic evolution of the quantum system As close as possible to the operation U we want to achieve ideal The hard pulse operation mentioned in this embodiment is to apply a radio frequency field to the NMR sample, and the four variable parameters of the radio frequency field are: φ m ,t m ] is a pulse parameter of the hard pulse operation described in this embodiment, and the superscript m indicates that the parameter is a parameter of the mth hard pulse.

[0044] The following describes the SMP technology using a two-bit system as an example. Figure 1 As shown, n hard pulses (high-power RF pulses) are cascaded to achieve the target operation U ideal The dynamics of the quantum system under the action of n hard pulses is: After optimization, U approaches U numerically. ideal The number of hard pulses n depends on the parameters and target operation, and is usually increased empirically until a pulse that meets the fidelity requirements can be optimized.

[0045] Specifically, if Figure 2 As shown, the method for generating a pulse sequence in the first embodiment includes the following steps:

[0046] Step S10: determining an operation unit of a pulse sequence to be generated according to a target operation and a type of a nuclear magnetic resonance spin system, wherein the operation unit includes a plurality of hard pulse operations and a free evolution process;

[0047] Step S20: using an optimization algorithm to iteratively optimize the number of operation units in the pulse sequence to be generated, the pulse parameters of each hard pulse operation in each operation unit, and the duration of the free evolution process until the target fidelity is achieved;

[0048] Step S30: outputting the number of operation units that meet the target fidelity, the pulse parameters of each hard pulse operation and the duration of the free evolution process as generation parameters of the pulse sequence to be generated.

[0049] In step S10, by introducing the free evolution process As part of the dynamic evolution, the use of hard pulses can be reduced. The dynamic evolution under the action of pulses and the free evolution of the system are combined into an operation unit with a specific structure, and the dynamic evolution parameters of the operation unit under the specific structure are optimized, thereby reducing the total pulse duration to alleviate the impact of RF field inhomogeneity and reducing the parameters to be optimized to shorten the optimization time. Therefore, the number of hard pulse operations in the operation unit and the order of hard pulse operations and free evolution processes must be determined first.

[0050] The types of NMR spin systems are divided into heteronuclear and homonuclear. When the NMR spin system type is a heteronuclear NMR multi-qubit system, the number of hard pulse operations includes the number of hard pulse operations required for local operations on each qubit.

[0051] Taking a two-qubit system as an example, when the NMR spin system type is a heteronuclear NMR multi-qubit system, the pulse can act independently on one of the qubits without affecting the other qubit. Figure 3 As shown, three hard pulse operations with parameters can be used to combine any local operation U local (Single-bit operation), theoretically, three hard pulse operations can be combined into any local operation, and the number of hard pulses can be increased or decreased as needed. The pulse combination is applied to the corresponding channel for the bit that needs to be operated locally. Only the pulse parameters to be optimized need to be φ m ,t m By optimizing, the target local operation can be obtained. Figure 4 As shown, the above hard pulse operation is combined with a free evolution process The operating unit can realize the global operation U global (multi-bit operation) condition. The principle of this is that the global operation of multi-bit depends on the internal Hamiltonian H int The coupling term in There must be a certain amount of time for coupling evolution during the entire operation Only the pulse parameters to be optimized in the operation unit can be realized. φ m ,t m And the free evolution time τ is optimized, the target operation U can be achieved ideal Some global operations may be complex. If a single operation unit cannot obtain the target operation with the required fidelity, increase the number of operation units until the target operation with the required fidelity (this is the preset value) can be optimized.

[0052] When the type of the nuclear magnetic resonance spin system is a same-nuclear nuclear magnetic resonance multi-qubit system, the number of hard pulse operations is the number of hard pulse operations required to achieve local operation or global operation.

[0053] Still taking the two-qubit system as an example, since the chemical shifts of the nuclear spins are very similar, a single hard pulse cannot be used to control a single qubit (all qubits will be affected by the same hard pulse). In this case, it is necessary to differentiate and control the individual qubits (only operate on one of the bits). For example, Figure 5 As shown in the figure, the following specific structure of the operation unit is used to realize any local operation or global operation. 3 hard pulse operations with parameters plus a free evolution process As an operation unit, increase the number of this operation unit until the target operation with the required fidelity can be optimized. The principle of this is that if the same core system wants to be controlled differently, it needs to rely on the precession of different quantum bits during free evolution. The three hard pulses plus a period of free evolution are equivalent to the same core bit performing the same local operation at the same time and then performing a period of precession with different precession frequencies. After that, different quantum bits will have a certain degree of state difference. As long as there are a certain number of operation units in the pulse sequence, any local operation or global operation can be achieved in theory. Increase the number of operation units in the pulse sequence and continue to optimize the pulse parameters. φ m ,t m And the free evolution time τ is optimized until the target operation with the required fidelity can be optimized.

[0054] After determining the operation units according to the target operation and the type of NMR spin system, it is necessary to further determine the number of operation units, the pulse parameters of the hard pulse operation in each operation unit, and the duration of the free evolution process. The optimization iterative process can be referred to Figure 6 In step S20, an optimization algorithm is used to perform iterative optimization to obtain the best parameter combination. Specifically, step S20 includes the following sub-steps:

[0055] Step S201: Setting the number of operation units. Theoretically, the initial number of operation units can be set to 1, or the initial number of operation units can be set to multiple according to the target operation and the type of NMR system combined with operation experience.

[0056] Step S202: Initializing the duration of the free evolution process in each of the operation units according to the system Hamiltonian and randomly initializing the pulse parameters of each hard pulse operation.

[0057] Step S203: Adopting a gradient descent algorithm to iteratively optimize the duration and pulse parameters until a stop condition is reached.

[0058] Step S204: after the current round of optimization iterations is completed, the current round of fidelity is obtained, and it is determined whether the current round of fidelity is greater than or equal to the target fidelity. If so, the iterative optimization is stopped.

[0059] Specifically, the dynamic evolution process of the NMR system generated by a single operation unit is transformed into an evolution operator U m , then multiple operation units are cascaded to obtain the resulting dynamic evolution process using the evolution operator U = ∑ m U m , m represents the number of operation units. If the evolution operator of the target control to be achieved is U ideal , then the current round fidelity can be Where N is the dimension of the evolution operator. Then set the loss function to Q = 1-F, and use the computer to optimize the pulse parameters through the gradient descent algorithm φ m ,t m And the free evolution time τ, so that Q continues to decrease during the gradient descent process, and the iteration is stopped when the loss function is reduced to a predetermined value or the number of iterations reaches a preset value. Then compare the current round fidelity F with the target fidelity. If the current round fidelity F is greater than or equal to the target fidelity, it means that the parameter combination obtained at this time (i.e., the number of operating units, the duration of the free evolution process, and the pulse parameters) can meet the requirements, then the iterative optimization is stopped. If the current round fidelity F is less than the target fidelity, it means that the parameter combination has not yet met the requirements and iterative optimization needs to continue.

[0060] As an implementation method, when continuing the optimization, the number of operation units is kept unchanged, and it is determined whether the number of initialization times reaches a predetermined value. If not, the duration and pulse parameters are reinitialized, and the optimization iteration is continued until the current round of iteration stop conditions are reached. After a gradient descent optimization cycle is completed, if the parameter combination with the target fidelity is not obtained, it may be that the initial values ​​of the duration and pulse parameters are not selected well. The parameters can be re-initialized randomly and the iteration can be continued. In this way, the probability of searching for a parameter combination that meets the requirements can be increased without increasing the number of operation units, which is conducive to further reducing the number of parameters of the pulse sequence.

[0061] Furthermore, if after multiple initializations, the parameter combination that meets the requirements is still not obtained, it is necessary to increase the number of operation units in order to iteratively optimize and obtain the parameter combination that meets the requirements. It should be noted that one operation unit can be gradually added each time, and multiple initializations can be performed under the new number of operation units, and the required parameter combination can be iteratively optimized as much as possible under the current number of operation units. Finally, the number of operation units that meet the target fidelity, the pulse parameters of each hard pulse operation, and the duration of the free evolution process are output and used as the generation parameters of the pulse sequence to be generated.

[0062] The following takes a two-bit system as an example to illustrate the advantages of the pulse sequence generation method of this embodiment over the existing strong modulation pulse technology.

[0063] Since for the same nuclear system, the selectivity of the pulse technology comes from the precession frequency of different quantum bits The phase accumulated by the difference, so the emphasizing pulse technology needs to have a long enough time for different quantum bits to accumulate phase differences. In general, the single-bit gate operation of the same core system needs to be realized with a shaped pulse of more than 2ms. If the pulse width of each hard pulse in the emphasizing pulse technology is t m The time required for the single-bit gate operation of the same nuclear system is about 20us. In order to realize the single-bit gate operation of the same nuclear system, more than 100 hard pulses need to be cascaded, and there are more than 400 parameters that need to be optimized. This will make the pulse sensitive to experimental errors during execution, and the process of pulse optimization is quite slow. At the same time, the action time of the radio frequency field on the nuclear magnetic resonance sample is 2ms. In the first embodiment, the most basic operation unit is composed of several hard pulse operations and a free evolution process. Similarly, in order to realize the above-mentioned differentiated control, five operation units can be used, wherein each operation unit includes 3 hard pulse operations and a free evolution process, and the pulse parameters of each hard pulse operation are 4. The parameters of each free evolution process have only one duration. The pulse sequence is composed of 15 hard pulses and 5 hard pulses in total. The parameters required to optimize the pulse sequence are 65, which is much less than the 400 in the strong modulation pulse technology, and the optimization speed is significantly accelerated. At the same time, since there are only 15 hard pulse operations, assuming that the average duration of each hard pulse is 20us, the action time of the RF field on the NMR sample is 300us, which is much lower than the above 2ms, reducing the impact of RF field inhomogeneity on the NMR sample.

[0064] Similarly, the two-bit gate of the NMR heteronuclear system also needs to go through a certain period of coupled evolution. To achieve, evolution time Depends on the coupling strength J. The sum of the time lengths of the hard pulses ∑ m t m Need to be greater than In order to realize the two-bit gate operation, it means that the number of cascaded strong modulation hard pulses will be relatively large. The more hard pulses contained in the shaped pulse, the more obvious the disturbance of the shaped pulse to the nuclear spin resonance frequency and the radio frequency field power will be; and when the number of hard pulses increases, the impact of pulse parameter jump on the pulse execution quality will also be greater. Taking the CNOT gate as an example, the CNOT gate controlled by bit 1 acting on bit 2 can theoretically be decomposed into a combination of a series of single-bit local operations and two-bit coupling interactions. Figure 7 In Express The rotation operation of the spin, the rotation angle is The subscript y of R indicates that the rotation axis of the rotation operation is the y-axis. Indicates that the system has passed The two bits interact with each other in the free evolution of time. Assuming the coupling strength J = 500 Hz, the coupling interaction time is Assume that the duration of a single hard pulse is t m The time duration of the CNOT gate is about 20us. Generally, the strong modulation pulse needs at least about 50 hard pulses to realize the CNOT gate. However, the solution of the first embodiment can be realized by using two operation units, wherein the number of hard pulse operations is 6, which is much less than the above 50 hard pulses, and the actual pulse action time is about 120us, which is much less than the above 1000us.

[0065] like Figure 8 As shown, the second embodiment also discloses a pulse sequence generating device, which includes an initial construction module 100, an optimization iteration module 200 and a parameter output module 300. The initial construction module 100 is used to determine the operation unit of the pulse sequence to be generated according to the target operation and the type of nuclear magnetic resonance spin system, and the operation unit includes a number of hard pulse operations and a free evolution process; the optimization iteration module 200 is used to use an optimization algorithm to iteratively optimize the number of operation units in the pulse sequence to be generated, the pulse parameters of each hard pulse operation in each operation unit, and the duration of the free evolution process until the target fidelity is reached; the parameter output module 300 is used to output the number of operation units that meet the target fidelity, the pulse parameters of each hard pulse operation, and the duration of the free evolution process as the generation parameters of the pulse sequence to be generated.

[0066] Furthermore, the more detailed working process of each module such as the initial construction module 100, the optimization iteration module 200 and the parameter output module 300 can be found in the corresponding description of the first embodiment, which will not be repeated here.

[0067] The third embodiment further discloses a computer-readable storage medium, which stores a pulse sequence generation program. When the pulse sequence generation program is executed by a processor, the pulse sequence generation method of the first embodiment is implemented.

[0068] This fourth embodiment also discloses a computer device, at the hardware level, such as Fig. 9 As shown, the computer device includes a processor 12, an internal bus 13, a network interface 14, and a computer-readable storage medium 11. The processor 12 reads the corresponding computer program from the computer-readable storage medium and then runs it, forming a request processing device at the logical level. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices. The computer-readable storage medium 11 stores a pulse sequence generation program, and when the pulse sequence generation program is executed by the processor, the above-mentioned pulse sequence generation method is implemented.

[0069] Computer-readable storage media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0070] The specific implementation methods of the present invention are described in detail above. Although some embodiments have been shown and described, those skilled in the art should understand that these embodiments can be modified and improved without departing from the principles and spirit of the present invention, the scope of which is defined by the claims and their equivalents. These modifications and improvements should also be within the scope of protection of the present invention.

Claims

1. A method for generating a pulse sequence, characterized in that: The generation method comprises: Determining an operation unit of a pulse sequence to be generated according to a target operation and a type of a nuclear magnetic resonance spin system, wherein the operation unit includes a plurality of hard pulse operations and a free evolution process; Iteratively optimizing the number of operation units in the pulse sequence to be generated, the pulse parameters of each hard pulse operation in each operation unit, and the duration of the free evolution process until the target fidelity is achieved; The number of operation units that meet the target fidelity, the pulse parameters of each hard pulse operation and the duration of the free evolution process are output and used as generation parameters of the pulse sequence to be generated.

2. The method for generating a pulse sequence according to claim 1, characterized in that: The process of iteratively optimizing the number of operation units in the pulse sequence to be generated, the pulse parameters of each hard pulse operation in each operation unit, and the duration of the free evolution process by using an optimization algorithm until the target fidelity is reached includes: Setting the number of the operation units; Initializing the duration of the free evolution process in each of the operation units according to the system Hamiltonian and randomly initializing the pulse parameters of each hard pulse operation; Adopting a gradient descent algorithm to iteratively optimize the duration and the pulse parameters until the current round stop condition is reached; After the current round of optimization iterations is completed, the current round of fidelity is obtained, and it is determined whether the current round of fidelity is greater than or equal to the target fidelity. If so, the iterative optimization is stopped.

3. The method for generating a pulse sequence according to claim 2, characterized in that: The generating method further comprises: If the current round fidelity is less than the target fidelity, determining whether the number of initialization times reaches a predetermined value; If not, the duration and the pulse parameters are reinitialized and the optimization iteration is continued; if yes, the number of the operation units is increased and the optimization iteration is performed again.

4. The method for generating a pulse sequence according to claim 2, characterized in that: The current round stopping condition is that the loss function decreases to a predetermined value or the number of iterations reaches a preset value.

5. The method for generating a pulse sequence according to claim 1, characterized in that: The method for determining the operation unit of the pulse sequence to be generated according to the target operation and the type of nuclear magnetic resonance spin system is as follows: determining the number of hard pulse operations in the operation unit and the sequence of each hard pulse operation and the free evolution process according to the target operation and the type of nuclear magnetic resonance spin system.

6. The method for generating a pulse sequence according to claim 5, characterized in that: When the type of the nuclear magnetic resonance spin system is a heteronuclear nuclear magnetic resonance multi-qubit system, the number of hard pulse operations includes the number of hard pulse operations required for local operations on each qubit.

7. The method for generating a pulse sequence according to claim 5, characterized in that: When the type of the nuclear magnetic resonance spin system is a same-nuclear nuclear magnetic resonance multi-qubit system, the number of hard pulse operations is the number of hard pulse operations required to achieve local operation or global operation.

8. A pulse sequence generating device, characterized in that: The generating device comprises: An initial construction module, used for determining an operation unit of a pulse sequence to be generated according to a target operation and a type of a nuclear magnetic resonance spin system, wherein the operation unit includes a plurality of hard pulse operations and a free evolution process; An optimization iteration module, used for iteratively optimizing the number of operation units in the pulse sequence to be generated, the pulse parameters of each hard pulse operation in each operation unit, and the duration of the free evolution process by using an optimization algorithm until the target fidelity is achieved; The parameter output module is used to output the number of operation units that meet the target fidelity, the pulse parameters of each hard pulse operation and the duration of the free evolution process as generation parameters of the pulse sequence to be generated.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a pulse sequence generation program, and when the pulse sequence generation program is executed by a processor, the pulse sequence generation method according to any one of claims 1 to 7 is implemented.

10. A computer device, characterized in that: The computer device includes a computer-readable storage medium, a processor, and a pulse sequence generation program stored in the computer-readable storage medium. When the pulse sequence generation program is executed by the processor, the pulse sequence generation method according to any one of claims 1 to 7 is implemented.