Quantum chemistry calculation program, method for quantum chemistry calculation, and information processor

By implementing tailored convergence criteria for electron density calculations in DFT, the method addresses the computational inefficiencies of SCF, reducing calculation time and maintaining accuracy in large systems.

JP2024115602APending Publication Date: 2024-08-27FUJITSU LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023021304
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-15
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The computational burden of density functional theory (DFT) calculations, particularly due to the large number of electron density calculations required by the self-consistent field (SCF) method, leads to excessive calculation time and potential non-convergence issues when the convergence criterion is not met at all points.

Method used

A quantum chemistry calculation method that determines electron density convergence by setting specific criteria for each point, including both the difference and differential change rate, allowing early termination of iterations when any point meets the criteria, and dividing the calculation space into subspaces with tailored convergence criteria for each.

Benefits of technology

This approach reduces electron density calculation time and minimizes the number of SCF iterations, maintaining calculation accuracy by ensuring convergence is met without unnecessary repetitions, especially in large systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024115602000001_ABST
    Figure 2024115602000001_ABST
Patent Text Reader

Abstract

To reduce a calculation time of an electronic density.SOLUTION: An information processor 10 repeatedly calculates an electronic density of each of a plurality of dots in a space 2 in which a material exists by the self-consistent field method. The information processor 10 determines whether or not a plurality of index values based on the calculated electronic density satisfy their respective convergence determination references of each of the plurality of index values every time an electronic density is calculated for each dot. The information processor 10 terminates the repeated calculation of the electronic density if at least one of the index values satisfies the convergence determination reference for each dot.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a quantum chemical calculation program, a quantum chemical calculation method, and an information processing device. [Background technology]

[0002] In recent years, in the field of materials development, materials informatics (hereinafter referred to as MI) has been progressing worldwide as a data-driven research and development initiative aimed at shortening research and development time and reducing costs. Accumulation of high-quality materials data is important for MI. Therefore, efficient data accumulation through simulations such as quantum chemistry in addition to experiments is expected.

[0003] One of the main calculation methods in quantum chemistry is the density functional theory (DFT). In DFT, the electron density of the target substance is first calculated using the self-consistent field (SCF) method. Then, physical quantities that indicate the state of the substance (such as total energy) are calculated based on the obtained electron density.

[0004] As a DFT-related technology, for example, a method of calculating electronic states has been proposed that starts from an existing approximation model and, according to the variational principle of the density functional variation method given in the model space, explores multiple calculation paths to arrive at the physical properties indicated by the exact solution in a finite number of calculation procedures. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] International Publication No. 2012 / 023563 Summary of the Invention [Problem to be solved by the invention]

[0006] If the number of atoms is N (N is a natural number), the computational complexity of DFT is O(N3 ) and the larger the system to be calculated, the greater the amount of calculation becomes. One of the reasons why the amount of calculation required for DFT becomes so large is the large number of iterations required to calculate the electron density using the SCF method.

[0007] In the SCF method, the electron density of each of multiple points (coordinates) set in the space to be analyzed is repeatedly calculated. The SCF calculation is judged to have converged when the convergence criteria for the electron density are met at all points. Therefore, if the convergence conditions are not met at least at some points, the SCF calculation will not converge, and the calculation time will be extended.

[0008] In one aspect, the present invention aims to reduce the calculation time of electron density. [Means for solving the problem]

[0009] In one proposal, a quantum chemistry calculation program is provided that causes a computer to execute the following processes. The computer repeatedly calculates the electron density at each of a plurality of points in a space in which the substance exists by using a self-consistent field method. Each time the computer calculates the electron density for each of the plurality of points, it determines whether or not a plurality of index values ​​based on the calculated electron density satisfy a convergence criterion for each of the plurality of index values. Then, when at least one of the plurality of index values ​​for each of the plurality of points satisfies the convergence criterion, the computer ends the repeated calculation of the electron density. Effect of the Invention

[0010] According to one embodiment, the calculation time for electron density is reduced. [Brief description of the drawings]

[0011] [Figure 1] FIG. 2 is a diagram illustrating an example of a quantum chemical calculation method according to the first embodiment. [Diagram 2] FIG. 1 illustrates an example of a system configuration. [Diagram 3]FIG. 2 illustrates an example of hardware of a control node. [Figure 4] FIG. 2 illustrates an example of a hardware configuration of a computing node. [Diagram 5] FIG. 13 is a diagram showing the relationship between the magnitude of the electron density and the number of iterations of the SCF calculation until the difference converges. [Figure 6] FIG. 1 shows an example of electron density for each iteration of SCF calculation. [Figure 7] FIG. 13 is a diagram showing the relationship between the difference for each iteration of the SCF calculation and the difference change rate in a subspace with low electron density. [Figure 8] FIG. 13 is a diagram showing an example of convergence determination of electron density for each subspace. [Figure 9] FIG. 2 is a block diagram showing an example of functions realized by the computing system. [Figure 10] 11 is a flowchart illustrating an example of a procedure for energy calculation processing. [Figure 11] FIG. 13 is a diagram illustrating an example of a partial space. [Figure 12] FIG. 13 is a diagram showing an example of a subspace set based on electron density. [Figure 13] 13 is a flowchart illustrating an example of a procedure for a subspace setting process. [Figure 14] FIG. 11 is a diagram illustrating an example of tolerance information. [Figure 15] 1 is a flowchart showing an example of a procedure for SCF calculation processing. [Figure 16] FIG. 13 is a diagram illustrating an example of a speed-up rate. [Figure 17] FIG. 1 is a diagram showing an example of speeding up SCF calculations. [Figure 18] FIG. 13 is a diagram showing a speedup rate when the difference in electron density and the rate of change in difference are used as convergence criteria. [Figure 19] FIG. 1 is a diagram illustrating an example of a wide area search technology service. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, the present embodiment will be described with reference to the drawings. Note that each embodiment can be implemented in combination with a plurality of other embodiments within a range that does not cause inconsistency. First Embodiment The first embodiment is a quantum chemical calculation method that reduces the number of repetitions of SCF calculations when determining the electron density of a substance by SCF calculation, thereby shortening the calculation time for the electron density.

