A method and device for calculating molecular energy by quantum chemical simulation

By simplifying the molecular energy calculation method of quantum chemical simulation, a parameter configuration interface is provided, including mapping, simulation and optimizer modules, which solves the problem of complex parameter configuration in the existing technology, achieves more efficient calculation of molecular ground state energy, and reduces the cost Professional requirements promote application development.

CN115116552BActive Publication Date: 2024-08-13ORIGIN QUANTUM COMPUTING TECH (HEFEI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110296483.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-19
Publication Date
2024-08-13
Estimated Expiration
2041-03-19

AI Technical Summary

Technical Problem

The calculation of molecular ground state energy in existing quantum chemical simulations involves complicated parameter configurations and is highly professional, which affects the further development of applications.

Method used

Provides a molecular energy calculation method for quantum chemical simulation. By receiving user parameter configuration operations, it displays the parameter configuration interface, including a mapping parameter configuration module, a proposed parameter configuration module and an optimizer parameter configuration module, simplifying parameter configuration and calculating the molecular model. Ground state energy.

Benefits of technology

It reduces the professional requirements of users, simplifies the parameter configuration process, saves time, improves the practicality of calculations, and promotes the development of quantum chemical simulation applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115116552B_ABST
    Figure CN115116552B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for calculating molecular energy of quantum chemical simulation, the method comprising: receiving and responding to a trigger operation of a user for a parameter configuration identifier, displaying a parameter configuration interface corresponding to the parameter configuration identifier, the parameter configuration interface showing a parameter configuration module for calculating the ground state energy of a molecular model; receiving and responding to a parameter configuration operation for the parameter configuration module, configuring the parameters corresponding to the parameter configuration operation in the parameter configuration module, and displaying the configured parameters in a preset form; receiving and responding to an energy calculation operation for a target molecular model, and calculating the ground state energy corresponding to the target molecular model according to the various parameters configured in the current parameter configuration interface. By using the embodiments of the present invention, support can be provided for the realization of quantum chemical simulation calculations, and technically related parameters can be centrally displayed, the configuration is simple, time is saved, the professional requirements of users are reduced, and the practicality is strong.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of quantum computing, and in particular to a method and device for calculating molecular energy by quantum chemical simulation. Background Art

[0002] Quantum computers are physical devices that follow the laws of quantum mechanics to perform high-speed mathematical and logical operations, store and process quantum information. When a device processes and calculates quantum information and runs quantum algorithms, it is a quantum computer. Quantum computers have become a key technology under research because they have the ability to process mathematical problems more efficiently than ordinary computers. For example, they can speed up the time to crack RSA keys from hundreds of years to a few hours.

[0003] Quantum computing simulation is a simulation that uses numerical calculations and computer science to simulate calculations that follow the laws of quantum mechanics. As a simulation program, it uses the basic laws of quantum bits in quantum mechanics and the high-speed computing power of computers to characterize the spatiotemporal evolution of quantum states.

[0004] In the field of chemical simulation, the atoms in a molecular model have different potential energies at different bond lengths, that is, different energies. The ground state of a molecular model is the lowest energy state of a chemical molecule under normal conditions, and it is also the most stable state. The search for the molecular ground state is also an important part of chemical simulation. The simulation calculation of the ground state energy of quantum chemical molecules is usually analyzed and solved based on quantum chemical theory, but it needs to be combined with quantum computing applications. Due to the limitations and complexity of this field, users are not very professional and applicable in terms of parameter configuration involved in the calculation, which affects the further development of quantum chemical simulation applications. Summary of the invention

[0005] The purpose of the present invention is to provide a method and device for calculating molecular energy of quantum chemical simulation to solve the deficiencies in the prior art. The method and device can provide support for the realization of quantum chemical simulation calculation, centrally display technically related parameters, have simple configuration, save time, reduce the professional requirements of users, have strong practicality, and promote the further development of quantum chemical simulation applications.

[0006] An embodiment of the present application provides a method for calculating molecular energy of quantum chemical simulation, the method comprising:

[0007] Receive and respond to a trigger operation of a user on a parameter configuration identifier, display a parameter configuration interface corresponding to the parameter configuration identifier, and display a parameter configuration module for calculating the ground state energy of a molecular model; wherein the parameter configuration module includes: a mapping parameter configuration module for mapping the Fermi Hamiltonian of the molecular model to a quantum bit, a simulated parameter configuration module for preparing a superposition state corresponding to the energy of the molecular model to be calculated, and an optimizer parameter configuration module for iteratively optimizing the superposition state to reach the ground state;

[0008] receiving and responding to a parameter configuration operation for the parameter configuration module, configuring parameters corresponding to the parameter configuration operation in the parameter configuration module, and displaying the configured parameters in a preset form;

[0009] Receive and respond to the energy calculation operation for the target molecular model, and calculate the ground state energy corresponding to the target molecular model according to the various parameters configured in the current parameter configuration interface.

[0010] Optionally, the mapping parameter configuration module includes: a mapping method, the proposed parameter configuration module includes: a proposed method, and the optimizer parameter configuration module includes: an optimization method and an optimization parameter configuration method.

[0011] Optionally, the receiving and responding to the parameter configuration operation for the parameter configuration module, configuring the parameters corresponding to the parameter configuration operation in the parameter configuration module, and displaying the configured parameters in a preset form, includes:

[0012] When the parameter configuration module is a mapping parameter configuration module, it receives and responds to a mapping mode selection operation for the mapping parameter configuration module, configures a mapping mode corresponding to the mapping mode selection operation, and displays the mapping mode and its corresponding mapping principle.

[0013] Optionally, the receiving and responding to the parameter configuration operation for the parameter configuration module, configuring the parameters corresponding to the parameter configuration operation in the parameter configuration module, and displaying the configured parameters in a preset form, includes:

[0014] When the parameter configuration module is a simulated parameter configuration module, it receives and responds to a simulated mode selection operation for the simulated parameter configuration module, configures the simulated mode corresponding to the simulated mode selection operation, and displays the simulated mode and its corresponding quantum circuit and simulated principle.

[0015] Optionally, the calculating the ground state energy corresponding to the target molecular model according to the parameters configured in the current parameter configuration interface includes:

[0016] Calculate the molecular Hamiltonian of the target molecular model and construct the Fermi Hamiltonian in the form of Fermi operator;

[0017] According to the mapping mode configured by the mapping parameter configuration module, the Fermi Hamiltonian is transformed into a Pauli Hamiltonian in the form of a Pauli operator;

[0018] Initializing the Hatree-Fock state of the target molecular model, evolving the Hatree-Fock state according to the pseudo-mode configured by the pseudo-parameter configuration module, and obtaining the evolved superposition state; wherein the adjustable parameters of the quantum circuit in the pseudo-mode are determined by the optimizer parameter configuration module, and the pseudo-principle in the pseudo-mode corresponds to the Pauli Hamiltonian;

[0019] Calculating the expectation of the evolved superposition state on the molecular Hamiltonian to obtain the energy of the target molecular model in the evolved superposition state;

[0020] Determine whether the energy difference between the superposition state after the current evolution and the superposition state after the previous evolution is less than a preset threshold value, and if so, determine the energy of the superposition state after the current evolution as the ground state energy corresponding to the target molecular model;

[0021] Otherwise, the current adjustable parameters are optimized according to the optimization parameters configured by the optimizer parameter configuration module, and the step of initializing the Hatree-Fock state of the target molecular model is returned to be executed until the ground state energy corresponding to the target molecular model is obtained.

[0022] Another embodiment of the present application provides a molecular energy calculation device for quantum chemical simulation, the device comprising:

[0023] A receiving and displaying module, used to receive and respond to a user's triggering operation on a parameter configuration identifier, and display a parameter configuration interface corresponding to the parameter configuration identifier, wherein the parameter configuration interface displays a parameter configuration module for calculating the ground state energy of a molecular model; wherein the parameter configuration module includes: a mapping parameter configuration module for mapping the Fermi Hamiltonian of the molecular model to a quantum bit, a simulated parameter configuration module for preparing a superposition state corresponding to the energy of the molecular model to be calculated, and an optimizer parameter configuration module for iteratively optimizing the superposition state to reach the ground state;

[0024] A receiving configuration module, used to receive and respond to parameter configuration operations for the parameter configuration module, configure parameters corresponding to the parameter configuration operations in the parameter configuration module, and display the configured parameters in a preset form;

[0025] The receiving calculation module is used to receive and respond to the energy calculation operation for the target molecular model, and calculate the ground state energy corresponding to the target molecular model according to the various parameters configured in the current parameter configuration interface.

[0026] An embodiment of the present application provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute any of the above methods when running.

[0027] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any one of the methods described above.

[0028] Compared with the prior art, the present invention provides a method for calculating molecular energy of quantum chemical simulation, which receives and responds to a trigger operation of a user on a parameter configuration identifier, displays a parameter configuration interface corresponding to the parameter configuration identifier, and displays a parameter configuration module for calculating the ground state energy of a molecular model on the parameter configuration interface; wherein the parameter configuration module includes: a mapping parameter configuration module for mapping the Fermi Hamiltonian of the molecular model to a quantum bit, a proposed parameter configuration module for preparing a superposition state corresponding to the energy of the molecular model to be calculated, and an optimizer parameter configuration module for iteratively optimizing the superposition state to reach the ground state; receives and responds to a parameter configuration operation on the parameter configuration module, configures the parameters corresponding to the parameter configuration operation in the parameter configuration module, and displays the configured parameters in a preset form; calculates the ground state energy corresponding to the target molecular model according to the various parameters configured in the current parameter configuration interface, thereby providing support for the realization of quantum chemical simulation calculations, and by centrally displaying the technically related parameters, the configuration is simple, time is saved, the professional requirements of the user are reduced, the practicability is strong, and the further development of quantum chemical simulation applications is promoted. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A hardware structure block diagram of a computer terminal for a method for calculating molecular energy by quantum chemical simulation provided by an embodiment of the present invention;

[0030] Figure 2 A schematic diagram of a flow chart of a method for calculating molecular energy by quantum chemical simulation provided by an embodiment of the present invention;

[0031] Figure 3 A schematic diagram of a quantum circuit structure corresponding to a proposed method provided in an embodiment of the present invention;

[0032] Figure 4 A schematic diagram of the structure of a molecular energy calculation device for quantum chemical simulation provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0033] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, but should not be construed as limiting the present invention.

