Parameter optimization method and system of quantum circuit, electronic equipment and storage medium
The initial parameters of the single-bit gate are optimized through preset optimization methods, and iterative calculations are used to solve the problem of the time-consuming optimization of single-bit gate parameters in quantum computing, which significantly improves the computing efficiency of quantum lines.
Patent Information
- Application Number
- CN202411067022.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2044-08-05
AI Technical Summary
In quantum computing, the parameter optimization process of single-bit gate is the main time-consuming part of quantum line measurement, which leads to a long overall time-consuming process of quantum computing and affects the computing efficiency.
The initial parameters of the single-bit gate are optimized through preset optimization methods, and iteratively calculate using the constraint optimization algorithm, and gradually determine the Nth preset parameter, reducing the number of iterations of quantum line parameters, and improving calculation efficiency.
By optimizing the initial parameters, the number of iterations of the quantum circuit is significantly reduced, parameters close to the ideal value are quickly obtained, and the calculation efficiency of the quantum circuit is improved.
Smart Images

Figure CN119180349A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of quantum computing, and in particular to a parameter optimization method and system for a quantum circuit, an electronic device, and a storage medium. Background Art
[0002] Quantum computing is a new computing model based on the principles of quantum mechanics, which uses quantum bits (qubits) for information processing and calculation. Unlike traditional binary classical computers, quantum computers can achieve extraordinary parallel computing capabilities and huge information carrying capacity through phenomena such as quantum superposition and quantum entanglement.
[0003] Quantum circuits are the core component of quantum computing. Quantum circuits operate on quantum bits through quantum logic gates and can implement various quantum algorithms.
[0004] Hardware-Efficient Ansatz (HEA) is a superconducting quantum circuit commonly used in quantum computing to optimize parameterized circuit design. When solving problems, hardware-efficient ansatz can improve the computing efficiency of hardware by reducing the overhead of parameter optimization of single-bit gates.
[0005] The inventors of the present application have discovered that the optimization process of single-bit gate parameter optimization is the main time-consuming part of quantum circuit measurement. If the initial parameters of the single-bit gate can be optimized, the number of iterations of the initial parameters can be reduced to reduce the number of measurements of the quantum circuit, thereby reducing the overall time consumption of quantum computing and improving the computational efficiency of quantum computing. Summary of the invention
[0006] According to one aspect of the present application, the present application provides a parameter optimization method for a quantum circuit, including: optimizing the quantum circuit parameters through a preset optimization method based on a first preset parameter of a single-bit gate to obtain a first optimization parameter; optimizing the quantum circuit parameters through a preset optimization method based on a second preset parameter of the single-bit gate to obtain a second optimization parameter; determining the Nth preset parameter of the single-bit gate based on the first optimization parameter and the second optimization parameter; wherein the Nth preset parameter is related to the N-1th optimization parameter corresponding to the N-1th preset parameter and the N-2th optimization parameter corresponding to the N-2th preset parameter, and N is a positive integer greater than or equal to 3; optimizing the quantum circuit parameters through a preset optimization method based on the Nth preset parameter of the single-bit gate to obtain a target optimization parameter.
[0007] According to some embodiments of the present application, determining the Nth preset parameter of the single-bit gate based on the first optimization parameter and the second optimization parameter includes: when N is less than or equal to 4, the calculation formula of the Nth preset parameter is: N =-2*Pscf,N-1 -P scf,N-2 ; Among them, P N is the Nth preset parameter, P scf,N-1 For the N-1th optimization parameter, P scf,N-2 Optimize parameters for the N-2th step.
[0008] According to some embodiments of the present application, determining the Nth preset parameter of the single-bit gate based on the first optimization parameter and the second optimization parameter includes: when N is greater than 4, the calculation formula of the Nth preset parameter is: N =P N-1 -P N-2 +P scf,N-1 ; Among them, P N-1 is the N-1th preset parameter, P N-2 Preset parameters for the N-2th time.
[0009] According to some embodiments of the present application, the preset optimization method is to optimize quantum circuit parameters using a constrained optimization algorithm.
[0010] According to another aspect of the present application, the present application provides a parameter optimization system for a quantum circuit, including a parameter optimization module and a parameter configuration module. The parameter optimization module optimizes the quantum circuit parameters based on the first preset parameter of the single-bit gate through a preset optimization method to obtain the first optimization parameter, and optimizes the quantum circuit parameters based on the second preset parameter of the single-bit gate through a preset optimization method to obtain the second optimization parameter; the parameter configuration module determines the Nth preset parameter of the single-bit gate based on the first optimization parameter and the second optimization parameter; wherein the Nth preset parameter is related to the N-1th optimization parameter corresponding to the N-1th preset parameter and the N-2th optimization parameter corresponding to the N-2th preset parameter, and N is a positive integer greater than or equal to 3; the parameter optimization module optimizes the quantum circuit parameters based on the Nth preset parameter of the single-bit gate through a preset optimization method to obtain the target optimization parameter.
[0011] According to some embodiments of the present application, when N is less than or equal to 4, the parameter configuration module determines the Nth preset parameter according to the following formula: N =-2*P scf,N-1 -P scf,N-2 ; Among them, P N is the Nth preset parameter, P scf,N-1 For the N-1th optimization parameter, P scf,N-2 Optimize parameters for the N-2th step.
[0012] According to some embodiments of the present application, when N is greater than 4, the parameter configuration module determines the Nth preset parameter according to the following formula: N =P N-1 -P N-2 +P scf,N-1; Among them, P N-1 is the N-1th preset parameter, P N-2 Preset parameters for the N-2th time.
[0013] According to some embodiments of the present application, the preset optimization method is to optimize quantum circuit parameters using a constrained optimization algorithm.
[0014] According to another aspect of the present application, the present application also provides an electronic device. The electronic device includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors can implement the parameter optimization method described above.
[0015] According to another aspect of the present application, the present application further provides a non-volatile computer-readable storage medium, wherein a computer program is stored on the storage medium, and when the computer program is executed by a processor, the parameter optimization method described above can be implemented.
[0016] The present application obtains the first optimization parameter by setting the first preset parameter, obtains the second optimization parameter by setting the second preset parameter, and obtains the Nth preset parameter according to the first optimization parameter and the second optimization parameter. The present application can optimize the initial parameters of the quantum circuit quickly through the correlation between the N-1th optimization parameter and the N-2th optimization parameter and the Nth preset parameter, and obtain initial parameters that are closer to the ideal value, so that the quantum circuit can quickly obtain the optimal parameters based on fewer iterations, reduce the time consumption of quantum circuit parameter iteration, and significantly improve the computational efficiency of the quantum circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A flow chart showing a parameter optimization method according to an embodiment of the present application;
[0019] Figure 2 A schematic diagram showing a parameter optimization method according to an embodiment of the present application;
[0020] Figure 3 A schematic diagram showing parameter optimization comparison of an embodiment of the present application is shown;
[0021] Figure 4 A schematic diagram showing the comparison of the number of line iterations in an embodiment of the present application is shown;
[0022] Figure 5 A schematic diagram showing the structure of a parameter optimization system according to an embodiment of the present application is shown.
[0023] Description of reference numerals:
[0024] Parameter optimization system 1; parameter optimization module 10; parameter configuration module 20. DETAILED DESCRIPTION
[0025] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.
[0026] The described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of these specific details, or other modes, components, materials, devices, etc. may be adopted. In these cases, known structures, methods, devices, implementations, materials or operations will not be shown or described in detail.
[0027] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0028] The terms "first", "second" and the like in the specification and claims of this application and the above drawings are used to distinguish different objects rather than to describe a specific order.
[0029] The following is a clear and complete description of the technical solution of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0030] According to one aspect of the present application, the present application provides a method for optimizing parameters of a quantum circuit. Figure 1 A flow chart showing the parameter optimization method of an embodiment of the present application is shown. Figure 1As shown, the parameter optimization method may include steps S100-S400.
[0031] Exemplarily, the parameter optimization method may be executed by a parameter optimization system of a quantum circuit.
[0032] According to an exemplary embodiment, the quantum circuit described in the present application may be a superconducting quantum circuit, such as a hardware-efficient simulated circuit. The following takes the hardware-efficient simulated circuit as an example for exemplary description.
[0033] In step S100, the parameter optimization system optimizes the quantum circuit parameters based on the first preset parameters of the single-bit gate by a preset optimization method to obtain the first optimized parameters.
[0034] For example, the parameter optimization system responds to the user's setting instruction, sets the first preset parameter P1 of the single-bit gate, and uses microwave devices to make the phase modulation of the single-bit gate in the hardware efficient proposed circuit be -2*P1. Then the parameter optimization system iterates the parameters in the hardware efficient proposed circuit through the preset optimization method to obtain the first optimized parameter P scf,1 .
[0035] Exemplarily, the microwave device may be an electronic device operating in the microwave frequency band (frequency range of 300 MHz to 300 GHz), for example, the microwave device may include an arbitrary waveform generator (AWG), an IQ (In-phase / Quadrature) mixer, a filter and a synthesizer, etc., which is not limited in the present application.
[0036] Optionally, the preset optimization method is to optimize quantum circuit parameters using a constrained optimization algorithm.
[0037] For example, the constrained optimization algorithm is the COBYLA (Constrained Optimization BY Linear Approximation) algorithm. COBYLA is an algorithm for solving constrained nonlinear optimization problems. The COBYLA algorithm gradually approaches the optimal solution by constructing a linear approximation of the objective function and the constraints. It performs linear interpolation at N+1 points to form an approximation of the objective function and the constraints, and optimizes these approximations within the trust region.
[0038] Exemplarily, the preset optimization method may also adopt SPSA (Simultaneous Perturbation Stochastic Approximation) or SLSQP (Sequential Least Squares Programming) (an algorithm for solving nonlinear constrained optimization problems), and this application does not impose any restrictions on this.
[0039] In step S200, the parameter optimization system optimizes the quantum circuit parameters based on the second preset parameters of the single-bit gate by a preset optimization method to obtain second optimized parameters.
[0040] For example, the parameter optimization system responds to the user's setting instruction, sets the second preset parameter P2 of the single-bit gate, and uses microwave devices to make the phase modulation of the single-bit gate in the hardware efficient proposed circuit be -2*P2. Then the parameter optimization system iterates the parameters in the hardware efficient proposed circuit through the preset optimization method to obtain the second optimized parameter P scf,2 .
[0041] In step S300, the parameter optimization system determines the Nth preset parameter of the single-bit gate based on the first optimization parameter and the second optimization parameter. The Nth preset parameter is related to the N-1th optimization parameter corresponding to the N-1th preset parameter and the N-2th optimization parameter corresponding to the N-2th preset parameter, where N is a positive integer greater than or equal to 3.
[0042] For example, the parameter optimization system responds to the user's setting instruction and optimizes the first optimization parameter P scf,1 and the second optimization parameter P scf,2 The third preset parameter P3 is determined. Then, the microwave device is used to make the phase modulation of the single-bit gate in the hardware efficient proposed circuit be -2*P3. Then, the parameter optimization system iterates the parameters in the hardware efficient proposed circuit through the preset optimization method to obtain the third optimized parameter P scf,3 .
[0043] For another example, the parameter optimization system responds to the user's setting instruction and optimizes the system according to the second optimization parameter P scf,2 and the third optimization parameter P scf,3 The fourth preset parameter P4 is determined. Then, the microwave device is used to make the phase modulation of the single-bit gate in the hardware efficient proposed circuit be -2*P4. Then, the parameter optimization system iterates the parameters in the hardware efficient proposed circuit through the preset optimization method to obtain the third optimized parameter P scf,4 .
[0044] By analogy, the parameter optimization system optimizes the parameter P according to the N-1th optimization parameter scf,N-1 and the N-2th optimization parameter P scf,N-2 The Nth preset parameter P is determined N When N is large enough, the calculation of the Nth preset parameter is stopped. For example, the value range of N can be 10 4 -10 8 .
[0045] Figure 2 A schematic diagram of a parameter optimization method according to an embodiment of the present application is shown. Figure 2As shown, the Nth preset parameter can be obtained through the N-1th optimized parameter and the N-2th optimized parameter.
[0046] Optionally, in step S300, when N is less than or equal to 4, the calculation formula of the Nth preset parameter is: N =-2*P scf,N-1 -P scf,N-2 .P N is the Nth preset parameter, P scf,N-1 For the N-1th optimization parameter, P scf,N-2 Optimize parameters for the N-2th step.
[0047] For example, when N=3, P3=-2*P scf,2 -P scf,1 , at this time the third optimization parameter corresponding to P3 is P scf,3 .
[0048] When N=4, P4=-2*P scf,3 -P scf,2 , at this time the fourth optimization parameter corresponding to P4 is P scf,4 .
[0049] Optionally, in step S300, when N is greater than 4, the calculation formula of the Nth preset parameter is: N =P N-1 -P N-2 +P scf,N-1 .P N-1 is the N-1th preset parameter, P N-2 Preset parameters for the N-2th time.
[0050] For example, when N=5, P5=P4-P3+P scf,4 , at this time the fifth optimization parameter corresponding to P5 is P scf,5 .
[0051] For example, when N=6, P6=P5-P4+P scf,5 , at this time the sixth optimization parameter corresponding to P6 is P scf,6 .
[0052] By analogy, the parameter optimization system determines the Nth preset parameter P N When N is large enough, the calculation of the Nth preset parameter is stopped. For example, the value range of N can be 10 4 -10 8 .
[0053] In step S400, the parameter optimization system optimizes the quantum circuit parameters based on the Nth preset parameters of the single-bit gate by a preset optimization method to obtain target optimization parameters.
[0054] For example, the parameter optimization system responds to the user's setting instruction and sets the Nth preset parameter P of the single-bit gate. N , and use microwave devices to make the hardware efficient. The phase modulation of the single-bit gate in the proposed circuit is -2*P N After that, the parameter optimization system uses the preset optimization method to make the hardware efficiently iterate the parameters in the proposed circuit to obtain the target optimization parameter P scf,N .
[0055] Figure 3 Schematic diagram showing the comparison of parameter optimization in the embodiment of the present application. Figure 3 As shown, the point domain on the black line is the ideal optimal solution parameter. Figure 3 The upper and lower points far from the black line are the initial parameters. Figure 3 The points on the black line or very close to the black line are the initial parameters after being optimized by the above parameter optimization method.
[0056] like Figure 3 It can be seen that the initial parameters optimized by the above parameter optimization method are very close to the optimal solution parameters.
[0057] Figure 4 A schematic diagram showing the comparison of the number of line iterations in an embodiment of the present application is shown. Figure 4 As shown, the horizontal axis is the number of initial parameters (directly related to the number of layers), the vertical axis is the number of iterations of the quantum circuit, L1 is the number of iterations of the quantum circuit in the prior art, and L2 is the number of iterations of the quantum circuit after being optimized by the parameter optimization method of the present application. Figure 4 It can be seen that the number of iterations of the quantum circuit optimized by the parameter optimization method of the present application is significantly reduced. Especially in the process of increasing the number of layers (such as Figure 4 5-9 layers shown in ), the number of iterations of the quantum circuit after optimization by the parameter optimization method of the present application is reduced more significantly.
[0058] Through the above embodiments, the present application obtains the first optimization parameter by setting the first preset parameter, obtains the second optimization parameter by setting the second preset parameter, and obtains the Nth preset parameter according to the first optimization parameter and the second optimization parameter. The present application can optimize the initial parameters of the quantum circuit quickly through the correlation between the N-1th optimization parameter and the N-2th optimization parameter and the Nth preset parameter, and obtain initial parameters that are closer to the ideal value, so that the quantum circuit can quickly obtain the optimal parameters based on fewer iterations, reduce the time consumption of quantum circuit parameter iteration, and significantly improve the computational efficiency of the quantum circuit.
[0059] According to another aspect of the present application, the present application provides a parameter optimization system for a quantum circuit. Figure 5A schematic diagram showing the structure of a parameter optimization system according to an embodiment of the present application is shown.
[0060] According to an example embodiment, Figure 5 As shown, the parameter optimization system 1 may include a parameter optimization module 10 and a parameter configuration module 20 .
[0061] According to an exemplary embodiment, the quantum circuit described in the present application may be a superconducting quantum circuit, such as a hardware-efficient simulated circuit. The following takes the hardware-efficient simulated circuit as an example for exemplary description.
[0062] The parameter optimization module 10 optimizes the quantum circuit parameters based on the first preset parameters of the single-bit gate by a preset optimization method to obtain the first optimized parameters.
[0063] For example, the parameter optimization module 10 responds to the setting instruction of the user, sets the first preset parameter P1 of the single-bit gate, and uses the microwave device to make the phase modulation of the single-bit gate in the hardware efficient proposed circuit be -2*P1. Then, the parameter optimization module 10 iterates the parameters in the hardware efficient proposed circuit through the preset optimization method to obtain the first optimized parameter P scf,1 .
[0064] Exemplarily, the microwave device may be an electronic device operating in the microwave frequency band (frequency range of 300 MHz to 300 GHz), for example, the microwave device may include an arbitrary waveform generator (AWG), an IQ (In-phase / Quadrature) mixer, a filter and a synthesizer, etc., which is not limited in the present application.
[0065] Optionally, the preset optimization method is to optimize quantum circuit parameters using a constrained optimization algorithm.
[0066] For example, the constrained optimization algorithm is the COBYLA (Constrained Optimization BY Linear Approximation) algorithm. COBYLA is an algorithm for solving constrained nonlinear optimization problems. The COBYLA algorithm gradually approaches the optimal solution by constructing a linear approximation of the objective function and the constraints. It performs linear interpolation at N+1 points to form an approximation of the objective function and the constraints, and optimizes these approximations within the trust region.
[0067] Exemplarily, the preset optimization method may also adopt SPSA (Simultaneous Perturbation Stochastic Approximation) or SLSQP (Sequential Least Squares Programming) (an algorithm for solving nonlinear constrained optimization problems), and this application does not impose any restrictions on this.
[0068] According to the exemplary embodiment, the parameter optimization module 10 optimizes the quantum circuit parameters by a preset optimization method based on the second preset parameters of the single-bit gate to obtain the second optimized parameters.
[0069] For example, the parameter optimization module 10 responds to the setting instruction of the user, sets the second preset parameter P2 of the single-bit gate, and uses the microwave device to make the phase modulation of the single-bit gate in the hardware efficient proposed circuit be -2*P2. Then, the parameter optimization module 10 iterates the parameters in the hardware efficient proposed circuit through the preset optimization method to obtain the second optimized parameter P scf,2 .
[0070] According to an example embodiment, the parameter configuration module 20 determines an Nth preset parameter of the single-bit gate based on the first optimization parameter and the second optimization parameter. The Nth preset parameter is related to the N-1th optimization parameter corresponding to the N-1th preset parameter and the N-2th optimization parameter corresponding to the N-2th preset parameter, where N is a positive integer greater than or equal to 3.
[0071] For example, the parameter configuration module 20 responds to the user's setting instruction and configures the first optimization parameter P scf,1 and the second optimization parameter P scf,2 The third preset parameter P3 is determined. Then the parameter optimization module 10 uses microwave devices to make the phase modulation of the single-bit gate in the hardware efficient proposed circuit be -2*P3. Then the parameter optimization module 10 iterates the parameters in the hardware efficient proposed circuit through a preset optimization method to obtain the third optimized parameter P scf,3 .
[0072] For another example, the parameter configuration module 20 responds to the user's setting instruction and configures the second optimization parameter P scf,2 and the third optimization parameter P scf,3 The fourth preset parameter P4 is determined. Then the parameter optimization module 10 uses microwave devices to make the phase modulation of the single-bit gate in the hardware efficient proposed circuit be -2*P4. Then the parameter optimization module 10 iterates the parameters in the hardware efficient proposed circuit through a preset optimization method to obtain the third optimized parameter P scf,4 .
[0073] By analogy, the parameter configuration module 20 optimizes the parameter P according to the N-1th scf,N-1 and the N-2th optimization parameter P scf,N-2 The Nth preset parameter P is determined N When N is large enough, the calculation of the Nth preset parameter is stopped. For example, the value range of N can be 10 4 -10 8 .
[0074] Optionally, when N is less than or equal to 4, the parameter configuration module 20 determines the Nth preset parameter according to the following formula:
[0075] P N =-2*P scf,N-1 -P scf,N-2
[0076] Among them, P N is the Nth preset parameter, P scf,N-1 For the N-1th optimization parameter, P scf,N-2 Optimize parameters for the N-2th step.
[0077] For example, when N=3, P3=-2*P scf,2 -P scf,1 , at this time the third optimization parameter corresponding to P3 is P scf,3 .
[0078] When N=4, P4=-2*P scf,3 -P scf,2 , at this time the fourth optimization parameter corresponding to P4 is P scf,4 .
[0079] Optionally, when N is greater than 4, the parameter configuration module 20 determines the Nth preset parameter according to the following formula:
[0080] P N =P N-1 -P N-2 +P scf,N-1
[0081] Among them, P N-1 is the N-1th preset parameter, P N-2 Preset parameters for the N-2th time.
[0082] For example, when N=5, P5=P4-P3+P scf,4 , at this time the fifth optimization parameter corresponding to P5 is P scf,5 .
[0083] For example, when N=6, P6=P5-P4+P scf,5 , at this time the sixth optimization parameter corresponding to P6 is P scf,6 .
[0084] By analogy, the parameter configuration module 20 determines the Nth preset parameter P N When N is large enough, the calculation of the Nth preset parameter is stopped. For example, the value range of N can be 10 4 -10 8 .
[0085] According to an exemplary embodiment, the parameter optimization module 10 optimizes the quantum circuit parameters based on the Nth preset parameter of the single-bit gate by a preset optimization method to obtain the target optimization parameter.
[0086] For example, the parameter configuration module 20 responds to the user's setting instruction and sets the Nth preset parameter P of the single-bit gate. N , and use microwave devices to make the hardware efficient. The phase modulation of the single-bit gate in the proposed circuit is -2*P N Then the parameter optimization module 10 uses a preset optimization method to iterate the parameters in the hardware efficient proposed circuit to obtain the target optimization parameter P scf,N .
[0087] According to the exemplary embodiment, the initial parameters optimized by the above parameter optimization method are very close to the optimal solution parameters.
[0088] Through the above embodiments, the present application obtains the first optimization parameter by setting the first preset parameter, obtains the second optimization parameter by setting the second preset parameter, and obtains the Nth preset parameter according to the first optimization parameter and the second optimization parameter. The present application can optimize the initial parameters of the quantum circuit quickly through the correlation between the N-1th optimization parameter and the N-2th optimization parameter and the Nth preset parameter, and obtain initial parameters that are closer to the ideal value, so that the quantum circuit can quickly obtain the optimal parameters based on fewer iterations, reduce the time consumption of quantum circuit parameter iteration, and significantly improve the computational efficiency of the quantum circuit.
[0089] According to another aspect of the present application, an electronic device is provided, which includes: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors can implement the parameter optimization method described above.
[0090] According to another aspect of the present application, a non-volatile computer-readable storage medium is provided, wherein a computer program is stored on the storage medium, and when the computer program is executed by a processor, the parameter optimization method described above can be implemented.
[0091] Finally, it should be noted that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Although the present application is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions of the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for optimizing parameters of a quantum circuit, characterized in that: include: Optimizing the quantum circuit parameters by a preset optimization method based on the first preset parameters of the single-bit gate to obtain the first optimized parameters; Optimizing the quantum circuit parameters by a preset optimization method based on the second preset parameters of the single-bit gate to obtain the second optimized parameters; Determining an Nth preset parameter of the single-bit gate based on the first optimization parameter and the second optimization parameter; The Nth preset parameter is related to the N-1th optimization parameter corresponding to the N-1th preset parameter and the N-2th optimization parameter corresponding to the N-2th preset parameter, and N is a positive integer greater than or equal to 3; Based on the Nth preset parameter of the single-bit gate, the quantum circuit parameters are optimized by a preset optimization method to obtain target optimization parameters.
2. The parameter optimization method according to claim 1, characterized in that: Determining the Nth preset parameter of the single-bit gate based on the first optimization parameter and the second optimization parameter includes: When N is less than or equal to 4, the calculation formula of the Nth preset parameter is: P N =-2*P scf,N-1 -P scf,N-2 Among them, P N is the Nth preset parameter, P scf,N-1 is the N-1th optimization parameter, P scf,N-2 Optimize the parameters for the N-2th step.
3. The parameter optimization method according to claim 2, characterized in that: Determining the Nth preset parameter of the single-bit gate based on the first optimization parameter and the second optimization parameter includes: When N is greater than 4, the calculation formula of the Nth preset parameter is: P N =P N-1 -P N-2 +P scf,N-1 Among them, P N-1 is the N-1th preset parameter, P N-2 The N-2th preset parameter.
4. The parameter optimization method according to claim 1, characterized in that: The preset optimization method is to optimize the quantum circuit parameters using a constrained optimization algorithm.
5. A parameter optimization system for a quantum circuit, characterized in that: include: A parameter optimization module, which optimizes the quantum circuit parameters by a preset optimization method based on a first preset parameter of the single-bit gate to obtain a first optimization parameter, and optimizes the quantum circuit parameters by a preset optimization method based on a second preset parameter of the single-bit gate to obtain a second optimization parameter; a parameter configuration module, which determines an Nth preset parameter of the single-bit gate based on the first optimization parameter and the second optimization parameter; wherein the Nth preset parameter is related to an N-1th optimization parameter corresponding to an N-1th preset parameter and an N-2th optimization parameter corresponding to an N-2th preset parameter, and N is a positive integer greater than or equal to 3; The parameter optimization module optimizes the quantum circuit parameters based on the Nth preset parameter of the single-bit gate through a preset optimization method to obtain target optimization parameters.
6. The parameter optimization system according to claim 5, characterized in that: When N is less than or equal to 4, the parameter configuration module determines the Nth preset parameter according to the following formula: P N =-2*P scf,N-1 -P scf,N-2 Among them, P N is the Nth preset parameter, P scf,N-1 is the N-1th optimization parameter, P scf,N-2 Optimize the parameters for the N-2th step.
7. The parameter optimization system according to claim 6, characterized in that: When N is greater than 4, the parameter configuration module determines the Nth preset parameter according to the following formula: P N =P N-1 -P N-2 +P scf,N-1 Among them, P N-1 is the N-1th preset parameter, P N-2 The N-2th preset parameter.
8. The parameter optimization system according to claim 5, characterized in that: The preset optimization method is to optimize the quantum circuit parameters using a constrained optimization algorithm.
9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the parameter optimization method as described in any one of claims 1-4.
10. A non-volatile computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the parameter optimization method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Data processing method and device, equipment and storage medium
CN114897172A
Quantum chip parameter optimization method, storage medium and computer equipment
CN116167315A
Method for determining quantum entanglement entropy, quantum computing system, electronic equipment and storage medium
CN116957089A
Method and device for determining optimal solution of nonlinear programming problem based on quantum circuit
CN118014091A
Quantum circuit optimization method and apparatus, and electronic device, computer-readable storage medium and computer program product
WO2024021819A1