[0013] Fig. 1 is a diagram showing an example of a quantum chemical calculation method according to the first embodiment. Fig. 1 shows an information processing device 10 for implementing the quantum chemical calculation method. The information processing device 10 can implement the quantum chemical calculation method by, for example, executing a quantum chemical calculation program.

[0014] The information processing device 10 includes a storage unit 11 and a processing unit 12. The storage unit 11 is, for example, a memory or a storage device included in the information processing device 10. The processing unit 12 is, for example, a processor or an arithmetic circuit included in the information processing device 10.

[0015] The storage unit 11 stores substance information 1 that indicates a substance to be analyzed. The substance information 1 includes, for example, information on atoms contained in the substance, the bonding state between atoms, the distance between atoms, etc. The substance information 1 also includes, for example, initial values ​​of electron density at multiple points in a space 2 in which the substance exists.

[0016] The processing unit 12 calculates the electron density in the ground state (state with the lowest energy) of the material to be analyzed by DFT based on the material information 1. For example, the processing unit 12 repeatedly calculates the electron density at each of a plurality of points in the space 2 in which the material exists by the self-consistent field (SCF) method. Each time the electron density is calculated for each of the plurality of points, the processing unit 12 determines whether or not a plurality of index values ​​based on the calculated electron density satisfy a convergence criterion for each of the plurality of index values.

[0017] The multiple index values ​​include, for example, a difference between a previous calculation result of the electron density and a current calculation result of the electron density, and a difference change rate indicating the degree of change between a previous calculation result of the electron density difference and a current calculation result of the electron density difference. The convergence criterion for the difference is expressed, for example, by a difference tolerance value. If the difference of the electron density of the point to be judged is equal to or less than the difference tolerance value, the electron density of the point satisfies the convergence criterion for the difference. The convergence criterion for the difference change rate is expressed, for example, by a difference change rate tolerance value. If the difference change rate of the electron density of the point to be judged is equal to or less than the difference change rate tolerance value, the electron density of the point satisfies the convergence criterion for the difference change rate.

[0018] Then, when at least one of the multiple index values ​​for each of the multiple points satisfies the convergence criterion, the processing unit 12 ends the repeated calculation of the electron density. That is, the convergence judgment of the electron density at each point is performed by the logical sum of the convergence judgments of the multiple index values ​​at each point.

[0019] For example, in the case where the multiple index values ​​are the electron density difference and the difference change rate, if at least one of the difference and the difference change rate for each of the multiple points satisfies the convergence criteria, the processing unit 12 determines that the overall electron density has converged and terminates the repeated calculation of the electron density.

[0020] In this way, the processing unit 12 determines that the entire electron density has converged when any of the multiple index values ​​for each of the multiple points satisfies the convergence criterion, and ends the SCF calculation. In other words, for example, even if the electron density difference has not converged for a certain point to be determined, the electron density can be determined to have converged if the electron density difference change rate satisfies the convergence criterion, and this makes it possible to reduce the number of iterations of the SCF calculation compared to when only the electron density difference is used for determination. Reducing the number of iterations of the SCF calculation shortens the calculation time for the electron density.

[0021] For example, at points where the electron density is relatively small, the electron density may repeatedly increase and decrease, making it difficult for the electron density difference to satisfy the convergence criterion. Even if such a point exists, if the difference change rate at that point satisfies the convergence criterion, the SCF calculation can be terminated. Note that even if the electron density at a point with low electron density repeatedly increases and decreases, the effect on the total energy of the material being analyzed is small. Therefore, even if the electron density calculation is terminated before the electron density difference at a point with low electron density satisfies the convergence criterion, the effect on the total energy calculated based on that electron density is small. Therefore, there is little deterioration in the calculation accuracy.

[0022] The processing unit 12 may divide the space 2 to be analyzed into a plurality of subspaces in advance based on the initial value of the electron density. For example, the processing unit 12 classifies each of the plurality of points into one of the plurality of subspaces based on the initial value of the electron density of the plurality of points. In this case, the processing unit 12 calculates a plurality of first index values ​​for the first judgment target point that belongs to a first subspace among the plurality of classified subspaces. Then, the processing unit 12 judges whether or not each of the calculated plurality of first index values ​​satisfies the convergence criterion set for the first subspace to which the first judgment target point belongs, based on the convergence criterion for each of the plurality of index values ​​set for each of the plurality of subspaces.

[0023] In this way, the processing unit 12 divides the space 2 into subspaces and sets a convergence criterion for each subspace, making it possible to, for example, relax the convergence criterion for a subspace that includes points that have a low impact on the total energy compared to the other subspaces.

[0024] In the example in Figure 1, space 2 is divided into three subspaces according to electron density. The first subspace contains points with "low" electron density (points marked "S" in space 2). The second subspace contains points with "medium" electron density (points marked "M" in space 2). The third subspace contains points with "high" electron density (points marked "L" in space 2).

[0025] The convergence criteria for each subspace are shown in the criterion information 3. In the criterion information 3 shown in Fig. 1, the convergence criteria for the difference (difference tolerance) are the same for all subspaces. On the other hand, the convergence criteria for the difference change rate (difference change rate tolerance) are set to a larger value for the subsets that include points with low electron density than for the other subsets. This reduces the number of iterations of the SCF calculation and shortens the calculation time.

[0026] For example, index value calculation result 4 shows an example of the transition of the difference and difference change rate for each SCF calculation for each subspace. In the example of index value calculation result 4, for points in a subspace including points with "low" electron density, the difference does not become equal to or less than the difference tolerance even after five SCF calculations (does not satisfy the convergence criterion). On the other hand, for points in a subspace including points with "low" electron density, the difference change rate calculated in the fifth SCF calculation is equal to or less than the difference change rate tolerance (satisfies the convergence criterion). In other words, the electron density in a subspace including points with low electron density converges after five SCF calculations.

[0027] For points in the subspace that includes points with "medium" electron density, the differential change rate does not become equal to or less than the differential change rate tolerance even after five SCF calculations (convergence criterion is not satisfied). On the other hand, for points in the subspace that includes points with "medium" electron density, the difference calculated in the fifth SCF calculation is equal to or less than the differential change rate tolerance (convergence criterion is satisfied). In other words, the electron density in the subspace that includes points with "medium" electron density converges after five SCF calculations.