[0034] The embodiment of the present invention first provides a method for calculating molecular energy by quantum chemical simulation, which can be applied to electronic devices such as computer terminals, specifically ordinary computers, quantum computers, etc.

[0035] The following describes it in detail by taking running on a computer terminal as an example. Figure 1 The hardware structure block diagram of a computer terminal for a method for calculating molecular energy by quantum chemical simulation provided by an embodiment of the present invention. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the computer terminal may also include a transmission device 106 for communication functions and an input and output device 108. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0036] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / modules corresponding to the molecular energy calculation method of quantum chemical simulation in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0037] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0038] Quantum computing is a new computing model that follows the laws of quantum mechanics to control quantum information units for computing. The most basic principle of quantum computing is the principle of quantum mechanical superposition. The principle of quantum mechanical superposition allows the state of quantum information units to be in a superposition state of multiple possibilities, making quantum information processing more efficient than classical information processing. A quantum system contains several particles that move according to the laws of quantum mechanics. This system is said to be in a certain quantum state in the state space. For chemical molecules, quantum chemical simulation can be realized to provide research support for quantum computing.

[0039] It should be noted that a true quantum computer is a hybrid structure, which consists of two parts: one part is a classical computer, which is responsible for performing classical calculations and control; the other part is a quantum device, which is responsible for running quantum programs and thus realizing quantum computing. A quantum program is a sequence of instructions written in a quantum language such as QRunes that can be run on a quantum computer, which supports quantum logic gate operations and ultimately realizes quantum computing. Specifically, a quantum program is a sequence of instructions that operate quantum logic gates in a certain sequence.

