Method, device, equipment and medium for simulating materials based on quantum neural network
Through methods based on quantum neural networks, the problems of long training time and low computational efficiency in MLXC technology are solved, rapid prediction of material properties is achieved, the prediction accuracy and computational efficiency of electronic structures are improved, and a tool for new material design is provided.
Patent Information
- Application Number
- CN202410884774.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-03
AI Technical Summary
In practical applications, existing machine learning exchange correlation functional (MLXC) technology has problems such as long training time, low computational efficiency, and high demand for expensive computing resources for data acquisition, making it difficult to quickly predict material properties.
Using a method based on quantum neural networks, by initializing the quantum neural network circuit, encoding classical data into quantum states, optimizing circuit parameters to calculate the exchange correlation potential of the material, and simulating the electronic structure properties, using classical computers to predict the physical and thermodynamic properties of the material, Calculate the catalytic efficiency index.
It significantly accelerates the data processing and model training process, improves the prediction accuracy of the electronic structure of materials, provides a powerful tool for the design and development of new materials, improves computing efficiency, and saves resources.
Smart Images

Figure CN118430723B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of quantum computing technology, and in particular to methods, devices, computing equipment and computer-readable storage media based on quantum neural network simulation materials. Background Art
[0002] In the field of materials science and chemistry, Density Functional Theory (DFT) is a widely used computational method that can predict and explain the electronic structure of materials and their related physical and chemical properties. The core of density functional theory is the Kohn-Sham equation, which approximates the electron density of real interacting particles by solving the orbits and energies of non-interacting particles. The Kohn-Sham equation is expressed as follows:
[0003] ;
[0004] Among them, ψ i (r) is the ith Kohn-Sham orbital, V eff (r) is the effective potential, including electron-nucleon attraction potential, electron-electron Coulomb repulsion potential and exchange-correlation potential Vxc (r), ε i is the orbital energy of the ith Kohn-Sham orbital, 2 is the Laplace operator, which represents the kinetic energy operator.
[0005] The exchange-correlation potential is a key part in describing the interaction between electrons. The exchange-correlation potential depends on the electron density, which in turn depends on the Kohn-Sham wave function. Therefore, it cannot be accurately expressed by a simple analytical formula. Currently, a variety of approximate methods have been developed, such as the local density approximation (LDA), the generalized gradient approximation (GGA), and the hybrid functional to calculate V XC Although these approximate methods can provide reasonable calculation results in many cases, they still have certain errors when dealing with certain complex material systems.
[0006] In order to improve the calculation accuracy, the method combining machine learning (ML) technology with DFT has begun to attract attention in recent years. The MLXC (Machine Learning Exchange-Correlation Functional) method uses a machine learning model to approximate the energy of electron interactions. Its basic idea is to learn the laws of electron interactions through training data (usually the results of all-electron DFT calculations) to obtain an approximate expression for electron interactions. This method has high potential in theory to improve calculation accuracy and may become an effective alternative to all-electron DFT.
[0007] However, the MLXC technical solution has some defects in practical applications. First, the training time of machine learning models is usually long, which limits the speed of its application in practical research. Secondly, the model needs to be retrained for each material, resulting in low computational efficiency, especially when material properties need to be predicted quickly. In addition, the training of machine learning models requires a large amount of high-quality data, and the acquisition of this data often requires expensive computing resources. Therefore, there is an urgent need for an improved MLXC technical solution that can overcome the above-mentioned defects. Summary of the invention
[0008] In view of the technical problems existing in the prior art, the present application proposes a method for simulating materials based on quantum neural networks, the method running in a quantum neural network circuit, the method comprising: initializing the circuit parameters θ and the Hartree-Fock initial state | in the quantum neural network circuit ∣ψ And construct the material objective function Ψ target ; Encode classical data x into a quantum state, wherein the classical data x includes information about the initial electronic structure of the material; Input the quantum state data x into a quantum neural network circuit and output a quantum state Ψ QDNN (x,θ); according to the objective function Ψ target and the quantum state Ψ QDNN (x, θ) constructs a loss function, optimizes the circuit parameter θ until the loss function value is less than a set threshold; calculates the exchange-correlation potential of the material according to the optimized quantum neural network circuit; simulates the electronic structure properties of the material according to the exchange-correlation potential of the material; wherein the electronic structure properties include: one or more of: band structure, molecular orbital, electron density, dipole moment and charge distribution.
[0009] The method as described above further comprises: using a feature mapping circuit to encode the classical data x into a quantum state through a unitary operation to obtain a quantum state Ψ(x), wherein Ψ(x) is expressed as: , where Ψ(x) is the quantum state of data x, U(x,θ) is the feature mapping circuit, | n is the initial quantum state; input the quantum state Ψ(x) into the quantum neural network circuit and output the quantum state Ψ QDNN (x,θ), the quantum state Ψ QDNN (x,θ) is expressed as: , where Ψ QDNN (x,θ) is the quantum state, V(θ) is the quantum neural network circuit, and Ψ(x) is the quantum state of the data x.
[0010] The method as described above further includes: reading the quantum bit state output by the optimized quantum neural network circuit and converting it into an output value f(ψ(pi)), wherein pi is the wave function of electron i, and ψ(pi) is the i-th quantum bit state encoding the electron wave function pi; calculating the exchange-correlation potential of the material based on the sum of all output values f(ψ(pi)) of the quantum neural network circuit.
[0011] According to the above method, the loss function is determined by the following formula:
[0012] ; Where L(θ) is the loss function, Ψ target is the objective function of the material, Ψ QDNN (x,θ) is a quantum state.
[0013] The method as described above further comprises: executing a gradient value calculation step: calculating the loss function with respect to the circuit parameter θ old Gradient values in quantum neural network circuits θ L(θ old ),in, θ is the gradient operator, L(θ old ) is the parameter θ old The loss function value; perform the parameter value update step: according to the gradient value θ L(θ old ) and the learning rate α will old Update to θ new ; Repeat the gradient calculation step and the parameter update step until the loss function value is less than the set threshold, and apply the optimized circuit parameter θ to the quantum neural network circuit.
[0014] The method as described above further includes: sending the electronic structure properties of the material to a classical computer; the classical computer predicts the physical properties and thermodynamic properties of the material based on the electronic structure properties, the physical properties including energy gap and catalytic activity, and the thermodynamic properties including stability and phase transition temperature.
[0015] The method as described above further includes: using a classical computer to predict the variation curve of material content, energy gap and / or catalytic activity based on electronic structure properties; obtaining a catalytic activity score and / or energy gap fitness from the variation curve of material content, energy gap and / or catalytic activity; determining the catalytic efficiency index of the material based on the obtained catalytic activity score and / or energy gap fitness and the cost ratio of the material; wherein different weight coefficients are assigned to the catalytic activity score and / or energy gap fitness and the cost ratio.
[0016] According to the above method, the catalytic efficiency index of the material is determined by the following formula:
[0017] CEI = α × A + β × B + γ × C;
[0018] Among them, A is the catalytic activity score, B is the energy gap fitness; C is the cost ratio, α, β and γ are weight coefficients, and α+β+γ=1.
[0019] According to the above method, the energy gap fitness is determined by the following formula:
[0020] B=1-(f b -f a ) / f b ;
[0021] Among them, B is the energy gap adaptation, f a is the actual energy gap, f b is the ideal energy gap.
[0022] According to another aspect of the present application, a device based on quantum neural network simulation material is proposed, comprising: an initialization module for initializing circuit parameters θ and Hartree-Fock initial state | in a quantum neural network circuit ∣ψ And construct the material objective function Ψ target ; an encoding module for encoding classical data x into a quantum state, wherein the classical data x includes one or more of the electron density and the molecular orbital of the material; a quantum neural network module for outputting a quantum state Ψ according to the data x of the quantum state QDNN (x,θ); optimization module, used to calculate the optimal target and the quantum state Ψ QDNN(x,θ) constructs a loss function and optimizes the circuit parameter θ until the loss function value is less than a set threshold; a calculation module is used to calculate the exchange-correlation potential of the material according to the optimized quantum neural network circuit; a simulation module is used to simulate the electronic structure properties of the material according to the exchange-correlation potential of the material; wherein the electronic structure properties include: one or more of: band structure, molecular orbital, electron density, dipole moment and charge distribution.
[0023] According to another aspect of the present application, a computing device is provided, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method of simulating materials based on quantum neural networks as described above is implemented.
[0024] According to another aspect of the present application, a computer-readable storage medium is provided, wherein computer instructions are stored in the computer-readable storage medium. When the computer instructions are executed by a processor, the method for simulating material structures based on quantum neural networks as described above is implemented.
[0025] Compared with the classical neural network model, this application uses the characteristics of quantum neural network circuits to process complex quantum states and nonlinear relationships, which can significantly accelerate the data processing and model training process without the need for targeted training of the neural network model, thereby improving the efficiency of simulating the electronic structure of materials. In addition, compared with the calculation results of traditional neural network models, the electronic structure results of materials simulated in this application have higher prediction accuracy, which provides a powerful tool for the design and development of new materials. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Below, the preferred embodiments of the present application will be further described in detail with reference to the accompanying drawings, wherein:
[0027] Figure 1 This is a flow chart of a method for simulating materials based on quantum neural networks according to an embodiment of the present application.
[0028] Figure 2 It is a flow chart of a method for quantum state encoding of classical data in step S120 according to one embodiment of the present application.
[0029] Figure 3 It is a flow chart of a method for optimizing circuit parameters in step S140 according to an embodiment of the present application.
[0030] Figure 4 It is a flow chart of a method for calculating material exchange-correlation potential in step S150 according to one embodiment of the present application.
[0031] Figure 5It is a flow chart of a method for predicting the physical and thermodynamic properties of materials using a classical computer according to an embodiment of the present application.
[0032] Figure 6 It is a flow chart of a method for calculating a catalytic efficiency index using a classical computer according to one embodiment of the present application.
[0033] Figure 7 It is a schematic diagram of the process of building a hybrid computing architecture of quantum and classical computers according to an embodiment of the present application.
[0034] Figure 8 It is an interactive diagram for calculating material properties based on a hybrid computing architecture of quantum and classical computers according to an embodiment of the present application.
[0035] Fig. 9 It is a schematic diagram of a quantum circuit structure according to an embodiment of the present application.
[0036] Fig.10 This is a graph showing the change in bond length and exchange-correlation potential energy according to an embodiment of the present application.
[0037] Fig.11 1 is an energy gap and catalytic activity curve of a PtNi material according to an embodiment of the present application.
[0038] Fig.12 This is a catalytic activity curve of a PtFe material according to an embodiment of the present application.
[0039] Fig.13 is an energy gap curve diagram of a PtFe material according to an embodiment of the present application.
[0040] Fig.14 It is a schematic diagram of the structure of a quantum neural network simulation material device according to one embodiment of the present application.
[0041] Fig.15 It is a structural principle block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below 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 ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] In the following detailed description, reference may be made to the various specification drawings that are part of the present application and are used to illustrate specific embodiments of the present application. In the accompanying drawings, similar reference numerals describe substantially similar components in different figures. The various specific embodiments of the present application are described below in sufficient detail so that a person of ordinary skill in the art with relevant knowledge and skills in the art can implement the technical solutions of the present application. It should be understood that other embodiments may also be used or structural, logical or electrical changes may be made to the embodiments of the present application.
[0044] In order to overcome some defects of the MLXC technical solution in practical applications, this application proposes a quantum machine learning exchange-correlation functional solution QMLXC (Quantum Machine Learning Exchange-Correlation Functional), which uses the advantages of quantum computing to handle specific types of computing tasks, especially when processing large amounts of data and complex models. It can show advantages such as high efficiency and high simulation accuracy. For example, using quantum computing to calculate macromolecular systems or heavy atom solid-state physical systems can improve computing efficiency and replace part of the density functional DFT, while saving computing power and costs.
[0045] The quantum neural network circuit of this application refers to: distributed quantum neural network circuit (Quantum Distributed Neural Network, QDNN), hereinafter referred to as QDNN. QDNN combines the distributed computing architecture of quantum computing and classical computing, and can handle larger-scale computing tasks. QDNN runs in parallel on multiple quantum processors, and achieves higher computing efficiency and scalability by coordinating and integrating computing results through classical computing resources. It uses the principles of quantum mechanics, such as superposition and entanglement, to process and optimize information.
[0046] The electronic structure of this application refers to: the distribution and arrangement of electrons in an atom, molecule or solid material, and the interactions between them. These electronic properties determine the chemical and physical properties of the material. The main characteristics of the electronic structure properties include: one or more of the band structure, molecular orbital, electron density, dipole moment and charge distribution. Band Structure: describes the allowed energy level of electrons in solid materials. The band structure determines the conductivity and optical properties of the material. Molecular Orbitals: In molecules, single atomic orbitals are mixed to form new molecular orbitals through the interaction between electrons. These molecular orbitals can be bonding orbitals, antibonding orbitals or non-bonding orbitals, which determine the stability and reactivity of molecules. Electron Density: The distribution of electrons in space. Areas with high electron density indicate a high probability of electrons appearing, which is usually related to chemical bonds between atoms. Dipole Moment: describes the uneven distribution of positive and negative charges in molecules. The size and direction of the dipole moment can affect the polarity of the molecule and the interaction between molecules. Charge Distribution: refers to the distribution of electron clouds in atoms or molecules, and whether the centers of positive and negative charges in the electron clouds coincide. The unevenness of charge distribution leads to the formation of dipole moments.
[0047] Energy Gap in this application refers to the difference between two adjacent energy levels in a quantum mechanical system. Energy gap is particularly important in solid-state physics, especially in describing the electronic properties of semiconductors and insulators.
[0048] Catalytic activity in this application refers to the ability of a catalyst to accelerate the rate of a chemical reaction. A catalyst is a substance that accelerates the rate of a chemical reaction but is not consumed at the end of the reaction, and can therefore be reused in multiple reaction cycles.
[0049] The thermodynamic properties of this application refer to the changing rules between the pressure, volume, temperature composition and other thermodynamic functions of a substance in a state of equilibrium. Thermodynamic properties include the stability and phase transition temperature of the material. The stability of a material refers to whether the material tends to undergo chemical changes or phase changes under specific conditions. Stability can be evaluated by the free energy, reaction enthalpy and entropy change of the material. If the free energy of a material is lower than that of another form, it is thermodynamically more stable. The phase transition temperature refers to the temperature at which a substance changes from one phase to another. For example, the phase transition temperatures of water include freezing point (0°C, water turns into ice) and boiling point (100°C, water turns into steam). Other substances also have their own melting points, boiling points, sublimation points and condensation points.
[0050] Figure 1 is a flow chart of a method for simulating materials based on quantum neural networks according to an embodiment of the present application, such as Figure 1 As shown, the method runs in a quantum neural network circuit, and the method includes:
[0051] Step S110, initializing the circuit parameters and Hartree-Fock initial state in the quantum neural network circuit | ∣ψ And construct the material objective function Ψ target ;
[0052] Step S120, encoding classical data x into a quantum state, wherein the classical data x includes initial electronic structure information of the material;
[0053] Step S130, input the quantum state data x into the quantum neural network circuit and output the quantum state Ψ QDNN (x,θ);
[0054] Step S140, according to the objective function Ψ target and the quantum state Ψ QDNN (x, θ) constructs a loss function and optimizes the circuit parameter θ until the loss function value is less than a set threshold;
[0055] Step S150, calculating the exchange-correlation potential of the material according to the optimized quantum neural network circuit;
[0056] Step S160, simulating the electronic structure properties of the material according to the exchange-correlation potential of the material.
[0057] In this application, first, the circuit parameter θ of the quantum neural network is initialized, and the initial state is set using the Hartree-Fock method, namely | ∣ψ At the same time, construct the objective function Ψ target , the objective function represents the ideal result expected from the quantum neural network circuit and provides a clear optimization direction. Secondly, the classical data is converted into quantum state, and the characteristics of quantum computing parallel computing are used to improve the data processing efficiency. Thirdly, the encoded quantum state data x is input into the quantum neural network circuit, and the circuit parameter θ is used to adjust the evolution process of the quantum state, and finally the quantum state Ψ is output. QDNN (x,θ). Then, based on the objective function Ψ target and the quantum state Ψ QDNN(x,θ), construct the loss function. By optimizing the circuit parameter θ, minimize the loss function until its value is less than the set threshold. The loss function optimization process ensures that the output of QDNN gradually approaches the target function, improving the accuracy and robustness of the model. Finally, the exchange-correlation potential of the material is calculated using the optimized QDNN. Accurate simulation of the exchange-correlation potential can significantly improve the accuracy of electronic structure calculations, which helps to better understand and design materials. Furthermore, the electronic structure properties of the material, such as band structure and electron density, can be calculated and simulated based on the exchange-correlation potential. The electronic structure properties are the results of calculation and prediction by quantum neural networks, which reflect the characteristics of the material at the electronic level. The classical data x is the source of information input to the quantum neural network, including the electron density and molecular orbitals of the material. The electronic structure properties are the results calculated by the quantum neural network, including band structure, molecular orbitals, electron density, dipole moment and charge distribution. The relationship between the two is that the classical data provides initial information for the quantum neural network, and after processing, these initial information predicts or simulates more comprehensive electronic structure properties. The electron density and molecular orbitals in the classical data are consistent with the corresponding properties in the predicted results, reflecting the important role of input data in the prediction. The complete prediction of electronic structure properties can provide key information for material performance evaluation and application, and promote the research and development of materials science.
[0058] Compared with the classical neural network model, this application uses the characteristics of quantum neural network circuits to process complex quantum states and nonlinear relationships, which can significantly accelerate the data processing and model training process without the need for targeted training of the neural network model, thereby improving the efficiency of simulating the electronic structure of materials. In addition, compared with the calculation results of the traditional neural network model, the electronic structure results of the materials simulated in this application have the same or even higher prediction accuracy, which provides a powerful tool for the design and development of new materials.
[0059] Figure 2 FIG. 1 is a flow chart of a method for quantum state encoding of classical data in step S120 according to an embodiment of the present application. Figure 2 As shown, the method includes:
[0060] Step S121, using a feature mapping circuit to encode the classical data x into a quantum state Ψ(x) through a unitary operation, where Ψ(x) is expressed as: , where Ψ(x) is the quantum state of data x, U(x,θ) is the feature mapping circuit, | n is the initial quantum state;
[0061] Step S122, input the quantum state Ψ(x) into the quantum neural network circuit and output the quantum state Ψ QDNN(x,θ), the quantum state Ψ QDNN (x,θ) is expressed as: , where Ψ QDNN (x,θ) is the quantum state, V(θ) is the quantum neural network circuit, and Ψ(x) is the quantum state of the data x.
[0062] The present application utilizes a feature mapping circuit to efficiently map classical data to a quantum state through unitary operations (unit matrix operations), and utilizes the superposition and entanglement characteristics of quantum bits to represent complex data. This mapping method can retain and enhance the characteristics of classical data, so that subsequent quantum neural networks can effectively learn and simulate. The quantum neural network of the present application has a powerful representation capability and can capture complex quantum properties that are difficult for classical neural networks to characterize. Utilizing the parallel computing characteristics of quantum computing, the processing and simulation of complex data can be completed in a relatively short time. Classical data x refers to classical physical quantities used as input data in a quantum neural network, which provide initial information about the electronic structure of the material. Classical data x includes one or more of electron density and molecular orbitals. According to one embodiment of the present application, the loss function is determined by the following formula:
[0063] ;
[0064] Among them, L(θ) is the loss function, Ψ target is the objective function of the material, Ψ QDNN (x,θ) is a quantum state.
[0065] This application uses the loss function value to provide a clear optimization direction, and improves the simulation accuracy of the quantum neural network circuit by continuously reducing the loss function value. The smaller the loss function value, the higher the simulation accuracy of the quantum neural network circuit.
[0066] Figure 3 FIG. 1 is a flow chart of a method for optimizing circuit parameters in step S140 according to an embodiment of the present application. Figure 3 As shown, the method includes:
[0067] Step S141, calculating the loss function with respect to the circuit parameter θ old Gradient values in quantum neural network circuits θ L(θ old ),in, θ is the gradient operator, L(θ old ) is the parameter θ old The loss function value of
[0068] Step S142, according to the gradient value θL(θ old ) and the learning rate α will old Update to θ new ;
[0069] Step S143, determining whether the loss function value is less than a set threshold value, if the loss function value is greater than or equal to the set threshold value, executing step S141;
[0070] Step S144 , if the loss function value is less than the set threshold, the optimized circuit parameter θ is applied to the quantum neural network circuit and step 150 is continued.
[0071] Step S141 is a step of calculating the gradient value, and step S142 is a step of updating the parameter value. old The gradient value in the quantum neural network circuit determines the direction and magnitude of the loss function in the parameter space by taking derivatives. The gradient indicates the rising direction of the loss function in the parameter space, and the optimization process will update the parameters in the direction of reducing the loss function. The size of the gradient indicates the magnitude of the parameter adjustment, which helps to select the appropriate step size for optimization. Through the gradient descent method, the value of the loss function is gradually reduced, making the simulation results closer to the target results. The learning rate α controls the magnitude of each parameter update to ensure that the optimization process proceeds smoothly and avoids excessive fluctuations.
[0072] Figure 4 is a flow chart of a method for calculating material exchange-correlation potential in step S150 according to one embodiment of the present application. Figure 4 As shown, the method includes:
[0073] Step S151, reading the quantum bit state output by the optimized quantum neural network circuit and converting it into an output value f(ψ(pi)), where pi is the wave function of electron i, and ψ(pi) is the i-th quantum bit state encoding the electron wave function pi;
[0074] Step S152, calculating the exchange-correlation potential of the material based on the sum of all output values f(ψ(pi)) of the quantum neural network circuit.
[0075] Converting the quantum bit state into an actual output value provides a basis for subsequent calculations and analysis in order to convert the quantum computing results into understandable and specific values, ensuring that the quantum computing results can be effectively used. Sum all the output values f(ψ(pi)) to obtain a comprehensive value, and calculate the exchange-correlation potential of the material based on this comprehensive value. By integrating all the outputs of the quantum neural network, the accuracy of the calculation results is improved, and the consistency and precision of the calculation process are ensured.
[0076] By simulating the electronic structure properties of materials, the chemical and physical properties of materials can be predicted. For example, when the material is a catalyst, the electronic structure properties of the catalyst can be used to predict the activity, energy gap or other thermodynamic properties of the catalyst (such as stability, phase transition temperature), etc. The prediction of the chemical and physical properties of materials based on the electronic structure properties of the material can be completed using a classical computer. Among them, the classical computer can be a supercomputer. The present application provides a hybrid computing resource that integrates quantum computing and supercomputers to achieve a distributed computing architecture that integrates quantum computing and supercomputers, making full use of the advantages of quantum computing and supercomputers to jointly predict the physical and thermodynamic properties of materials, and achieve high efficiency and high precision. The electronic structure determines the strength and mode of interaction between atoms, thereby affecting the chemical stability, mechanical properties and reactivity of the material. For example, the electronic structure can affect the binding energy, electronic state density and band structure of the alloy, which are directly related to the thermodynamic behavior of the material.
[0077] Figure 5 1 is a flow chart of a method for predicting the physical and thermodynamic properties of materials using a classical computer according to an embodiment of the present application. Figure 5 As shown, the method includes:
[0078] Step S510, sending the electronic structure properties of the material to a classical computer;
[0079] Step S520: A classical computer predicts the physical and thermodynamic properties of the material based on the electronic structure properties.
[0080] Among them, physical properties include energy gap and catalytic activity, and thermodynamic properties include stability and phase transition temperature.
[0081] Using the above method to predict the physical and thermodynamic properties of new materials can give full play to the respective advantages of quantum computing and classical computing, and provide an efficient and accurate prediction solution for the properties of new materials. This method not only improves the accuracy and efficiency of prediction, but also speeds up the entire process from research and development to application of new materials.
[0082] Figure 6 is a flow chart of a method for calculating the catalytic efficiency index using a classical computer according to one embodiment of the present application. Figure 6 As shown, the method includes:
[0083] Step S610, a classical computer predicts a change curve of material content and energy gap and / or catalytic activity according to electronic structure properties;
[0084] Step S620, obtaining a catalytic activity score and / or an energy gap fitness from a curve of a change in material content and an energy gap and / or a catalytic activity;
[0085] Step S630, determining the catalytic efficiency index of the material according to the obtained catalytic activity score and / or energy gap fitness and the cost ratio of the material.
[0086] Therein, different weight coefficients are assigned to the catalytic activity score and / or the energy gap fitness and the cost ratio.
[0087] The curve of the change of material content, energy gap and / or catalytic activity reflects the impact of changes in material composition on its performance. It can quickly and intuitively obtain the relationship between material content and performance, and can fully understand the performance of new materials under different compositions, providing reliable data support for selecting the best ratio. The catalytic activity score reflects the catalytic efficiency of the material, which can be calculated based on the catalytic reaction rate, conversion rate, etc. measured experimentally or theoretically calculated. The energy gap fitness is used to measure the degree of match between the material energy gap and the ideal state. The cost ratio is the ratio of the cost of the new material to the total cost.
[0088] Determining the catalytic efficiency index of new materials using the catalytic activity score and / or energy gap fitness and the cost ratio of new materials can help select materials that are both high-performance and economical, providing optimization solutions for industrial applications.
[0089] According to one embodiment of the present application, the catalytic efficiency index of the material is determined by the following formula:
[0090] CEI = α × A + β × B + γ × C;
[0091] Among them, CEI is the catalytic efficiency index, A is the catalytic activity score, B is the energy gap fitness; C is the cost ratio, α, β and γ are weight coefficients, and α+β+γ=1.
[0092] According to one embodiment of the present application, the energy gap adaptation is determined by the following formula:
[0093] B=1-(f b -f a ) / f b ;
[0094] Among them, B is the energy gap adaptation, f a is the actual energy gap, f b is the ideal energy gap.
[0095] The above describes the implementation methods and advantages of the embodiments of the present application through multiple embodiments. This application describes the specific processing process of the embodiments of the present application in detail with reference to specific examples.
[0096] Figure 7 This is a schematic diagram of the process of building a hybrid computing architecture of quantum and classical computers according to an embodiment of the present application. Figure 7As shown in the figure, to perform distributed computing on quantum computers and supercomputers, you need to use Dask's distributed cluster function to create and use Dask clusters on two machines:
[0097] First, install Dask and distributed packages. Make sure Dask and distributed packages are installed on both machines. If not, you can install them with the following command: pip install dask distributed.
[0098] Then, start the Dask Scheduler on the supercomputer. Run the following command to start the Dask Scheduler: dask-scheduler. This will output the address of the Scheduler, similar to: Schedulerat: tcp: / / 192.168.1.100:8786.
[0099] Next: Start Dask Worker on the quantum computer and supercomputer. On both machines, run the following command to start Dask Worker and connect to the Scheduler on the supercomputer: dask-worker tcp: / / 192.168.1.100:8786. Make sure to replace tcp: / / 192.168.1.100:8786 with the actual Scheduler address.
[0100] Finally, modify the Python code to connect to the remote Scheduler so that the task will be distributed among the workers on the quantum computer and the supercomputer. In the Python code, modify the initialization of the Client to connect to the remote Scheduler: if __name__ == "__main__": # Connect to the remote Dask cluster client = Client("tcp: / / 192.168.1.100:8786") # Use the actual Scheduler address # The rest of the code remains unchanged.
[0101] Note:
[0102] Make sure the quantum computer and supercomputer can access each other on the network and that the Dask port (8786 by default) is not blocked by a firewall.
[0103] If the computational tasks depend on specific Python libraries (such as pyscf or qiskit_nature), these libraries also need to be installed on both machines.
[0104] In actual deployment, you may need to consider factors such as security and resource management. In more complex settings, you may need to use professional cluster management tools such as Kubernetes or YARN.
[0105] Figure 8 This is an interactive diagram of calculating material properties based on a hybrid computing architecture of quantum and classical computers according to an embodiment of the present application. This application uses a hybrid computing architecture of quantum and classical computers (quantum-hyper-convergence distributed computing architecture) to calculate the physical and chemical properties of materials as an example to introduce the working steps of quantum computers and supercomputers.
[0106] Step 1: Use a quantum computer to solve the electronic structure of the material.
[0107] Setting up the environment: Setting up the Qiskit environment on your quantum computer.
[0108] Define the molecule: Use the ElectronicStructureProblem function of Qiskit Nature to define the molecular structure of the platinum alloy catalyst.
[0109] Problem Solving: Solve the electronic structure problem through quantum computing and obtain information about the electronic structure of the alloy.
[0110] The steps to solve the electronic structure are as follows:
[0111] Step 1.1: Initialization:
[0112] Initialize circuit parameters θ and Hartree-Fock initial state | ∣ψ (Assume the system contains n qubits.) Choose a target function Ψtarget for the exchange-correlation energy.
[0113] Step 1.2: Quantum Feature Mapping:
[0114] The input data x is encoded into a quantum state through a feature mapping circuit:
[0115] Ψ(x) =U(x,θ)| n ;
[0116] Among them, U(x,θ) is the feature mapping circuit, parameterized circuit, | n is the initial quantum state, n is the number of quantum bits, and θ is the circuit parameter.
[0117] Step 1.3: Distributed Quantum Neural Network (QDNN):
[0118] The quantum state after feature mapping is converted into output Ψ through a distributed quantum neural network QDNN ; Ψ QDNN It is expressed as:
[0119] ∣Ψ QDNN (x,θ) =V(θ)|Ψ(x) ;
[0120] Among them, QDNN (x,θ) is the quantum state, V(θ) is the parameterized quantum operation of the distributed quantum neural network circuit (e.g., unitary transformation, CNOT gate, etc.), and Ψ(x) is the quantum state of the data x. QDNN (x,θ) is also called the quantum output state, which refers to the quantum state of a quantum system after a quantum operation (such as the transformation of a quantum neural network). It is represented by mathematical symbols: Ψ QDNN (x,θ)=V(θ)Ψ(x)\Psi_{QDNN}(x, \theta) = V(\theta) \Psi(x)Ψ QDNN (x,θ)=V(θ)Ψ(x). Quantum states have the following properties: they represent the state of a quantum system and contain the probability amplitude of all possible information about the system. Complex vectors: they are usually represented as complex vectors and defined in a Hilbert space. Probability distribution: the square norm of a quantum state gives the probability distribution of the system in different states. Interference and entanglement: quantum states can exhibit interference and entanglement phenomena in quantum mechanics.
[0121] Step 1.4: Optimization:
[0122] Optimization through Variational Quantum Eigensolver (VQE): VQE optimization algorithms include: SPSA, COBYLA and Efficientsu2, minimizing the objective function loss:
[0123] ;
[0124] Among them, L(θ) is the loss function, Ψ target is the objective function of the material, Ψ QDNN (x,θ) is the quantum state, represents some appropriate norm, such as the Euclidean norm.
[0125] The circuit parameters are adjusted by calculating the gradient, and the optimal parameters are solved iteratively. For example, parameter optimization is completed by using parameter shift rules or finite difference methods. The formula for updating the parameters is expressed as follows:
[0126] ;
[0127] in, θ is the gradient operator, L(θ old ) is the parameter θ old The loss function value is , and α is the learning rate.
[0128] Step 1.5: Prediction of Electronic Structure Properties:
[0129] Measuring the output of the optimized QDNN-VQE circuit can accurately estimate the exchange-correlation energy. Specifically, the measurement process involves reading the state of the quantum bit and converting it into an output value. For example, if the spin in the Z direction is measured, the output is associated with some characteristics of the electron density or exchange-correlation potential. The result f(ψ(pi)) output by the QDNN-VQE circuit can be used to estimate the exchange-correlation potential Exc. The final energy Exc can be expressed as the sum of the contributions of all electronic states, that is:
[0130] Exc =∑ i f(ψ(pi));
[0131] Where Exc is the exchange-correlation potential, pi is the wave function of the electron, ψ(pi) is the quantum characteristic map that encodes traditional data onto the quantum bit, and f(ψ(pi)) is the conversion output value of the quantum bit.
[0132] The energy function of the exchange-correlation potential is expressed as:
[0133] ;
[0134] Where Exc (θ) is the energy function of the exchange-correlation potential, Hxc is the Hamiltonian of the exchange-correlation energy, and Exc (θ) is expressed by the quantum state Ψ QDNN The expectation value between (x,θ) and the exchange-correlation Hamiltonian Hxc is represented by the expectation value, which can be calculated by the quantum circuit to the quantum state Ψ QDNN (x,θ) is measured.
[0135] Step 1.6: Simulate the following electronic structure properties:
[0136] The exchange-correlation potential is used to simulate one or more of the following electronic structure properties: band structure, molecular orbitals, electron density, dipole moment, and charge distribution.
[0137] Fig. 9 FIG. 1 is a schematic diagram of a quantum circuit structure according to an embodiment of the present application. Fig. 9 As shown, the quantum circuit 900 includes a distributed quantum neural network circuit (QDNN) 910 and a variational quantum characteristic circuit (VQE) 920, and the distributed quantum neural network circuit 910 is electrically connected to the variational quantum characteristic circuit 920. The quantum circuit 900 may include: one or more of an H gate, an RX gate, an RY gate, an RY gate, and a CNOT gate. Fig. 9 The quantum circuit 900 shown includes 6 qubits. Those skilled in the art should understand that the qubits in the quantum circuit 900 can be flexibly adjusted according to the molecular weight of the actual measured material and can include any number of qubits, without limitation herein.
[0138] This application takes lithium hydrogen material as an example, and uses quantum circuit 900 to simulate the electronic structure properties of lithium hydrogen material as shown below:
[0139] === GROUND STATE ENERGY ===
[0140] Electronic ground state energy (Hartree): -8.874531649358
[0141] - computed part: -8.874531649358
[0142] ~ Nuclear repulsion energy (Hartree): 0.992207270475
[0143] > Total ground state energy (Hartree): -7.882324378883
[0144] === MEASURED OBSERVABLES ===
[0145] 0: # Particles: 4.000 S: 0.000 S^2: 0.000 M: 0.000
[0146] === DIPOLE MOMENTS ===
[0147] ~ Nuclear dipole moment (au): [0.0 0.0 3.0235618] 0:
[0149] Electronic dipole moment (au): [0.0 0.0 4.84097975]
[0150] - computed part: [0.0 0.0 4.84097975]
[0151] > Dipole moment (au): [0.0 0.0 -1.81741795] Total: 1.81741795
[0152] (debye): [0.0 0.0 -4.61941522] Total: 4.61941522
[0153] From the above output results, we can see that the ground state energy (GroundStateEnergy): The ground state energy of an electron is the sum of the energies of all electrons in the material system. The value here is -8.874531649358 Hartree.
[0154] The repulsive energy of nucleon interaction is: 0.992207270475 Hartree, which is caused by the repulsion of positive charges between atomic nuclei.
[0155] The total ground state energy is the sum of the electron energy and the nuclear repulsion energy, which is -7.882324378883 Hartree. This value is the total energy of the material, including the contributions of both electrons and nucleons.
[0156] Observables: Particles: 4.000 means there are 4 electrons in the system. S: 0.000, S^2: 0.000, M: 0.000 These values indicate that the total spin quantum number of the system is 0, the spin multiplicity is 1 (singlet), and the total magnetic moment is also 0. This usually means that the system is non-magnetic.
[0157] Dipole Moments: The nuclear dipole moment gives the electric dipole moment of the nuclear charge distribution relative to a reference point (usually the center of mass). Here it is [0.00.03.0235618] atomic units (au). The electronic dipole moment is the sum of the dipole moments of all electrons, here it is [0.00.04.84097975]au. The total dipole moment is the vector sum of the nuclear dipole moment and the electronic dipole moment, here it is [-1.81741795]au, which is converted to Debye units as [-4.61941522]Debye. The magnitude of the total dipole moment is 1.81741795au or 4.61941522Debye, indicating that the system will have a corresponding dipole interaction in the electric field.
[0158] The above data illustrate that the electron energy of lithium hydrogen materials is low, indicating that the system is stable in the ground state; the system is nonmagnetic, spin-paired; and the system has a non-zero electric dipole moment in one direction, which may lead to dipole interactions in an electric field. This information is very important for understanding the chemical reactivity of molecules, interactions, and how they respond in external fields.
[0159] Step 2: Calculation of catalytic properties by classical computers (e.g. supercomputers)
[0160] Prepare data: Transfer the electronic structure data obtained from the quantum computer to the supercomputer.
[0161] Setting up the environment: Setting up the required computational chemistry or materials science software environment (such as VASP, Gaussian, LAMMPS, etc.) on the supercomputer.
[0162] Computational catalytic activity: Density functional theory (DFT) calculations were performed using supercomputing resources to evaluate the catalytic activity and selectivity of the alloy catalysts.
[0163] Thermodynamic properties: Determine the thermodynamic properties of the catalyst, such as stability, phase transition temperature, etc., through computational simulation.
[0164] Step 3: Data analysis and interpretation of results
[0165] Collect data: Organize the results obtained from quantum computing and supercomputing.
[0166] Data Analysis: Analyze and interpret the results to determine the performance indicators of the catalyst.
[0167] Reporting: Prepare a comprehensive report including the electronic structure, activity, selectivity and thermodynamic properties of the catalyst.
[0168] Through the distributed fusion computing method of quantum computers and classical computers, the advantages of quantum computing and classical computing can be combined to achieve accurate and efficient simulation results. The advantages of this solution are verified by outputting simulation results. Taking LiNa battery materials as an example, the physical information of LiNa materials is input into the quantum machine learning model (QMLXC) of the quantum computer and the machine learning model (MLXC) of the classical computer, such as PySCF, and the exchange-correlation potential energy change curve under different bond lengths is output.
[0169] Fig.10 is a graph showing the change in bond length and exchange-correlation potential energy according to an embodiment of the present application. Fig.10 As shown, the curve Figure X The A-axis represents the bond length, and the Y-axis represents the exchange-correlation potential energy. The solid line represents the energy calculated using the QMLXC method, and the dashed line represents the energy calculated using the PySCF method.
[0170] from Fig.10 It can be seen that in the entire range, the two curves almost overlap, which shows that the exchange-correlation potential energy values calculated by QMLCX and PySCF at different bond lengths are consistent, indicating that the calculation accuracy of QMLCX is comparable to that of PySCF. However, the QMLCX model is significantly improved by an order of magnitude in simulation time compared to MLXC, because QMLCX does not need to train the MLXC model separately. This inevitably saves a lot of time and cost. For example, using the MLXC model (classical computer) to calculate the exchange-correlation potential energy change curve of LiNa material at different bond lengths requires training based on the physical information of the LiNa material and then outputting the curve, which takes 1-2 weeks. Using the QMLCX model (a quantum computer with similar performance to a classical computer) to calculate the same exchange-correlation potential energy change curve only takes 1-2 days, greatly shortening the calculation time.
[0171] Fig.11 The energy gap and catalytic activity curve of the PtNi material according to one embodiment of the present application is shown in FIG. The goal is to find an alloy ratio under the condition of reducing the amount of Pt, which can reduce the amount of Pt without reducing the catalytic activity.
[0172] The execution steps are: first, calculate the electronic structure of PtNi alloy by QMLXC according to step 1, then give the electronic result data to the supercomputer, calculate the energy gap and catalytic activity under the electronic structure according to step 2, and output Fig.11 .
[0173] refer to Fig.11, the X-axis represents the percentage of Pt content, and the Y-axis represents the values of catalytic activity and energy gap. Solid line 1: represents catalytic activity, solid line 2: represents energy gap; dotted line 1: represents the regression trend line of catalytic activity, dotted line 2: represents the regression trend line of energy gap.
[0174] Depend on Fig.11 It can be seen that with the increase of Pt content, the catalytic activity generally shows an upward trend, and the energy gap fluctuates at different Pt contents, but the overall trend is also upward. The intersection of dotted line 1 and dotted line 2 represents the balance point between catalytic activity and energy gap. The Pt content corresponding to this intersection is about 0.65. This balance point can be considered as the optimal value of the activity and energy gap of the PtNi alloy catalyst, that is, when the Pt content is about 0.65, a higher catalytic activity and a moderate energy gap can be achieved.
[0175] Of course, this result does not mean that the Pt content of all PtNi alloys is 0.65 when it is the best transition state, because the size of the energy gap is also affected by other factors, such as crystal structure, lattice constant, lattice distortion, electronic interaction in the alloy, surface and interface effects, etc. But basically, if the crystal structure is fixed, then the algorithm can find the optimal ratio of the alloy under this crystal structure, which will greatly accelerate the development of new materials.
[0176] Fig.12 This is a catalytic activity curve of a PtFe material according to an embodiment of the present application. Fig.13 is an energy gap curve diagram of a PtFe material according to an embodiment of the present application. Fig.12 As shown, the X-axis represents the ratio of Pt, the Y-axis represents the catalytic activity, and the broken line represents the catalytic activity under different Pt ratios. As the Pt ratio increases, the catalytic activity shows an overall upward trend.
[0177] exist Fig.13 In the figure, the X-axis represents the ratio of Pt, the Y-axis represents the energy gap, and the broken line represents the energy gap under different Pt ratios. The energy gap has large fluctuations under different Pt ratios, and there is no obvious trend.
[0178] This application uses the QMLXC method to calculate the electronic structure under the distributed computing architecture of quantitative hyper-convergence, and uses supercomputing to calculate the catalytic activity and energy gap of the material, which greatly improves the efficiency. This makes it possible to compare the catalytic effects and cost-effectiveness of different materials and alloys with different proportions of the same material, thereby quickly guiding the development of new materials.
[0179] This application designs a catalytic efficiency index (CEI), which can be used to evaluate the best catalytic material under different material ratios. The catalytic efficiency index can be calculated as follows:
[0180] CEI = α × A + β × B + γ × C;
[0181] Among them, A is the catalytic activity score, B is the energy gap fitness, C is the cost ratio, α, β and γ are weight coefficients, and α+β+γ=1. α, β and γ are weight coefficients used to adjust the relative importance of the catalytic activity score and the energy gap fitness.
[0182] The energy gap fitness is calculated as follows:
[0183] B = 1-(fb -fa) / fb;
[0184] Among them, B is the energy gap adaptation, fa is the actual energy gap, and fb is the ideal energy gap.
[0185] For example, suppose there is a specific catalytic material with an experimentally measured catalytic activity score of 80 (out of 100), an energy gap of 1.8 eV, and an ideal energy gap of 2.0 eV. Set the weights α=0.3, β=0.2, and γ=0.5.
[0186] Catalytic activity score: 80 / 100 = 0.80;
[0187] Energy gap fitness: 1- ((1.8-2.0) / 2.0) = 0.9;
[0188] Cost: ¥ Cost ratio, assuming the cost ratio is 0.6, that is, the proportion of the alloy material cost to the total cost.
[0189] Then CEI = 0.3×0.80+0.2×0.9=0.5+0.6=0.72;
[0190] Therefore, for this catalytic material, the catalytic efficiency index is 0.72. The closer the CEI is to 1, the better the balance between the catalytic activity and the energy gap of the material.
[0191] By comprehensively considering catalytic activity, energy gap and cost, the CEI index can effectively measure and compare the comprehensive performance of different catalytic materials, providing materials scientists and engineers with a tool to make more informed decisions in the process of material design and optimization. In addition to focusing on catalytic activity and energy gap, the catalytic activity score can also consider other factors, such as stability, environmental impact, etc., depending on the specific research objectives and application areas. Furthermore, CEI can be used as an objective function of the optimization algorithm to help researchers quickly identify the most promising materials among a large number of candidate materials. In addition, combined with machine learning and data analysis methods, CEI can also be used to build predictive models, predict the performance of new materials, and guide experimental design.
[0192] Fig.14 Schematic diagram of the structure of a quantum neural network simulation material device according to an embodiment of the present application. Fig.14 As shown, the quantum neural network-based material simulation device 100 includes:
[0193] Initialization module 10, used to initialize the circuit parameters θ and Hartree-Fock initial state in the quantum neural network circuit | ∣ψ And construct the material objective function Ψ target ; Encoding module 20, for encoding classical data x in the classical data storage module into a quantum state, wherein the classical data x includes one or more of the electron density and molecular orbital of the material; quantum neural network module 30, for outputting a quantum state Ψ according to the data x in the quantum state QDNN (x,θ); Optimization module 40, for according to the objective function Ψ target and the quantum state Ψ QDNN (x, θ) constructs a loss function and optimizes the circuit parameter θ until the loss function value is less than a set threshold; a calculation module 50 is used to calculate the exchange-correlation potential of the material according to the optimized quantum neural network circuit; a simulation module 60 is used to simulate the electronic structure properties of the material according to the exchange-correlation potential of the material; wherein the electronic structure properties include: one or more of: energy band structure, molecular orbital, electron density, dipole moment and charge distribution.
[0194] In another aspect, the present invention also provides a computing device, see Fig.15 , Fig.15 1 is a block diagram of the structure principle of an electronic device according to an embodiment of the present invention. Fig.15 As shown, the electronic device includes a processor 601 and a memory 602 storing computer program instructions; when the processor 601 executes the computer program instructions, the method of simulating materials based on quantum neural networks in the aforementioned embodiment is implemented.
[0195] Specifically, the processor 601 may include a central processing unit (CPU) or a graphics processing unit (GPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of an embodiment of the present invention. The memory 602 may include a memory for data or instructions. For example, the memory 602 may be at least one of the following: a hard disk drive (HDD), a read-only memory (ROM), a random access memory (RAM), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, a universal serial bus (USB) drive, or other physical / tangible memory storage device. For another example, the memory 602 includes a removable or non-removable (or fixed) medium. For another example, the memory 602 may be inside or outside the integrated gateway disaster recovery device. The memory 602 may be a non-volatile solid-state memory. In other words, the memory 602 generally includes a tangible (non-transitory) computer-readable storage medium (such as a memory device) encoded with executable instructions, wherein the stored executable instructions are executed by the processor 601 (such as executed by one or more processors), and the method of simulating materials based on quantum neural networks in the embodiment of the present invention can be implemented.
[0196] In one example, Fig.15 The electronic device shown may also include a communication interface 603 and a bus 610. The processor 601, the memory 602, and the communication interface 603 are connected and communicate with each other via the bus 610. The communication interface 603 is mainly used to implement communication between modules, devices, units, and / or devices in the electronic device.
[0197] The bus 610 includes hardware, software or both, and can couple the components of the online data traffic billing device to each other. For example, the bus may include at least one of the following: an accelerated graphics port (AGP) or other graphics bus, an enhanced industrial standard architecture (EISA) bus, a front-side bus (FSB), a hypertransport (HT) interconnect, an industrial standard architecture (ISA) bus, an infinite bandwidth interconnect, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable bus. The bus 610 may include one or more buses. Although the embodiments of the present invention describe or show a specific bus, the embodiments of the present invention may consider any suitable bus or interconnection method.
[0198] On the other hand, an embodiment of the present invention further provides a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the aforementioned method of simulating materials based on quantum neural networks is implemented.
[0199] The flowchart and / or block diagram of the method and system of the embodiment of the present invention are described above by way of example, and various aspects of the related aspects are described. It should be understood that each box or combination thereof in the flowchart and / or block diagram can be implemented by computer program instructions, or by dedicated hardware that performs specified functions or actions, or by a combination of dedicated hardware and computer instructions. For example, these computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to form a machine that enables these instructions executed by such a processor to enable the implementation of the functions / actions specified in each box or combination thereof in the flowchart and / or block diagram. Such a processor can be a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit.
[0200] The functional blocks shown in the structural block diagram of the embodiment of the present invention can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc.; when implemented in software, it is a program or code segment used to perform the required task. The program or code segment can be stored in a memory, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0201] The above embodiments are only used to illustrate the present application, and are not intended to limit the present application. Ordinary technicians in the relevant technical field may make various changes and modifications without departing from the scope of the present application. Therefore, all equivalent technical solutions should also fall within the scope disclosed in the present application.
Claims
1. A method for simulating the electronic structure of a material based on a quantum neural network, characterized in that: The method is run in a quantum neural network circuit, and the method comprises: Initialize the circuit parameters θ and the Hartree-Fock initial state |ψ0> in the quantum neural network circuit and construct the material objective function Ψ target ; Encoding classical data x into a quantum state, wherein the classical data x includes information about the initial electronic structure of the material; Input the classical data x of the quantum state into the quantum neural network circuit and output the quantum state Ψ QDNN (x, θ); according to the objective function Ψ target and the quantum state Ψ QDNN (x, θ) constructs a loss function and optimizes the circuit parameter θ until the loss function value is less than a set threshold; Calculate the exchange-correlation potential of the material based on the optimized quantum neural network circuit; Simulate the electronic structure properties of materials based on their exchange-correlation potential; The electronic structure properties include: one or more of energy band structure, molecular orbital, electron density, dipole moment and charge distribution.
2. The method according to claim 1, characterized in that Further including: The classical data x is encoded into a quantum state Ψ(x) by a unitary operation using a feature mapping circuit, wherein the quantum state Ψ(x) is represented by: |Ψ(x)>=U(x,θ)0> n , where Ψ(x) is the quantum state of the classical data x, U(x, θ) is the characteristic mapping circuit, |0> n is the initial quantum state; Input the quantum state Ψ(x) into the quantum neural network circuit and output the quantum state Ψ QDNN (x, θ), the quantum state Ψ QDNN (x, θ) is expressed as: |ψ QDNN (x, θ)>=V(θ)|ψ(x)>, where, Ψ QDNN (x, θ) is the quantum state, V(θ) is the quantum neural network circuit, and Ψ(x) is the quantum state of the classical data x.
3. The method according to claim 1, characterized in that: Further including: Read the quantum bit state output by the optimized quantum neural network circuit and convert it into an output value f(ψ(pi)), where pi is the wave function of electron i and ψ(pi) is the i-th quantum bit state encoding the electron wave function pi; The exchange-correlation potential of the material is calculated based on the sum of all output values f(ψ(pi)) of the quantum neural network circuit.
4. The method according to claim 1, characterized in that: The loss function is determined by the following formula: L(θ)=‖Ψ target -P QDNN (x,θ)|| 2 ; Among them, L(θ) is the loss function, Ψ target is the objective function of the material, Ψ QDNN (x,θ) is a quantum state.
5. The method according to claim 1, characterized in that Further including: Execute the gradient calculation step: calculate the loss function with respect to the circuit parameter θ old Gradient values in quantum neural network circuits in, is the gradient operator, L(θ old ) is the parameter θ old The loss function value of Execute the parameter value update step: according to the gradient value and learning rate α will old Update to θ new ; Repeat the gradient calculation step and the parameter update step until the loss function value is less than the set threshold, and apply the optimized circuit parameter θ to the quantum neural network circuit.
6. The method according to claim 1, characterized in that Further including: Send the material’s electronic structure properties to a classical computer; The classical computer predicts the physical and thermodynamic properties of materials based on electronic structure properties, the physical properties including energy gap, catalytic activity, and the thermodynamic properties including stability and phase transition temperature.
7. The method according to claim 6, characterized in that Further including: Classical computers predict the variation curves of material content and energy gap and / or catalytic activity based on electronic structure properties; Obtaining a catalytic activity score and / or energy gap fitness from a curve of changes in material content, energy gap and / or catalytic activity; Determining a catalytic performance index of a material based on obtaining a catalytic activity score and / or an energy gap fitness and a cost ratio of the material; Therein, different weight coefficients are assigned to the catalytic activity score and / or the energy gap fitness and the cost ratio.
8. The method according to claim 7, characterized in that The catalytic efficiency index of the material is determined by the following formula: CEI = α × A + β × B + γ × C; Among them, A is the catalytic activity score, B is the energy gap fitness; C is the cost ratio, α, β and γ are weight coefficients, and α+β+γ=1.
9. The method according to claim 7, characterized in that: The energy gap fitness is determined by the following formula: B=1-(f b -f a ) / f b ; Among them, B is the energy gap adaptation, f a is the actual energy gap, f b is the ideal energy gap.
10. A device for simulating the electronic structure of a material based on a quantum neural network, characterized in that: include: Initialization module, used to initialize the circuit parameters θ and Hartree-Fock initial state ∣ψ0> in the quantum neural network circuit and construct the material objective function Ψ target ; An encoding module, for encoding classical data x into a quantum state, wherein the classical data x includes one or more of an electron density and a molecular orbital of a material; A quantum neural network module that outputs a quantum state Ψ based on the classical data x of the quantum state QDNN (x,θ); The optimization module is used to optimize the target and the quantum state Ψ QDNN (x, θ) constructs a loss function and optimizes the circuit parameter θ until the loss function value is less than a set threshold; A calculation module, used to calculate the exchange-correlation potential of the material according to the optimized quantum neural network circuit; A simulation module for simulating the electronic structure properties of materials based on their exchange-correlation potential; The electronic structure properties include: one or more of energy band structure, molecular orbital, electron density, dipole moment and charge distribution.
11. A computing device, characterized in that: include: processor; A memory storing a computer program, which, when executed by a processor, implements the method for simulating the electronic structure of a material based on a quantum neural network as described in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which, when executed by a processor, implement the method for simulating the electronic structure of a material based on a quantum neural network as described in any one of claims 1 to 9.