[0028] For points in the subspace that contain points with "large" electron density, the differential change rate does not become equal to or less than the differential change rate tolerance even after four SCF calculations (convergence criterion is not satisfied). On the other hand, for points in the subspace that contain points with "large" electron density, the difference calculated in the fourth SCF calculation is equal to or less than the differential change tolerance (convergence criterion is satisfied). In other words, the electron density in the subspace that contains points with "large" electron density converges after four SCF calculations.

[0029] In this way, the processing unit 12 sets an appropriate convergence criterion for the difference and the difference change rate for each subspace, thereby making it possible to perform convergence judgment taking into consideration the difference for each subspace in the transition of the difference or the difference change rate according to the number of iterations of the SCF calculation, and as a result, the number of iterations of the SCF calculation is reduced.

[0030] Furthermore, when the space 2 is divided into a plurality of subspaces, the processing unit 12 can also determine whether or not convergence has occurred for each subspace. For example, the processing unit 12 determines that a first subspace, among the plurality of subspaces, in which at least one of a plurality of index values ​​for each point belonging to the first subspace satisfies the convergence criterion, has converged. Thereafter, the processing unit 12 determines whether or not the convergence criterion is satisfied for points belonging to a second subspace other than the first subspace that has converged. This makes it possible to efficiently perform convergence determination for points in the converged subspace without subsequently calculating index values ​​(difference, difference change value, etc.) and comparing them with the convergence criterion.

[0031] Second Embodiment The second embodiment is a calculation system that shortens the SCF calculation time when the calculation of the molecular state of a substance by DFT is performed by HPC (High-performance Computing).

[0032] 2 is a diagram showing an example of a system configuration. A computing system 30 that realizes HPC has a control node 100 and multiple computing nodes 200a, 200b,... The multiple computing nodes 200a, 200b,... are connected to each other via an interconnect 32 that enables high-speed communication. The interconnect 32 is a network that interconnects processors with each other, for example, by a six-dimensional mesh / torus.

[0033] Each of the calculation nodes 200a, 200b,... is also connected to a control network 31. A control node 100 is further connected to the control network 31. The control node 100 is a computer that issues job execution instructions to the calculation nodes 200a, 200b,...

[0034] The control node 100 is connected to a terminal 40 via a network 20. The terminal 40 is a computer that registers information on jobs to be executed by the computation nodes 200a, 200b, ... in the control node 100 based on a user's operation. The control node 100 instructs the computation nodes 200a, 200b, ... to perform computations using DFT according to instructions from the terminal 40.

[0035] For example, a user can obtain physical quantities such as the total energy of an electronic system defined by DFT by having the calculation nodes 200a, 200b, . . . perform calculations of the state of matter using DFT.

[0036] 3 is a diagram showing an example of hardware of a control node. The entire control node 100 is controlled by a processor 101. A memory 102 and a plurality of peripheral devices are connected to the processor 101 via a bus 109. The processor 101 may be a multiprocessor. The processor 101 is, for example, a central processing unit (CPU), a micro processing unit (MPU), or a digital signal processor (DSP). At least a part of the functions realized by the processor 101 executing a program may be realized by an electronic circuit such as an application specific integrated circuit (ASIC) or a programmable logic device (PLD).

[0037] The memory 102 is used as a main storage device of the control node 100. The memory 102 temporarily stores at least a part of the OS (Operating System) program and application programs to be executed by the processor 101. The memory 102 also stores various data used for processing by the processor 101. As the memory 102, for example, a volatile semiconductor storage device such as a RAM (Random Access Memory) is used.

[0038] The peripheral devices connected to the bus 109 include a storage device 103, a GPU (Graphics Processing Unit) 104, an input interface 105, an optical drive device 106, a device connection interface 107, and network interfaces 108a and 108b.

[0039] The storage device 103 electrically or magnetically writes and reads data to and from a built-in recording medium. The storage device 103 is used as an auxiliary storage device for the control node 100. The storage device 103 stores an OS program, application programs, and various data. Note that, for example, a hard disk drive (HDD) or a solid state drive (SSD) can be used as the storage device 103.

[0040] The GPU 104 is an arithmetic device that performs image processing, and is also called a graphics controller. The GPU 104 is connected to a monitor 21. The GPU 104 displays an image on the screen of the monitor 21 in accordance with an instruction from the processor 101. The monitor 21 may be a display device using an organic EL (Electro Luminescence) display device, a liquid crystal display device, or the like.

[0041] The input interface 105 is connected to the keyboard 22 and the mouse 23. The input interface 105 transmits signals sent from the keyboard 22 and the mouse 23 to the processor 101. Note that the mouse 23 is an example of a pointing device, and other pointing devices can also be used. Examples of other pointing devices include a touch panel, a tablet, a touch pad, and a trackball.

[0042] The optical drive device 106 uses a laser beam or the like to read data recorded on the optical disc 24 or write data to the optical disc 24. The optical disc 24 is a portable recording medium on which data is recorded so that it can be read by reflection of light. The optical disc 24 includes a DVD (Digital Versatile Disc), a DVD-RAM, a CD-ROM (Compact Disc Read Only Memory), a CD-R (Recordable) / RW (ReWritable), etc.

[0043] The device connection interface 107 is a communication interface for connecting peripheral devices to the control node 100. For example, a memory device 25 or a memory reader / writer 26 can be connected to the device connection interface 107. The memory device 25 is a recording medium equipped with a communication function with the device connection interface 107. The memory reader / writer 26 is a device that writes data to the memory card 27 or reads data from the memory card 27. The memory card 27 is a card-type recording medium.

[0044] The network interface 108a is connected to the network 20. The network interface 108a transmits and receives data to and from other computers or communication devices, such as the terminal 40, via the network 20. The network interface 108b is connected to the control network 31. The network interface 108b transmits and receives data to and from the computation nodes 200a, 200b, ... via the control network 31.

[0045] The network interfaces 108a and 108b are wired communication interfaces that are connected by cables to wired communication devices such as switches and routers, etc. Alternatively, the network interfaces 108a and 108b may be wireless communication interfaces that are communicatively connected by radio waves to wireless communication devices such as base stations and access points.