[0040] In practical applications, due to the limitations of the development of quantum device hardware, quantum computing simulation is usually required to verify quantum algorithms, quantum applications, etc. Quantum computing simulation is the process of simulating the operation of quantum programs corresponding to specific problems using a virtual architecture (i.e., quantum virtual machine) built with the resources of ordinary computers. Usually, it is necessary to build a quantum program corresponding to a specific problem. The quantum program referred to in the embodiment of the present invention is a program written in a classical language to characterize quantum bits and their evolution, in which quantum bits, quantum logic gates, etc. related to quantum computing are represented by corresponding classical codes.

[0041] Quantum circuits, as a manifestation of quantum programs, are also called quantum logic circuits. They are the most commonly used general quantum computing model. They represent circuits that operate on quantum bits in an abstract concept. They are composed of quantum bits, circuits (timelines), and various quantum logic gates. Finally, the results often need to be read out through quantum measurement operations.

[0042] Unlike traditional circuits that are connected by metal wires to transmit voltage or current signals, in quantum circuits, the circuits can be seen as connected by time, that is, the state of the quantum bit evolves naturally over time, following the instructions of the Hamiltonian operator until it encounters a logic gate and is operated.

[0043] A quantum program as a whole corresponds to a total quantum circuit. The quantum program described in the present invention refers to the total quantum circuit, wherein the total number of quantum bits in the total quantum circuit is the same as the total number of quantum bits in the quantum program. It can be understood that a quantum program can be composed of a quantum circuit, measurement operations on quantum bits in the quantum circuit, registers for storing measurement results, and control flow nodes (jump instructions). A quantum circuit can contain dozens, hundreds, or even thousands of quantum logic gate operations. The execution process of a quantum program is the process of executing all quantum logic gates in a certain time sequence. It should be noted that the time sequence is the time order in which a single quantum logic gate is executed.

[0044] It should be noted that in classical computing, the most basic unit is the bit, and the most basic control mode is the logic gate, which can achieve the purpose of controlling the circuit through the combination of logic gates. Similarly, the way to process quantum bits is quantum logic gates. Using quantum logic gates, quantum states can evolve. Quantum logic gates are the basis of quantum circuits. Quantum logic gates include single-bit quantum logic gates, such as Hadamard gates (H gates, Hadamard gates), Pauli-X gates (X gates), Pauli-Y gates (Y gates), Pauli-Z gates (Z gates), RX gates, RY gates, RZ gates, etc.; two-bit or multi-bit quantum logic gates, such as CNOT gates, CR gates, CZ gates, iSWAP gates, Toffoli gates, etc. Quantum logic gates are generally represented by unitary matrices, which are not only matrix forms, but also operations and transformations. The effect of general quantum logic gates on quantum states is calculated by multiplying the unitary matrix on the left by the matrix corresponding to the right vector of the quantum state.

[0045] See also Figure 2 , Figure 2 A schematic flow chart of a method for calculating molecular energy by quantum chemical simulation provided by an embodiment of the present invention may include the following steps:

[0046] S201, receiving and responding to a trigger operation of a user on a parameter configuration identifier, displaying a parameter configuration interface corresponding to the parameter configuration identifier, wherein the parameter configuration interface displays a parameter configuration module for calculating the ground state energy of a molecular model;

[0047] Specifically, the parameter configuration mark can be a text mark or a graphic mark, and the trigger operation can be a click operation, etc. For example, the user can click the parameter configuration mark on the main interface of the quantum chemistry simulation application, and the corresponding parameter configuration interface is displayed on the secondary interface. The parameter configuration module for calculating the ground state energy of the molecular model is displayed on the parameter configuration interface. The parameter configuration module can include technically related sub-modules, and the related parameters in the sub-modules are displayed together to facilitate user configuration and calculation.

[0048] Specifically, the submodules may include but are not limited to: a mapping parameter configuration module for mapping the Fermi Hamiltonian of a molecular model (including its anti-commutation relation) to quantum bits, a hypothetical parameter configuration module for preparing a superposition state corresponding to the energy of the molecular model to be calculated, and an optimizer parameter configuration module for iteratively optimizing the superposition state to reach the ground state.

[0049] The molecular model can be considered as the molecular structure modeling for which the user wants to calculate the ground state energy, including, for example, the type of atoms, number of atoms, atomic coordinates, charge and spin multiplicity, etc., that make up the chemical molecule.

[0050] S202, receiving and responding to a parameter configuration operation for the parameter configuration module, configuring parameters corresponding to the parameter configuration operation in the parameter configuration module, and displaying the configured parameters in a preset form;

[0051] Specifically, the mapping parameter configuration module may include: mapping mode, the proposed parameter configuration module may include: proposed mode, and the optimizer parameter configuration module may include: optimization method, optimization parameter configuration mode, and the like.

[0052] When the targeted parameter configuration module is a mapping parameter configuration module, it can receive and respond to a mapping mode selection operation for the mapping parameter configuration module, configure a mapping mode corresponding to the mapping mode selection operation, and display the mapping mode and its corresponding mapping principle.

[0053] Exemplarily, mapping methods include: Jordan-Wigner transform (JW transform), Parity transform, Bravyi-Kitaev transform (BK transform), SegmentParity transform, and the like.

[0054] Those skilled in the art can understand that the mapping principle corresponding to each mapping mode may include: a state mapping principle and an operator mapping principle.

[0055] For example, for the JW transformation, the displayed state mapping is:

[0056]

[0057] in, represents the computational state of the quantum bit, represents the transformation matrix, represents the occupied state of the fermion system. The operator mapping shown is:

[0058]

[0059] in, represents the raising and lowering operator, j represents the quantum bit number, P represents the parity set, Z P(j) represents a set of Pauli Z matrices acting on the quantum bits belonging to the parity set P, X represents the Pauli X matrix, and Y represents the Pauli Y matrix.

[0060] Equivalently, the operator mapping can also be shown as:

[0061]

[0062]

[0063] in, represents the generation operator, a j represents the annihilation operator, with a j They are collectively called the raising and lowering operators of the fermion system. represents the creation / annihilation operator on the quantum bit, represents the parity operator, and n represents the number of quantum bits.

[0064] The display of state mapping and operator mapping for other transformations is similar to that of JW transformation. Specifically, for Parity transformation, the displayed state mapping can be:

[0065]

[0066] The operator mapping is:

[0067]

[0068] Among them, U represents the update set, that is, the set of quantum bits that need to update the parity, X U(j) represents a set of Pauli X matrices acting on the qubits belonging to the update set.

[0069] For the BK transformation, the displayed state mapping is:

[0070]

[0071] The operator mapping is:

[0072]

[0073] Among them, F represents the flipping set, that is, the set of quantum bits whose occupied states need to be flipped, and P(j)-F(j) means: removing the quantum bits in P(j) that overlap with those in F(j).

[0074] For SP transformation, the displayed state mapping is:

[0075]

[0076] The operator mapping is:

[0077] q j It is the parity bit that records the Parity parity information:

[0078]

[0079] q j When it is a non-parity bit:

[0080]

[0081] When the parameter configuration module targeted is a simulated parameter configuration module, it receives and responds to the simulated mode selection operation for the simulated parameter configuration module, configures the simulated mode corresponding to the simulated mode selection operation, and displays the simulated mode and its corresponding quantum circuit and simulated (ansatz) principle.

[0082] Exemplarily, the proposed methods include: UCC (Unitary Coupled Cluster, unitary coupled cluster operator) and the like, and UCC can be specifically divided into single excitation coupled cluster UCCS and single-double excitation coupled cluster UCCSD.

[0083] Correspondingly, for UCCS and UCCSD, it is assumed that the corresponding quantum circuits are the same, for example Figure 3 shown. Figure 3 is a schematic diagram of a quantum circuit with 4 quantum bits q0, q1, q2, q3, X -π / 2 , X π / 2 The X gate and Y gate parameters are -π / 2 and π / 2 respectively. The icons are the same. Its solid line represents the CNOT gate, Z θ represents a Z gate with parameter θ. The pseudo principle displayed may include: a pseudo formula, for example, a matrix operator U(θ) corresponding to the quantum circuit. For UCC, the corresponding pseudo formula is:

[0084]

[0085] in, That is, P i is a generator, if the electron cluster operator T in UCC = T 1, then this proposed set is called UCCS; if the cluster operator T in UCC = T 1 +T 2 , then this proposed setting is called UCCSD, where T 1 is the single particle excitation operator, T 2 is the two-particle excitation operator. More specifically, in practical applications, T can be understood as the Fermi Hamiltonian.

[0086] When the parameter configuration module is an optimizer parameter configuration module, the configured parameters include but are not limited to: optimization method and its associated parameters, optimization parameter configuration mode. Specifically, the optimization method can be a gradient-independent algorithm such as the Nelder-Mead algorithm or a gradient-dependent algorithm such as the gradient descent method, etc. The optimization parameter configuration mode can be divided into random configuration and custom configuration, which specifically means that the initial value of the parameter θ to be optimized of the quantum logic gate in the corresponding quantum circuit can be determined by random initialization or custom setting.

[0087] For example, a parameter configuration operation for the optimizer parameter configuration module is received from a user, and the optimization method is configured as Nelder-Mead. In the corresponding subsidiary parameters, the number of iterations is set to 200, the number of function calls is set to 200, the variable convergence accuracy is set to 1e-4, the function value convergence accuracy is set to 1e-4 or 1e-6, and the optimization parameter configuration method is selected as random. For different optimization methods, the optimizer parameter configuration module can also include other subsidiary parameters such as learning rate and momentum coefficient.