[0046] The control node 100 executes a program recorded in, for example, a computer-readable recording medium to realize the processing function of the second embodiment. The program describing the processing contents to be executed by the control node 100 can be recorded in various recording media. For example, the program to be executed by the control node 100 can be stored in the storage device 103. The processor 101 loads at least a part of the program in the storage device 103 into the memory 102 and executes the program. The program to be executed by the control node 100 can also be recorded in a portable recording medium such as the optical disk 24, the memory device 25, or the memory card 27. The program stored in the portable recording medium becomes executable after being installed in the storage device 103 under the control of, for example, the processor 101. The processor 101 can also directly read and execute the program from the portable recording medium.

[0047] 4 is a diagram showing an example of a hardware configuration of a computing node. The computing node 200a has a CPU / memory unit 201 and a router 202. The CPU / memory unit 201 and the router 202 are connected to each other via a plurality of communication interfaces (NICs) 203. The CPU / memory unit 201 is also connected to a NIC 204 for connection to a control network 31.

[0048] The CPU / memory unit 201 includes a CPU having multiple cores and a memory. A process (a processing execution unit) is generated for each core in the CPU / memory unit 201. When the process for each core of the CPU / memory unit 201 performs synchronous processing with a process in another computing node, the process communicates with the other computing nodes 200b, ... via a router 202.

[0049] The router 202 communicates with adjacent computation nodes in each of the three-dimensional directions, for example. The router 202 transmits data to be transmitted from the CPU / memory unit 201 to another computation node to the adjacent computation node in a direction according to the position of the computation node in the interconnect 32. When the router 202 receives data for a process in the CPU / memory unit 201 from an adjacent computation node, it transmits the data to the CPU / memory unit 201. Furthermore, when the data received from the adjacent computation node is destined for another computation node, the router 202 transmits the data to the adjacent computation node in a direction according to the position of the destination computation node in the interconnect 32.

[0050] The other computation nodes 200b,... have the same hardware configuration as the computation node 200a. The computation nodes 200a, 200b,... having the hardware as shown in Fig. 4 are connected in a mesh / torus manner in three dimensions to form a three-dimensional mesh / torus interconnect 32.

[0051] The processing function of the second embodiment can be realized by the above-described hardware control node 100 and the computation nodes 200a, 200b, etc. The information processing device 10 shown in the first embodiment can also be realized by the same hardware as the control node 100 or the computation node 200a.

[0052] The calculation system 30 calculates physical quantities (such as total energy) that indicate the state of a substance by DFT. In DFT, the electron density is calculated by the SCF method. In the calculation of the electron density by the SCF method, the calculation of the electron density is repeatedly performed until the electron densities at all points arranged in the space or coordinate system converge. As a result, a self-consistent total energy is calculated.

[0053] Here, we will explain why the electron density does not converge and the number of iterations increases in the repeated calculation of the electron density by the SCF method. The criterion for judging whether the electron density at each point has converged is, for example, the difference between the electron density calculated repeatedly and the previous electron density. i The convergence criterion for determining the convergence of can be expressed, for example, by the following equation: Convergence criterion: Δρ(r i )=|ρ(r i )-ρ'(r i )|≦Δρ tolerance Δρ(r i ) is the difference in electron density at the i-th point. ρ(r i ) is the electron density at the i-th point obtained in the last SCF calculation. ρ'(r i ) is the electron density at the i-th point obtained in the previous SCF calculation. The tolerance of Δρ is a preset value.

[0054] In SCF calculations, to judge that the overall electron density has converged, it is required that the convergence criteria be met for all points. However, if there is a point that falls under any of the following (a difficult-to-converge point), the total electron energy may transition to a small fluctuation, and the convergence condition of the SCF calculation (that the overall electron density must converge) may not be met.

[0055] The first difficult convergence point is a point where the effect on the electron energy is small (the electron density is small), but the electron density repeatedly increases and decreases, and the convergence criterion is never satisfied. A second difficult convergence point is a point where the difference continues to change even though the rate of change of the difference (difference change rate) is small, and the convergence criterion is never satisfied.

[0056] When these difficult convergence points exist, it is difficult to determine whether the overall electron density has converged, and the number of iterations of the SCF calculation increases. Such difficult convergence points are often located in spaces with relatively low electron density. The approximate electron density at any point in a substance can be determined from the atomic arrangement and bonding state. For example, the electron density at atomic positions is high, while the electron density at bonding sites is of intermediate magnitude, and the electron density in the regions that represent the molecular shape is low.

[0057] FIG. 5 is a diagram showing the relationship between the magnitude of electron density and the number of iterations of SCF calculation until the difference converges. In the graph 41 shown in FIG. 5, the horizontal axis represents the number of iterations of SCF calculation, and the vertical axis represents the difference in electron density for each SCF calculation. The solid curve 41a in the graph 41 shows the change in the difference in electron density at a point in space where the electron density is low. The dashed curve 41b shows the change in the difference in electron density at a point in space where the electron density is medium. The dashed-dotted curve 41c shows the change in the difference in electron density at a point in space where the electron density is high. The horizontal line 41d in the graph 41 shows the tolerance of the convergence criterion.

[0058] As shown in graph 41, points in space with high electron density meet the convergence criterion early. In contrast, points in space with low electron density require many iterations of SCF calculation before the convergence criterion is met.

[0059] Fig. 6 is a diagram showing an example of electron density for each iteration of the SCF calculation. In the difference calculation result 42 shown in Fig. 6, the difference in electron density for each iteration of the SCF calculation is shown for each magnitude of the electron density at each point. Here, the allowable value Δρ of the difference in electron density is assumed to be "1.0" (Δρ=1.0).

[0060] In the example of difference calculation result 42, at points in a space with low electron density, the convergence criterion is met in the seventh SCF calculation. At points in a space with medium electron density, the convergence criterion is met in the fifth SCF calculation. At points in a space with high electron density, the convergence criterion is met in the fourth SCF calculation. As a result, seven SCF calculations are required until the electron density in the entire space converges.

[0061] Therefore, the calculation system 30 is designed to achieve early convergence for the difficult-to-converge points without deteriorating the calculation accuracy. For example, the calculation system 30 divides a space to be judged for the convergence conditions of the iterative calculation of the SCF method into a plurality of subspaces. Next, the calculation system 30 calculates the difference change rate of the electron density at each point for each subspace. The calculation system 30 sets convergence judgment criteria for the electron density difference and the difference change rate for each divided space. Then, the calculation system 30 judges that the SCF calculation has converged when at least one of the electron density difference or the difference change rate for all points in all subspaces satisfies the convergence judgment criterion.

[0062] In this way, by dividing the space into multiple subspaces according to the electron density and checking the convergence for each subspace, the number of SCF iterations required to satisfy the convergence criteria in all subspaces is reduced, and as a result, the overall DFT calculation time is also reduced.

[0063] The difference change rate is a value that indicates the degree of change between the previous difference and the current difference. The difference change rate can be expressed, for example, by the following formula. Difference change rate = |(this difference - previous difference) ÷ previous difference| Instead of the previous difference, a representative value (average value, median value, etc.) of all the differences obtained in the SCF calculations up to the previous time may be used. The convergence criterion for the difference change rate is set, for example, for each subspace. The convergence criterion is expressed, for example, as the minimum value (tolerance) of the difference change rate at which convergence can be determined. The tolerance indicating the difference change rate of the i-th subspace is set as the DTH. iIn this case, for example, the convergence criteria for the difference change rates are set as "DTH1=5%, DTH2=3%, DTH3=3%."

[0064] 7 is a diagram showing the relationship between the difference for each iteration of the SCF calculation in a subspace with low electron density and the rate of change in the difference. Graph 43 shows the relationship between the iteration number of the SCF calculation and the difference. The horizontal axis of graph 43 is the iteration number, and the vertical axis is the difference. Curve 43a shows the change in the difference of the electron density at a point in the subspace with low electron density. Horizontal line 43b shows the allowable value of the difference that serves as a convergence criterion.

[0065] As shown in graph 43, for points in a subspace with small electron density, the difference gradually decreases in the initial stage d of the SCF calculation, but once the difference decreases to a certain extent, the difference repeatedly increases and decreases before it falls below the convergence criterion. As a result, even if the SCF calculation is repeated up to the maximum number of iterations, the difference may not fall below the convergence criterion. For points where the electron density difference changes as shown in graph 43, once the electron density difference begins to increase and decrease repeatedly, further repeated calculation of the electron density by the SCF calculation cannot be expected to significantly improve the accuracy of the final calculated total energy.

[0066] Graph 44 shows the relationship between the number of iterations of the SCF calculation and the differential change rate. The horizontal axis of graph 44 is the number of iterations, and the vertical axis is the differential change rate. Curve 44a shows the change in the differential change rate of electron density at a point in a subspace where the electron density is low. Horizontal line 44b shows the allowable value of the differential change rate that serves as the convergence criterion.

[0067] As shown in graph 44, the differential change rate of points in the subspace with low electron density decreases as the number of iterations of the SCF calculation increases. Then, before the number of iterations reaches a maximum, the differential change rate becomes equal to or smaller than the convergence criterion.

[0068] In the calculation system 30, whether or not the electron density at each point has converged is determined by the logical sum of the convergence judgment of the difference and the convergence judgment of the difference change rate. Therefore, even if the difference at a certain point is not equal to or less than the convergence judgment criterion, if the difference change rate is equal to or less than the convergence judgment condition, the electron density at that point is determined to have converged.

[0069] As a result, it is possible to determine that convergence has occurred early even at points in a subspace with low electron density, and the number of iterations of the SCF calculation can be reduced. 8 is a diagram showing an example of the convergence judgment of the electron density for each subspace. The difference calculation result 45 shows the difference in the electron density for each iteration of the SCF calculation for each magnitude of the electron density at each point. Here, the allowable value Δρ of the difference in the electron density is assumed to be "1.0".

[0070] The differential change rate of the electron density for each iteration of the SCF calculation is shown for each magnitude of the electron density at each point in the differential change rate calculation result 46. Here, the allowable value Δρ of the differential change rate of the electron density is set to "0.05" in the subspace with "small" electron density, and "0.03" in the subspaces with "medium" and "large" electron density.

[0071] In the example of Figure 8, at the point in the subspace where the electron density is "small", the difference is within the tolerance after seven iterations of the SCF calculation. On the other hand, at the point in the subspace where the electron density is "small", the difference change rate is within the tolerance after five iterations of the SCF calculation. Therefore, the point in the subspace where the electron density is "small" is determined to have converged after five iterations of the SCF calculation.

[0072] In the example of Figure 8, at the point in the subspace with "medium" electron density, the difference is within the tolerance after five iterations of the SCF calculation. On the other hand, at the point in the subspace with "medium" electron density, the difference change rate does not become within the tolerance even after seven iterations of the SCF calculation. In this case, the point in the subspace with "medium" electron density is determined to have converged after five iterations of the SCF calculation.

[0073] In the example of Figure 8, at the point in the subspace where the electron density is "large", the difference is within the tolerance after four repetitions of the SCF calculation. On the other hand, at the point in the subspace where the electron density is "large", the difference change rate does not become within the tolerance even after seven repetitions of the SCF calculation. In this case, the point in the subspace where the electron density is "large" is determined to have converged after four repetitions of the SCF calculation.

[0074] In the example of Figure 8, the number of iterations until the overall electron density by SCF calculation converges is 5 (maximum of small: 5, medium: 5, large: 4). If the criterion related to the differential change rate is not used as the convergence criterion, the number of iterations until the overall electron density by SCF calculation converges is 7. In other words, the number of iterations of SCF calculation can be reduced by applying the criterion related to the differential change rate as the convergence criterion by logical OR.

[0075] 9 is a block diagram showing an example of functions realized by a computing system. The computing system 30 has a memory unit 110, a calculation instruction unit 120, a space division unit 130, and an SCF calculation unit 210. The memory unit 110, the calculation instruction unit 120, and the space division unit 130 are functions possessed by, for example, the control node 100. The SCF calculation unit 210 is a function possessed by, for example, the computation nodes 200a, 200b, ...

[0076] The storage unit 110 stores information about the substance to be calculated (such as the atoms contained therein, known atomic arrangements, etc.). When the calculation instruction unit 120 receives an analysis instruction such as an analysis instruction for the physical properties of a predetermined substance from the terminal 40, it transmits a space division instruction for analyzing the substance to the space division unit 130. The analysis instruction includes, for example, an initial value of the electron density for each point in the analysis space. The analysis instruction also includes, for example, a convergence criterion (a tolerance value for the difference and the difference change rate).