[0088] It should be emphasized that the above-mentioned mapping methods, simulated methods and optimization methods are merely examples and do not constitute limitations on the present invention. For example, the simulated methods also include HE (Hardware Efficient), SP (Symmetry Preserved), etc.

[0089] S203, receiving and responding to an energy calculation operation for a target molecular model, and calculating the ground state energy corresponding to the target molecular model according to various parameters configured in the current parameter configuration interface.

[0090] Specifically, as described above, different molecular models correspond to the chemical molecules being in different energy states. For example, when a hydrogen molecule is in different energy states, the distances between its two atoms are different, but there must be a distance corresponding to the most stable state, that is, the state with the lowest energy, namely the ground state of the hydrogen molecule. The ground state energy is calculated here.

[0091] For example, a specific calculation method may be as follows:

[0092] S2031, calculating the molecular Hamiltonian of the target molecular model, and constructing the Fermi Hamiltonian in the form of a Fermi operator;

[0093] First, the Hamiltonian of the target molecular model to be calculated is obtained. The Hamiltonian is the sum of the kinetic energy of all particles plus the potential energy of the particles associated with the system. For different situations or numbers of particles, the Hamiltonian is different because it includes the sum of the kinetic energy of the particles and the potential energy function corresponding to this situation, generally represented by H. In quantum mechanics, the physical quantities of classical mechanics become corresponding operators, and the Hamiltonian corresponds to the Hamiltonian operator.

[0094] Specifically, the molecular Hamiltonian H can be calculated based on the parameters of the intrinsic properties of the molecular model, such as molecular coordinates, charge or spin multiplicity, etc., through the chemical open source computing library (quantum chemical computing package). p , and then transform its Hamiltonian using the Fermi operator to obtain the Fermi Hamiltonian H u .

[0095] S2032, transforming the Fermi Hamiltonian into a Pauli Hamiltonian in the form of a Pauli operator according to the mapping mode configured by the mapping parameter configuration module;

[0096] Among them, the Fermi (sub) Hamiltonian is transformed into the Pauli Hamiltonian represented by the Pauli operator through the configured mapping method. For example, for the proposed UCC T is the Hamiltonian represented by the Fermi operator, which needs to be transformed into the Pauli operator form in order to generate the unitary operator based on the Pauli operator. The unitary operator is the basis for constructing the specific quantum circuit corresponding to the proposed setting.

[0097] S2033, initializing the Hatree-Fock state of the target molecular model, evolving the Hatree-Fock state according to the pseudo-mode configured by the pseudo-parameter configuration module, and obtaining an evolved superposition state; wherein the adjustable parameters of the quantum circuit in the pseudo-mode are determined by the optimizer parameter configuration module, and the pseudo-principle is correspondingly associated with the Pauli Hamiltonian;

[0098] For example, the Hatree-Fock state of a hydrogen molecule containing four single-electron spin molecular orbitals and two electrons is represented by the quantum state |0011>, that is, one quantum bit represents one spin molecular orbital, |0> represents an empty orbital, and |1> represents an occupied orbital. By applying a NOT gate to each corresponding bit, |0000> can be initialized to |0011> in the quantum circuit. For any N-electron system containing M spin molecular orbitals, the corresponding Hatree-Fock state can be represented in the same way.

[0099] According to the simulation mode configured by the simulation parameter configuration module, it is assumed that the simulation of UCC From the Hatree-Fock molecular orbital Starting from, we can obtain the superposition state |ψ> by assuming:

[0100]

[0101] in, is the Hatree-Fock state, and the quantum circuit corresponding to the hypothetical method is the hypothetical The specific implementation method is that when constructing the corresponding quantum circuit, after transforming the Fermi Hamiltonian into the Pauli operator form through JW, the asymptotic approximation theorem, Trotter Foluma, can be used to further decompose the Hamiltonian of the Pauli operator into a unitary operator with adjustable parameters.

[0102] By running the corresponding quantum circuit, the Hatree-Fock state can be evolved into a superposition state |ψ>, and the initial values ​​of the adjustable parameters in the quantum circuit are determined by the optimizer parameter configuration module, such as the aforementioned random initialization or custom setting.

[0103] S2034, calculating the expectation of the evolved superposition state on the molecular Hamiltonian to obtain the energy of the target molecular model in the evolved superposition state;

[0104] Specifically, after preparing the superposition state |ψ>, the expectation of the superposition state |ψ> on the molecular Hamiltonian can be calculated using the quantum expectation estimation algorithm.

[0105] Among them, quantum expectation estimation means that the Hamiltonian H of systems such as multi-electron systems, Heisenberg models, and quantum Ising models can be expanded into the sum of multiple Pauli operator forms. Since the observables are linear, when the average energy E of the system is calculated using the following formula:

[0106] E=<ψ * |H|ψ>

[0107] Among them, ψ* is the transposed conjugate of ψ, and ψ* and ψ are orthogonal and normalized. The right side of the equation can also be expanded into the form of the sum of sub-terms. By calculating the expectation of each sub-term and then summing up the expectations, the average energy of the system can be obtained, that is, the energy of the target molecular model in the superposition state after evolution.