[0077] When the calculation instruction unit 120 acquires information indicating the division result (for example, a list of coordinates of points included in each subspace) from the space division unit 130, it transmits an electron density calculation instruction including the information of the subspace to the SCF calculation unit 210. Then, when the calculation instruction unit 120 receives the calculation result from the SCF calculation unit, it transmits the calculation result to the terminal 40.

[0078] The space dividing unit 130 divides the analysis space into a subspace with low electron density, a subspace with medium electron density, and a subspace with high electron density. For example, the space dividing unit 130 divides the space based on the initial value of the electron density.

[0079] The SCF calculation unit 210 repeats the SCF calculation to obtain the electron density by DFT. At that time, the SCF calculation unit 210 judges the convergence of the electron density for each subspace. When the electron density has converged in all the subspaces, the SCF calculation unit 210 transmits the electron density at each point at that time to the calculation instruction unit 120 as the calculation result.

[0080] 9 can be realized by, for example, having a computer execute a program module corresponding to the element. For example, the control node 100 executes programs corresponding to the calculation instruction unit 120 and the space division unit 130 to realize the calculation instruction unit 120. The calculation instruction unit 120 realized by the control node 100 instructs one or more of the multiple calculation nodes 200a, 200b, ... to execute a job corresponding to the SCF calculation unit 210. The instructed calculation node realizes the SCF calculation unit 210 by executing a program corresponding to the specified job.

[0081] Next, the procedure for calculating the energy of a substance using SCF calculations will be explained. 10 is a flowchart showing an example of the procedure of the energy calculation process. The process shown in FIG. 10 will be described below in order of step number.

[0082] [Step S101] First, the space dividing unit 130 divides the analysis space and sets a subspace. For example, the calculation instruction unit 120 that has received an analysis instruction transmits the space division instruction to the space dividing unit 130. The space dividing unit 130 executes a subspace setting process in response to the space division instruction. The subspace setting process will be described in detail later.

[0083] [Step S102] When the subspace setting process by the space dividing unit 130 ends, the calculation command unit 120 sets a convergence criterion. For example, the calculation command unit 120 sets the allowable values ​​of the difference and the difference change rate indicated in the analysis command as the convergence criterion. The convergence criterion is set, for example, for each subspace.

[0084] [Step S103] The SCF calculation unit 210 repeats the SCF calculation until the overall electron density converges. The details of the SCF calculation process will be described later. In this way, the calculation system 30 performs the SCF calculation after dividing the space into subspaces in advance. In the space division into subspaces, it is determined which subspace the point is to be included in for each point of the electron density calculation target.

[0085] FIG. 11 is a diagram showing an example of a subspace. An entire space 50 to be analyzed includes a set of multiple points. The space 50 is divided into two or more subspaces 51 to 53. Each of the subspaces 51 to 53 includes one or more points. The points included in one subspace may be discontinuous points. For example, the space dividing unit 130 determines the subspace to which each point belongs based on the initial value of the electron density of the point.

[0086] Fig. 12 is a diagram showing an example of a partial space set based on electron density. The entire space 60 includes points with small initial values ​​of electron density (indicated as "S" in Fig. 12), points with medium initial values ​​of electron density (indicated as "M" in Fig. 12), and points with large initial values ​​of electron density (indicated as "L" in Fig. 12).

[0087] The space dividing unit 130 divides the points into groups based on the electron density. Then, the space dividing unit 130 sets each group as a subspace. For example, the space dividing unit 130 includes points whose initial electron density value is less than a first threshold in a subspace 61 ("subspace 1" for "low" electron density). The space dividing unit 130 also includes points whose initial electron density value is equal to or greater than the first threshold and less than a second threshold in a subspace 62 ("subspace 2" for "medium" electron density). The second threshold is greater than the first threshold. The space dividing unit 130 also includes points whose initial electron density value is equal to or greater than the second threshold in a subspace 63 ("subspace 3" for "high" electron density).

[0088] In this manner, the points contained in the entire space 60 are grouped, and each group is set as a subspace 61-63. 13 is a flowchart showing an example of a procedure for the partial space setting process. The process shown in FIG. 13 will be described below in order of step numbers.

[0089] [Step S111] The space dividing unit 130 obtains an initial value of the electron density at each point. For example, the space dividing unit 130 obtains the initial value of the electron density indicated in the analysis instruction from the calculation instruction unit 120.

[0090] [Step S112] The space dividing unit 130 selects one unselected point included in the entire space. [Step S113] The space dividing unit 130 judges whether the electron density of the selected point is "low" or not. For example, if the electron density of the selected point is less than a first threshold, the space dividing unit 130 judges it to be "low". If the electron density is "low", the space dividing unit 130 advances the process to step S114. If the electron density is not "low", the space dividing unit 130 advances the process to step S115.

[0091] [Step S114] The space dividing unit 130 sets the subspace to which the selected point belongs to as "subspace 1." After that, the space dividing unit 130 proceeds to step S118. [Step S115] The space dividing unit 130 judges whether the electron density of the selected point is "medium". For example, the space dividing unit 130 judges the electron density of the selected point to be "medium" if it is equal to or greater than a first threshold and less than a second threshold. If the electron density is "medium", the space dividing unit 130 advances the process to step S116. If the electron density is not "medium", the space dividing unit 130 advances the process to step S117.

[0092] [Step S116] The space dividing unit 130 sets the subspace to which the selected point belongs to as "subspace 2." After that, the space dividing unit 130 proceeds to step S118. [Step S117] The space dividing unit 130 sets the subspace to which the selected point belongs to as "subspace 3."

[0093] [Step S118] The space dividing unit 130 determines whether all points have been selected. If all points have been selected, the space dividing unit 130 ends the subspace setting process. If there are any unselected points, the space dividing unit 130 proceeds to step S112.

[0094] In this manner, the entire space is divided into a plurality of subspaces. When the subspaces are generated, the calculation instruction unit 120 sets a convergence criterion for each subspace. The set convergence criterion is expressed, for example, by a tolerance value for the difference and the difference change rate. The tolerance values ​​for the difference and the difference change rate are stored, for example, in the memory 102 as tolerance information.

[0095] 14 is a diagram showing an example of the tolerance information. The tolerance information 70 may include, for example, a difference tolerance (Δρ) and a difference change rate tolerance (DTH) of a subspace, which are associated with the name of the subspace. i 14, the difference tolerance value for each subspace is the same, but it is also possible to set a different difference tolerance value for each subspace.

[0096] The difference tolerance and the difference change rate tolerance define the convergence criteria for each subspace. Once the convergence criteria are set, the SCF calculation unit 210 executes the SCF calculation. 15 is a flow chart showing an example of the procedure of the SCF calculation process. The process shown in FIG. 15 will be described below in order of step numbers.

[0097] [Step S121] The SCF calculation unit 210 sets the initial value of the electron density ρ(r) specified in advance for all points indicated by the position vector r. [Step S122] The SCF calculation unit 210 calculates the one-electron wave function φ(r) (φ is drawn in one stroke in FIG. 15). For example, the SCF calculation unit 210 calculates the one-electron wave function φ(r) by solving the Kohn Sham equation.

[0098] [Step S123] The SCF calculation unit 210 calculates the electron density ρ′(r) for each point based on the one-electron wave function φ(r). [Step S124] The SCF calculation unit 210 calculates the difference Δρ(r) between the electron density ρ(r) and the electron density ρ'(r) for each point. The difference Δρ(r) can be calculated, for example, by "Δρ(r)=|ρ(r)-ρ'(r)|".

[0099] [Step S125] The SCF calculation unit 210 selects one of the subspaces that has not converged. [Step S126] The SCF calculation unit 210 judges whether the difference Δρ(r) for all points in the selected subspace is equal to or smaller than the allowable value Δρ. For example, the SCF calculation unit 210 extracts the maximum value of the differences Δρ(r) for each point in the selected subspace. If the extracted maximum value is equal to or smaller than the allowable value Δρ, the SCF calculation unit 210 judges that the difference Δρ(r) for all points in the selected subspace is equal to or smaller than the allowable value Δρ.

[0100] If the difference Δρ(r) for all points in the selected subspace is equal to or smaller than the allowable value Δρ, SCF calculation unit 210 proceeds to step S129. If the difference Δρ(r) for at least one point in the selected subspace exceeds the allowable value Δρ, SCF calculation unit 210 proceeds to step S127.

[0101] [Step S127] The SCF calculation unit 210 calculates the difference change rate for all points in the selected subspace. [Step S128] The SCF calculation unit 210 checks whether the difference change rates for all points in the selected subspace are within the permissible threshold DTH i For example, the SCF calculation unit 210 extracts the maximum value of the differential change rate for each point in the selected subspace. Then, the SCF calculation unit 210 determines whether the extracted maximum value is equal to or smaller than the allowable value DTH i If the difference rate for all points in the selected subspace is less than or equal to the tolerance DTH i It is determined that the following is true:

[0102] The SCF calculation unit 210 calculates the difference change rate for all points in the selected subspace based on the tolerance DTH i If it is equal to or smaller than the threshold DTH, the process proceeds to step S129. Also, the SCF calculation unit 210 calculates whether the difference change rate for at least one point in the selected subspace is equal to or smaller than the threshold DTH i If so, the process proceeds to step S130.

[0103] [Step S129] The SCF calculation unit 210 sets the selected subspace as having converged. [Step S130] The SCF calculation unit 210 determines whether or not there is an unselected subspace among the subspaces that have not converged. If there is an unselected subspace, the SCF calculation unit 210 proceeds to step S125. If all subspaces have been selected, the SCF calculation unit 210 proceeds to step S131.

[0104] [Step S131] The SCF calculation unit 210 determines whether all subspaces have converged. If all subspaces have converged, the SCF calculation unit 210 proceeds to step S133. If there is any subspace that has not converged, the SCF calculation unit 210 proceeds to step S132.

[0105] [Step S132] The SCF calculation unit 210 updates the electron density ρ(r). For example, the SCF calculation unit 210 sets the electron density ρ'(r) to the electron density ρ(r). After updating the electron density ρ(r), the SCF calculation unit 210 advances the process to step S122.

[0106] [Step S133] The SCF calculation unit 210 calculates the total energy of the system based on the latest electron density ρ′(r) at each point. In this way, the SCF calculation is performed, and the total energy when the electron density converges is obtained. By applying the SCF calculation shown in Figure 15 to the DTF calculation, the calculation speed can be increased. The calculation speed-up rate can be calculated from the following formula using the number of iterations at which the convergence criteria for the difference and the difference change rate are satisfied.

[0107] Speed-up rate=max(nd1,nd2,...,nd n ) / max(min(nd1,nr1),min(nd2,nr2),...,min(nd n ,nr n )) n is a natural number indicating the number of subspaces. nd1,nd2,...,nd n nr1,nr2,...,nr indicate the number of iterations at which the convergence criterion for the difference is satisfied in the first through nth subspaces, respectively. n indicates the number of iterations at which the convergence criteria for the differential change rate are satisfied in the 1st to nth subspaces, respectively. max() indicates the maximum value of the number in parentheses. min() indicates the minimum value of the number in parentheses.

[0108] 16 is a diagram showing an example of a speed-up rate. For example, there are two subspaces, and in "subspace 1," the difference converges (the convergence criterion is satisfied) when the SCF calculation is repeated 40 times, and the difference change rate converges when the SCF calculation is repeated 25 times. In "subspace 2," the difference converges when the SCF calculation is repeated 20 times, and the difference change rate converges when the SCF calculation is repeated 50 times. The speed-up rate in this case is as follows:

[0109] Speed-up rate=max(40,20) / max(min(40,25),min(20,50))=40 / 25=1.6 times The speed-up of SCF calculations shown in the second embodiment can be applied to molecular dynamics calculations using a program called CP2K. CP2K is an open source library of first-principles calculations that supports pseudopotential and all-electron calculation methods. In CP2K, the Gaussian basis, plane wave basis, and their mixed basis can be used as the basis. CP2K can also obtain good results in large-scale parallel calculations and linear scaling. CP2K supports various first-principles calculation methods, such as density functional theory and Hartree-Fock method.