[0108] In a specific implementation, a measurement circuit can be constructed to measure the superposition state |ψ> and measure the expected value. The measurement circuit can convert the hydrogen molecule Hamiltonian H calculated by the chemical open source calculation library into pWhen measuring expectation, the method used can be the aforementioned quantum expectation estimation algorithm, that is, first construct the entire molecular Hamiltonian H p The measurement circuits of each sub-item of are used to measure the expected E(i) of each sub-item. Then, the average energy of the molecule in this superposition state is calculated. Here, m represents the number of sub-items.

[0109] S2035, determining whether the difference between the energy in the superposition state after the current evolution and the energy in the superposition state after the previous evolution is less than a preset threshold, and if so, determining the energy in the superposition state after the current evolution as the ground state energy corresponding to the target molecular model;

[0110] Otherwise, the current adjustable parameters are optimized according to the optimization parameters configured by the optimizer parameter configuration module, and the step of initializing the Hatree-Fock state of the target molecular model is returned to be executed until the ground state energy corresponding to the target molecular model is obtained.

[0111] In practical applications, for any experimental state, i.e., superposition state |ψ> (which is a good wave function), when the Hamiltonian of a certain system (such as a multi-electron system) acts on it, the average energy E of the system in this state can be obtained, which is greater than or equal to the ground state energy E of the system. 0 . Keep adjusting the test state until the test state |ψ> is the ground state of the system |ψ 0 >, then the corresponding ground state energy E of the system is 0 .

[0112] Specifically, when the current evolution is the first evolution, the previous evolution does not exist, and the energy in the superposition state after the previous evolution can be assumed to be 0, or the next iteration can be entered directly. When the energy difference is less than the preset threshold, convergence is not reached. At this time, according to the optimization method, the number of function calls (the expected function), the variable convergence accuracy, the function value (expected value) convergence accuracy, etc. configured by the optimizer parameter configuration module, the optimization method is called to optimize the adjustable parameters of the quantum circuit in the proposed setting, update the optimized parameters, and return to the step of executing S2033 until the energy difference of a certain evolution is less than the preset threshold, and the energy in the superposition state after the evolution is determined as the ground state energy corresponding to the target molecular model. Among them, the preset threshold can be set according to actual needs and can be consistent with the configured function value convergence accuracy.

[0113] It can be seen that by receiving and responding to the user's trigger operation on the parameter configuration identifier, the parameter configuration interface corresponding to the parameter configuration identifier is displayed, and the parameter configuration interface shows a parameter configuration module for calculating the ground state energy of the molecular model; wherein the parameter configuration module includes: a mapping parameter configuration module for mapping the Fermi Hamiltonian of the molecular model to a quantum bit, a proposed parameter configuration module for preparing a superposition state corresponding to the energy of the molecular model to be calculated, and an optimizer parameter configuration module for iteratively optimizing the superposition state to reach the ground state; receiving and responding to the parameter configuration operation on the parameter configuration module, configuring the parameters corresponding to the parameter configuration operation in the parameter configuration module, and displaying the configured parameters in a preset form; according to the various parameters configured in the current parameter configuration interface, the ground state energy corresponding to the target molecular model is calculated, thereby providing support for the realization of quantum chemical simulation calculations, and by centrally displaying the technically related parameters, the configuration is simple, time is saved, the user's professional requirements are reduced, the practicability is strong, and the further development of quantum chemical simulation applications is promoted.

[0114] See also Figure 4 , Figure 4 A schematic diagram of a molecular energy calculation device for quantum chemical simulation provided by an embodiment of the present invention, and Figure 2 Corresponding to the process shown, the device includes:

[0115] A receiving and displaying module 401 is used to receive and respond to a trigger operation of a user on a parameter configuration identifier, and to display a parameter configuration interface corresponding to the parameter configuration identifier, wherein the parameter configuration interface displays a parameter configuration module for calculating the ground state energy of a molecular model; wherein the parameter configuration module includes: a mapping parameter configuration module for mapping the Fermi Hamiltonian of the molecular model to a quantum bit, a simulated parameter configuration module for preparing a superposition state corresponding to the energy of the molecular model to be calculated, and an optimizer parameter configuration module for iteratively optimizing the superposition state to reach the ground state;

[0116] A receiving configuration module 402 is used to receive and respond to a parameter configuration operation for the parameter configuration module, configure the parameters corresponding to the parameter configuration operation in the parameter configuration module, and display the configured parameters in a preset form;

[0117] The receiving calculation module 403 is used to receive and respond to the energy calculation operation for the target molecular model, and calculate the ground state energy corresponding to the target molecular model according to the various parameters configured in the current parameter configuration interface.

[0118] Specifically, the mapping parameter configuration module includes: mapping mode, the proposed parameter configuration module includes: proposed mode, and the optimizer parameter configuration module includes: optimization method and optimization parameter configuration mode.

[0119] Specifically, the receiving configuration module is specifically used to:

[0120] When the parameter configuration module is a mapping parameter configuration module, it receives and responds to a mapping mode selection operation for the mapping parameter configuration module, configures a mapping mode corresponding to the mapping mode selection operation, and displays the mapping mode and its corresponding mapping principle.

[0121] Specifically, the receiving configuration module is specifically used to:

[0122] When the parameter configuration module is a simulated parameter configuration module, it receives and responds to a simulated mode selection operation for the simulated parameter configuration module, configures the simulated mode corresponding to the simulated mode selection operation, and displays the simulated mode and its corresponding quantum circuit and simulated principle.

[0123] Specifically, the receiving and calculating module is specifically used for:

[0124] Calculate the Fermi Hamiltonian in the form of the Fermi operator of the target molecular model;

[0125] According to the mapping mode configured by the mapping parameter configuration module, the Fermi Hamiltonian is transformed into a Pauli Hamiltonian in the form of a Pauli operator;

[0126] Initializing the Hatree-Fock state of the target molecular model, evolving the Hatree-Fock state according to the simulated mode configured by the simulated parameter configuration module, and obtaining the evolved superposition state; wherein the adjustable parameters of the quantum circuit in the simulated mode are determined by the optimizer parameter configuration module;

[0127] Calculating the expectation of the evolved superposition state on the Pauli Hamiltonian to obtain the energy of the target molecular model in the evolved superposition state;

[0128] Determine whether the energy difference between the superposition state after the current evolution and the superposition state after the previous evolution is less than a preset threshold value, and if so, determine the energy of the superposition state after the current evolution as the ground state energy corresponding to the target molecular model;

[0129] Otherwise, the current adjustable parameters are optimized according to the optimization parameters configured by the optimizer parameter configuration module, and the step of initializing the Hatree-Fock state of the target molecular model is returned to be executed until the ground state energy corresponding to the target molecular model is obtained.

[0130] It can be seen that by receiving and responding to the user's trigger operation on the parameter configuration identifier, the parameter configuration interface corresponding to the parameter configuration identifier is displayed, and the parameter configuration interface shows a parameter configuration module for calculating the ground state energy of the molecular model; wherein the parameter configuration module includes: a mapping parameter configuration module for mapping the Fermi Hamiltonian of the molecular model to a quantum bit, a proposed parameter configuration module for preparing a superposition state corresponding to the energy of the molecular model to be calculated, and an optimizer parameter configuration module for iteratively optimizing the superposition state to reach the ground state; receiving and responding to the parameter configuration operation on the parameter configuration module, configuring the parameters corresponding to the parameter configuration operation in the parameter configuration module, and displaying the configured parameters in a preset form; according to the various parameters configured in the current parameter configuration interface, the ground state energy corresponding to the target molecular model is calculated, thereby providing support for the realization of quantum chemical simulation calculations, and by centrally displaying the technically related parameters, the configuration is simple, time is saved, the user's professional requirements are reduced, the practicability is strong, and the further development of quantum chemical simulation applications is promoted.

[0131] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0132] Specifically, in this embodiment, the above storage medium may be configured to store a computer program for performing the following steps:

[0133] S1, receiving and responding to a trigger operation of a user on a parameter configuration identifier, displaying a parameter configuration interface corresponding to the parameter configuration identifier, wherein the parameter configuration interface displays a parameter configuration module for calculating the ground state energy of a molecular model; wherein the parameter configuration module includes: a mapping parameter configuration module for mapping the Fermi Hamiltonian of the molecular model to a quantum bit, a simulated parameter configuration module for preparing a superposition state corresponding to the energy of the molecular model to be calculated, and an optimizer parameter configuration module for iteratively optimizing the superposition state to reach the ground state;

[0134] S2, receiving and responding to a parameter configuration operation for the parameter configuration module, configuring parameters corresponding to the parameter configuration operation in the parameter configuration module, and displaying the configured parameters in a preset form;

[0135] S3, receiving and responding to the energy calculation operation for the target molecular model, and calculating the ground state energy corresponding to the target molecular model according to the various parameters configured in the current parameter configuration interface.

[0136] Specifically, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0137] An embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0138] Specifically, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0139] Specifically, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0140] S1, receiving and responding to a trigger operation of a user on a parameter configuration identifier, displaying a parameter configuration interface corresponding to the parameter configuration identifier, wherein the parameter configuration interface displays a parameter configuration module for calculating the ground state energy of a molecular model; wherein the parameter configuration module includes: a mapping parameter configuration module for mapping the Fermi Hamiltonian of the molecular model to a quantum bit, a simulated parameter configuration module for preparing a superposition state corresponding to the energy of the molecular model to be calculated, and an optimizer parameter configuration module for iteratively optimizing the superposition state to reach the ground state;

[0141] S2, receiving and responding to a parameter configuration operation for the parameter configuration module, configuring parameters corresponding to the parameter configuration operation in the parameter configuration module, and displaying the configured parameters in a preset form;

[0142] S3, receiving and responding to the energy calculation operation for the target molecular model, and calculating the ground state energy corresponding to the target molecular model according to the various parameters configured in the current parameter configuration interface.

[0143] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings. The above is only a preferred embodiment of the present invention, but the present invention is not limited to the scope of implementation shown in the drawings. Any changes made according to the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the description and drawings, should be within the protection scope of the present invention.

Claims