[0110] Even if the number of subspaces is only one (space division is not performed), the speed of the SCF calculation can be increased by performing a convergence check using the logical sum of the difference and the difference change rate. FIG. 17 is a diagram showing an example of speeding up SCF calculations. FIG. 17 shows a calculation result 81 when the structure of an ammonia catalyst is calculated by DFT using the CP2K program. The number of subspaces is "1". The SCF calculations are performed in two patterns: one using only the electron density difference as the convergence criterion, and the other using the electron density difference and the difference change rate. When the difference change rate is used, the allowable value of the difference change rate is "5%".

[0111] When only the electron density difference is used as the convergence criterion, the total energy is -4404.26877, the number of SCF calculation iterations is 73, and the time to convergence is 243.249 seconds. When the electron density difference and the difference change rate are used as the convergence criterion, the total energy is -4403.83420, the number of SCF calculation iterations is 28, the time to convergence is 92.959 seconds, and the speedup rate is 2.62.

[0112] Fig. 18 is a diagram showing the speed-up ratio when the electron density difference and the difference change rate are used as the convergence criterion. Graph 82 shows the speed-up ratio when only the electron density difference is used as the convergence criterion, and when both the electron density difference and the difference change rate are used. The speed-up ratio when only the difference is used is "1". In contrast, when the difference and the difference change rate are used, the speed-up ratio is "2.62".

[0113] In this way, the calculation speed is increased by using the electron density difference and the difference change rate to determine convergence. Moreover, as shown in Figure 17, there is no significant difference in the total energy obtained. In other words, the calculation time is reduced without reducing the calculation accuracy.

[0114] By using the technology shown in the second embodiment, it is possible to efficiently implement a wide-area search technology service for new materials that combines, for example, HPC and AI (Artificial Intelligence).

[0115] 19 is a diagram showing an example of a wide-area search technology service. For example, the calculation system 30 acquires input data 91 indicating initial conditions for a substance, such as a material to be searched, from a user. The calculation system 30 executes a quantum chemical simulation at high speed based on the input data 91. By using the technology shown in the second embodiment, the calculation system 30 can execute a highly accurate simulation, for example, about 10 times faster. As a result, high-quality data 92, 94 regarding the structure of the substance can be generated.

[0116] The data 92 generated by the calculation system 30 can be analyzed for characteristics, for example, by AI simulation using technology such as GNN (Graph Neural Network). By using the data 93 generated by the AI ​​simulation and the data 94 generated by the calculation system 30, it is possible to analyze causal relationships from a large number of combinations of candidate materials and their physical properties, which cannot be analyzed by humans, for example, using a causal discovery AI. As a result, it becomes possible to make new discoveries and discoveries.

[0117] The results of the causal relationship analysis can be used to narrow the search range by, for example, reflecting them in the search conditions of a quantum chemical simulation. By appropriately narrowing the search range, for example, a material with the properties desired by the user can be found quickly.

[0118] Other embodiments In the second embodiment, an example has been shown in which the disclosed technology is applied to a wide-area search service for new materials using AI, but it can also be applied to other information processing services.

[0119] In the second embodiment, the DFT calculation is performed by HPC. However, if the number of atoms in the substance to be analyzed is small, the DFT calculation shown in the second embodiment can also be performed by a computer other than HPC.

[0120] Although the embodiments have been described above, the configurations of the parts shown in the embodiments can be replaced with other parts having similar functions. Any other components or steps may be added. Furthermore, any two or more configurations (features) of the above-mentioned embodiments may be combined. [Explanation of symbols]

[0121] 1 Substance information 2 space 3 Judgment criteria information 4. Index value calculation results 10. Information processing device 11 Storage section 12 Processing section

Claims

1. The electron density at each of multiple points in the space in which the material exists is repeatedly calculated using the self-consistent field method, determining whether or not a plurality of index values ​​based on the calculated electron density for each of the plurality of points satisfy a convergence criterion for each of the plurality of index values ​​each time the electron density is calculated; when at least one of the plurality of index values ​​for each of the plurality of points satisfies the convergence criterion, the iterative calculation of the electron density is terminated. A quantum chemistry calculation program that causes a computer to carry out the processing.

2. further causing the computer to execute a process of classifying each of the plurality of points into one of a plurality of subspaces based on an initial value of the electron density of each of the plurality of points; In the process of determining whether the convergence criterion is satisfied, a plurality of first index values ​​are calculated for a first determination target point that belongs to a first subspace among the plurality of classified subspaces; for each of the calculated first index values, it is determined whether or not the convergence criterion set for the first subspace to which the first judgment target point belongs is satisfied, based on the convergence criterion set for each of the plurality of index values ​​for each of the plurality of subspaces. The quantum chemical calculation program according to claim 1.

3. In the process of determining whether or not the convergence criterion is satisfied, for each point belonging to the first subspace among the plurality of subspaces, the first subspace in which at least one of the plurality of index values ​​satisfies the convergence criterion is determined to have converged, and thereafter, for points belonging to a second subspace other than the first subspace that has converged, it is determined whether or not the convergence criterion is satisfied. The quantum chemical calculation program according to claim 2.

4. The plurality of index values ​​include a difference between a previous calculation result of the electron density and a current calculation result of the electron density, and a difference change rate indicating a degree of change between a previous calculation result of the difference of the electron density and a current calculation result of the difference of the electron density. The quantum chemical calculation program according to any one of claims 1 to 3.

5. The electron density at each of multiple points in the space in which the material exists is repeatedly calculated using the self-consistent field method, determining whether or not a plurality of index values ​​based on the calculated electron density for each of the plurality of points satisfy a convergence criterion for each of the plurality of index values ​​each time the electron density is calculated; when at least one of the plurality of index values ​​for each of the plurality of points satisfies the convergence criterion, the iterative calculation of the electron density is terminated. A quantum chemical calculation method in which processing is performed by a computer.

6. a processing unit that repeatedly calculates an electron density at each of a plurality of points in a space in which a substance exists by a self-consistent field method, and each time the electron density is calculated for each of the plurality of points, determines whether or not a plurality of index values ​​based on the calculated electron density satisfy a convergence criterion for each of the plurality of index values, and terminates the repeated calculation of the electron density when at least one of the plurality of index values ​​for each of the plurality of points satisfies the convergence criterion; An information processing device having the above configuration.

Citation Information

Patent Citations

  • Method of calculating electronic state, electronic state calculation device and computer program

    WO2012023563A1