1. A method for calculating molecular energy by quantum chemical simulation, characterized in that: The method comprises: Receive and respond to a trigger operation of a user on a parameter configuration identifier, display a parameter configuration interface corresponding to the parameter configuration identifier, and display a parameter configuration module for calculating the ground state energy of a molecular model; wherein the parameter configuration module includes: a mapping parameter configuration module for mapping the Fermi Hamiltonian of the molecular model to a quantum bit, a simulated parameter configuration module for preparing a superposition state corresponding to the energy of the molecular model to be calculated, and an optimizer parameter configuration module for iteratively optimizing the superposition state to reach the ground state; receiving and responding to a parameter configuration operation for the parameter configuration module, configuring parameters corresponding to the parameter configuration operation in the parameter configuration module, and displaying the configured parameters in a preset form; Receive and respond to energy calculation operations for a target molecular model, and obtain the ground state energy corresponding to the target molecular model by iteratively calculating the expectation of the superposition state of the target molecular model on the molecular Hamiltonian of the target molecular model according to the various parameters configured in the current parameter configuration interface, wherein the superposition state of the target molecular model is the Hatree-Fock state of the initialized target molecular model, and the superposition state is obtained by evolving the Hatree-Fock state according to the hypothetical method configured by the hypothetical parameter configuration module.

2. The method according to claim 1, characterized in that The mapping parameter configuration module includes: mapping mode, the proposed parameter configuration module includes: proposed mode, and the optimizer parameter configuration module includes: optimization method and optimization parameter configuration mode.

3. The method according to claim 2, characterized in that The receiving and responding to the parameter configuration operation for the parameter configuration module, configuring the parameters corresponding to the parameter configuration operation in the parameter configuration module, and displaying the configured parameters in a preset form, includes: When the parameter configuration module is a mapping parameter configuration module, it receives and responds to a mapping mode selection operation for the mapping parameter configuration module, configures a mapping mode corresponding to the mapping mode selection operation, and displays the mapping mode and its corresponding mapping principle.

4. The method according to claim 2, characterized in that: The receiving and responding to the parameter configuration operation for the parameter configuration module, configuring the parameters corresponding to the parameter configuration operation in the parameter configuration module, and displaying the configured parameters in a preset form, includes: When the parameter configuration module is a simulated parameter configuration module, it receives and responds to a simulated mode selection operation for the simulated parameter configuration module, configures the simulated mode corresponding to the simulated mode selection operation, and displays the simulated mode and its corresponding quantum circuit and simulated principle.

5. The method according to claim 4, characterized in that The step of calculating the ground state energy corresponding to the target molecular model according to the parameters configured in the current parameter configuration interface includes: Calculate the molecular Hamiltonian of the target molecular model and construct the Fermi Hamiltonian in the form of Fermi operator; According to the mapping mode configured by the mapping parameter configuration module, the Fermi Hamiltonian is transformed into a Pauli Hamiltonian in the form of a Pauli operator; Initializing the Hatree-Fock state of the target molecular model, evolving the Hatree-Fock state according to the pseudo-mode configured by the pseudo-parameter configuration module, and obtaining the evolved superposition state; wherein the adjustable parameters of the quantum circuit in the pseudo-mode are determined by the optimizer parameter configuration module, and the pseudo-principle in the pseudo-mode corresponds to the Pauli Hamiltonian; Calculating the expectation of the evolved superposition state on the molecular Hamiltonian to obtain the energy of the target molecular model in the evolved superposition state; Determine whether the energy difference between the superposition state after the current evolution and the superposition state after the previous evolution is less than a preset threshold value, and if so, determine the energy of the superposition state after the current evolution as the ground state energy corresponding to the target molecular model; Otherwise, the current adjustable parameters are optimized according to the optimization parameters configured by the optimizer parameter configuration module, and the step of initializing the Hatree-Fock state of the target molecular model is returned to be executed until the ground state energy corresponding to the target molecular model is obtained.

6. A molecular energy calculation device for quantum chemical simulation, characterized in that: The device comprises: A receiving and displaying module, used to receive and respond to a user's triggering operation on a parameter configuration identifier, and display a parameter configuration interface corresponding to the parameter configuration identifier, wherein the parameter configuration interface displays a parameter configuration module for calculating the ground state energy of a molecular model; wherein the parameter configuration module includes: a mapping parameter configuration module for mapping the Fermi Hamiltonian of the molecular model to a quantum bit, a simulated parameter configuration module for preparing a superposition state corresponding to the energy of the molecular model to be calculated, and an optimizer parameter configuration module for iteratively optimizing the superposition state to reach the ground state; A receiving configuration module, used to receive and respond to parameter configuration operations for the parameter configuration module, configure parameters corresponding to the parameter configuration operations in the parameter configuration module, and display the configured parameters in a preset form; A receiving calculation module is used to receive and respond to energy calculation operations for a target molecular model, and obtain the ground state energy corresponding to the target molecular model by iteratively calculating the expectation of the superposition state of the target molecular model on the molecular Hamiltonian of the target molecular model according to the various parameters configured in the current parameter configuration interface, wherein the superposition state of the target molecular model is the Hatree-Fock state of the initialized target molecular model, and the superposition state is obtained by evolving the Hatree-Fock state according to the simulated method configured by the simulated parameter configuration module.

7. The device according to claim 6, characterized in that The mapping parameter configuration module includes: mapping mode, the proposed parameter configuration module includes: proposed mode, and the optimizer parameter configuration module includes: optimization method and optimization parameter configuration mode.

8. The device according to claim 7, characterized in that The receiving configuration module is specifically used for: When the parameter configuration module is a mapping parameter configuration module, it receives and responds to a mapping mode selection operation for the mapping parameter configuration module, configures a mapping mode corresponding to the mapping mode selection operation, and displays the mapping mode and its corresponding mapping principle.

9. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 5 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and device for calculating ground state energy of chemical molecules, and computer storage medium

    CN111462825A

  • Full-quantum molecular simulation method based on quantum computer

    CN111599414A