An a posteriori verification method for generalized real-symmetric eigenvalue problems in large-scale electronic state calculations
Takeo Hoshi, Takeshi Ogita, Katsuhisa Ozaki, Takeshi Terao

TL;DR
This paper introduces an efficient a posteriori verification method for large-scale generalized real-symmetric eigenvalue problems, ensuring accurate eigenvalue intervals in electronic state calculations.
Contribution
It presents a novel two-stage verification process that confirms eigenvalues within computed intervals, enhancing reliability in large-scale electronic structure computations.
Findings
Successfully verified eigenvalues in dense clusters for organic materials
Method confirms all eigenvalues are well separated within intervals
Integrates into EigenKernel for improved eigenvalue problem solving
Abstract
An a posteriori verification method is proposed for the generalized real-symmetric eigenvalue problem and is applied to densely clustered eigenvalue problems in large-scale electronic state calculations. The proposed method is realized by a two-stage process in which the approximate solution is computed by existing numerical libraries and is then verified in a moderate computational time. The procedure returns intervals containing one exact eigenvalue in each interval. Test calculations were carried out for organic device materials, and the verification method confirms that all exact eigenvalues are well separated in the obtained intervals. This verification method will be integrated into EigenKernel (https://github.com/eigenkernel/), which is middleware for various parallel solvers for the generalized eigenvalue problem. Such an a posteriori verification method will be important in…
| Problem name | Matrix dimension () | Difference () | Radius sum () |
|---|---|---|---|
| PPE354 | 354 | ||
| PPE3594 | 3,594 | ||
| PPE7194 | 7,194 | ||
| PPE17994 | 17,994 | ||
| PPE107994 | 107,994 | ||
| VCNT22500 | 22,500 | ||
| VCNT225000 | 225,000 | ||
| NCCS430080 | 430,080 |
| Problem name | |||
|---|---|---|---|
| PPE354 | 4 | 0.32 | 0.12 |
| PPE3594 | 4 | 20.74 | 4.73 |
| PPE7194 | 4 | 118.84 | 31.74 |
| PPE17994 | 16 | 217.91 | 105.75 |
| PPE107994 | 600 | 1009.85 | 682.92 |
| VCNT22500 | 64 | 105.75 | 59.06 |
| VCNT225000 | 2025 | 2625.76 | 1775.09 |
| NCCS430080 | 6400 | 8960.03 | 3496.56 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
An a posteriori verification method for generalized real-symmetric eigenvalue problems in large-scale electronic state calculations
Takeo Hoshi
Takeshi Ogita
Katsuhisa Ozaki
Takeshi Terao
Department of Applied Mathematics and Physics, Tottori University, Japan
Division of Mathematical Sciences, Tokyo Woman’s Christian University, Japan
Department of Mathematical Sciences, Shibaura Institute of Technology, Japan
Graduate School of Engineering and Science, Shibaura Institute of Technology, Japan
Abstract
An a posteriori verification method is proposed for the generalized real-symmetric eigenvalue problem and is applied to densely clustered eigenvalue problems in large-scale electronic state calculations. The proposed method is realized by a two-stage process in which the approximate solution is computed by existing numerical libraries and is then verified in a moderate computational time. The procedure returns intervals containing one exact eigenvalue in each interval. Test calculations were carried out for organic device materials, and the verification method confirms that all exact eigenvalues are well separated in the obtained intervals. This verification method will be integrated into EigenKernel (https://github.com/eigenkernel/), which is middleware for various parallel solvers for the generalized eigenvalue problem. Such an a posteriori verification method will be important in future computational science.
(c) 2005 Elsevier B.V. All rights reserved.
keywords:
verification method, generalized real-symmetric eigenvalue problem, electronic state calculation, supercomputer,
MSC:
65F15 , 65G20
††journal: Journal of Computational and Applied Mathematics
1 Introduction
A crucial issue in verification methods is application to large-scale scientific or industrial computations on supercomputers. Many numerical solvers have been proposed for modern massively parallel supercomputers, and application researchers would like to compare solvers both in terms of computational speed and reliability. The concept of a posteriori verification methods is proposed in order to meet the needs of application researchers.
A posteriori verification methods have the workflow shown in Fig. 1. An approximate solution is first obtained and then verified. The former and latter procedures are referred to as a solver and a verifier, respectively. The goal of the present study is to integrate the verifier routine, as an optional function, to existing numerical solver libraries.
The present research is motivated by large-scale electronic state calculation, a major field in computational material science and engineering. As explained in A, a mathematical model is used for the fundamental Schrödinger-type equation, and the problem is reduced to the generalized real-symmetric matrix eigenvalue problem
[TABLE]
under the generalized orthogonality condition
[TABLE]
where both and are real-symmetric matrices, with being positive definite. Here, we assume that
[TABLE]
Applying our results to problems with complex Hermitian matrices is straightforward.
For large-scale electronic state calculation, many eigenvalues are densely clustered or almost degenerate, and distinguishing them numerically may be difficult. In order to obtain reliable results, we consider verification methods for generalized eigenvalue problems. For the sake of completeness as verification methods, we also need to take into account all numerical errors that occur when matrices and are generated from the fundamental Schrödinger-type equation. Although we do not consider the fundamental Schrödinger-type equation in detail herein, we briefly discuss this equation in A.
One of the authors (T. H.) developed a middleware EigenKernel [1, 2, 3] with various parallel solvers for generalized eigenvalue problems and plans to add a verifier routine. The total elapsed time is the sum of the times for solver and verifier (). We attempt to construct the verifier algorithm so that the time for the verifier gives a moderate fraction (). Since the verifier can use the highly optimized routines of matrix multiplication, the verifier is suitable for high-performance computing on supercomputers.
In the solver procedure, approximate solutions , , such that
[TABLE]
are obtained by any numerical solver algorithm. A verifier procedure gives the difference between the exact and approximate solutions, such as or . If the relation is obtained with a given positive number , for example, this indicates that the exact solution () lies in a disk having a center and radius of and , respectively. For this purpose, a number of enclosure methods have been developed, e.g., [4, 5, 6]. In the present paper, we propose a method of enclosing all eigenvalues that is straightforward, efficient, and easy to implement on supercomputers. The proposed method is based on Yamamoto’s theorem [7] and is essentially the same as the method proposed in a previous paper [6]. In other words, we specialize the previous method [6] for generalized real-symmetric eigenvalue problems. Note that it is not possible in general to state that a method is better or worse than other methods because this depends on the purpose. We compare the advantages and disadvantages of these enclosure methods in Section 3.
The a posteriori verification strategy is important mainly with regards to three aspects. First, numerical methods for the densely clustered eigenvalue problem have potential difficulties in computing reliable numerical solutions, as explained above. Second, various numerical algorithms have been proposed for efficient parallel computations that are suitable for current and next-generation supercomputers. Application researchers would like to compare these methods with respect to both computational speed and numerical reliability. Third, the emergence of machine learning has enhanced the design of computer architecture for the acceleration of low-precision (single- or half-precision) calculation. The efficient use of low-precision calculation, typically in mixed-precision calculation, will be important in any high-performance computational science field [8, 9]. A posteriori verification methods guarantee satisfactory numerical reliability when low-precision calculation is used.
The remainder of the present paper is organized as follows. Section 2 explains the physical and mathematical backgrounds. The proposed verification method and numerical examples are presented in Sections 3 and 4, respectively. Section 5 presents a summary and an outlook for future research.
2 Background
2.1 Large-scale electronic state calculation and densely clustered eigenvalue problem
The present electronic state calculation is briefly introduced in A. The matrix size is approximately proportional to the number of the atoms, molecules, or electrons in the material. An eigenvalue or an eigenvector indicates the energy and the wavefunction, respectively, of an electron.
The present research is motivated, in particular, by a previous study [10], in which we focused on the participation ratio [11, 12] defined for a vector , as
[TABLE]
The participation ratio is a measure of the spatial extension of the electronic wavefunction and governs the electronic device properties. A dense eigenvector, i.e., a vector that has only a few components that are negligible in terms of absolute value, has a large participation ratio. The corresponding electronic wavefunction is extended through the material and can contribute to electrical current. A sparse eigenvector, i.e., a vector that has only a few components that are large in terms of absolute value, indicates a small participation ratio. The corresponding electronic wavefunction is localized in the material and cannot contribute to electrical current. An interesting research target in a large-scale problem is an ‘intermediate’ electronic wavefunction or a wavefunction that shows intermediate properties between extended and localized wavefunctions. Such ‘intermediate’ wavefunctions appear, for example, in Fig. 1 of Ref. [12] or Fig. 3 of Ref. [10].
The densely clustered eigenvalue problem in (1) appears among large-scale calculations and is illustrated in Fig. 2. In the problem, the difference of sequential eigenvalues , , tends to be proportional to . Consequently, many eigenvalues are densely clustered or almost degenerate () in a large-matrix problem and distinguishing these eigenvalues numerically may be difficult.
It is crucial to distinguish each eigenvalue numerically among densely clustered eigenvalues, because the participation ratio and other physical quantities are defined for each eigenvector. If two calculated eigenvalues and cannot be distinguished in the numerical calculation, or if the two eigenvalues are recognized, unphysically, to be degenerate, then the corresponding eigenvectors and cannot be defined uniquely. In this case, the participation ratio values and are not defined uniquely and any discussion of these values will be meaningless.
2.2 Numerical solvers for the generalized eigenvalue problem
Here, an overview is given for the parallel dense-matrix solver of the generalized eigenvalue problem of (1), in particular, for the variety of used algorithms. The solver algorithm for (1) consists of four procedures: (i) Cholesky decomposition of
[TABLE]
with an upper triangular matrix , (ii) reduction to the standard eigenvalue problem (SEP)
[TABLE]
with
[TABLE]
(iii) solution of the standard eigenvalue problem (8), and (iv) transformation of the eigenvectors
[TABLE]
The set of procedures (i), (ii), and (iv) is referred to as reducer, and procedure (iii) is referred to as the SEP solver.
Although ScaLAPACK [13, 14] is the de facto standard parallel numerical library, this library was developed mainly in the 1990s, and several routines exhibit severe bottlenecks on modern massively parallel supercomputers. Novel solver libraries of ELPA [15, 16] and EigenExa [17, 18] were proposed in order to overcome the bottlenecks. The ELPA code was developed in Europe under tight collaboration between computer scientists and material science researchers, and its main target application is FHI-aims [19, 20], which is a well-known electronic state calculation code. The EigenExa code, on the other hand, was developed at RIKEN in Japan. Importantly, the ELPA code has routines optimized for x86, IBM Blue-Gene, and AMD architectures, whereas the EigenExa code was developed to be optimal mainly on the K computer, which is a Japanese flagship supercomputer. Both ScaLAPACK and ELPA provide the reducer routines, and all of ScaLAPACK, ELPA, and EigenExa provide the SEP solver routines.
Since the computational performance depends both on the problem and the architecture, it is, in principle, possible to construct a ‘hybrid’ workflow in which the reducer routine is chosen from one library and the SEP solver routine is chosen from another library, so as to realize optimal performance. The middleware EigenKernel was developed in order to realize such hybrid workflows. An obstacle to realizing the hybrid workflow is the difference of matrix distribution schemes between different libraries. EigenKernel provides data conversion routines between libraries and surmounts this obstacle.
Figure 3 shows the possible workflows for a future version of EigenKernel with the a posteriori verification routine. The SEP solvers and the reducers in Fig. 3 are briefly explained. The SEP solver and the two reducers in ScaLAPACK are the traditional routines. The SEP solvers of ‘ELPA1’ and ‘Eigen_s’ are also based on the traditional algorithm with tridiagonalization. The other two solvers ‘ELPA2’ and ‘Eigen_sx’ and the reducer in ELPA are based on non-traditional algorithms for better performance in massive parallelism. The detailed algorithms for these routines are found in Ref. [3].
2.3 Verified numerical computations
We briefly explain how to obtain mathematically rigorous numerical results using floating-point arithmetic. Let and be sets of floating-point numbers and intervals, respectively. We use bold-faced letters for interval matrices, the elements of which are intervals. For an interval matrix , and denote the left and right endpoints, respectively, such that , i.e., for all pairs, which is known as “inf-sup” form. In addition, and denote the midpoint and the radius of , respectively, such that , which is known as “mid-rad” form. Let , , and be computed results by floating-point arithmetic as defined in IEEE 754 with rounding to the nearest (roundTiesToEven), rounding downwards (roundTowardNegative), and rounding upwards (roundTowardPositive), respectively. For a given matrix , the notation indicates , and the same applies to vectors, i.e., the absolute value is taken componentwise.
Next, we review basic interval matrix multiplication (cf. [21]). For two point matrices , the matrix product can be enclosed as
[TABLE]
where two matrix multiplications are required. For a point matrix and an interval matrix , the product can efficiently be enclosed using mid-rad form of as
[TABLE]
which involves three matrix multiplications. Although the inf-sup form can also be used for calculating the enclosure of , the inf-sup form cannot be written with products of point matrices simply, so that it is much more difficult for the inf-sup form to achieve high-performance in practice, as compared to the mid-rad form [21]. If is given by the inf-sup form , we can easily transform into the mid-rad form, for example, by
[TABLE]
which satisfies .
There exist several implementations of the above interval arithmetic for matrix multiplication, e.g., C-XSC [22], a C++ library, and INTLAB [23], a Matlab/Octave toolbox for verified numerical computations. Both C-XSC and INTLAB share the common feature that they use Basic Linear Algebra Subprograms (BLAS) routines. In other words, we can efficiently implement interval matrix multiplication using PBLAS, the parallel version of BLAS, on distributed computing environments, as long as directed rounding in floating-point operations is available in BLAS routines for matrix multiplication and the reduction operation of summation.
3 A posteriori verification methods
3.1 Possible verification methods
Possible verification methods are discussed here. In order to measure the accuracy of the computed solution , application researchers often compute a norm of the residual vector, such as
[TABLE]
Although this quantity usually suffices to check whether the solver works correctly, it does not verify the accuracy of the computed eigenvalue. The following inequality is a known residual bound [5]:
[TABLE]
which is straightforwardly derived from Wilkinson’s bound [24] for the standard eigenvalue problem. From the bound (13), we can confirm that some eigenvalue of exists in the neighborhood of satisfying (13). However, we cannot determine whether is an approximation of the -th eigenvalue of . In order to understand the electronic state of the problems correctly, it is crucial to determine the order of eigenvalues [25].
To our knowledge, we have the following two approaches to determine the order of eigenvalues of symmetric matrices:
- (a)
Compute all eigenpairs (pairs of eigenvalues and eigenvectors) and verify the error bounds of all computed eigenvalues (cf., e.g. [5, 6]).
- (b)
Compute an approximation of a target eigenvalue using Sylvester’s law of inertia with decomposition [25], and verify that is an approximation of the -th eigenvalue with an error bound (cf., e.g. [4]).
The advantages and disadvantages of each approach from a practical point of view are as follows:
Approach (a) is simpler, numerically more stable, and easier to implement than Approach (b).
- 2.
Approach (a) can straightforwardly use highly optimized routines for matrix multiplication and eigenvalue decomposition.
- 3.
Approach (a) cannot exploit the sparsity of and , whereas Approach (b) can to a certain extent.
In the present paper, we adopt Approach (a) from the aspect of simplicity and efficiency of code development on supercomputers.
3.2 Proposed method
We attempt to obtain componentwise error bounds for computed eigenvalues , . Let denote a matrix comprising all generalized eigenvectors of and a diagonal matrix of the corresponding generalized eigenvalues such that
[TABLE]
Let denote the identity matrix. Then, we have
[TABLE]
Let and be approximations of and , respectively. Suppose is nonsingular. Then,
[TABLE]
Since is a similarity transformation of , the eigenvalues of are the same as those of , and thus the generalized eigenvalues of .
Here, we attempt to compute an inclusion of . To this end, we introduce Yamamoto’s theorem for verified solutions of linear systems. For given matrices , the notation indicates for all , and the same applies to vectors, i.e., the inequality holds componentwise. Moreover, define .
Theorem 1** (Yamamoto [7]).**
Let and be real matrices, and let and be real -vectors. If , then is nonsingular, and
[TABLE]
In practice, we adopt an approximate inverse of as in Theorem 1.
In order to apply Yamamoto’s theorem to componentwise error bounds for computed eigenvalues with the Gershgorin circle theorem, we present a variant of Yamamoto’s theorem.
Theorem 2**.**
Let , , , and be real matrices. If , then is nonsingular, and
[TABLE]
Proof.
In a similar manner to the derivation of Yamamoto’s theorem, and noting that for , , we have
[TABLE]
which proves the theorem. ∎
We now consider a linear system for . Then, we can regard as its approximate solution and as an approximate inverse of . Let , , and be defined as
[TABLE]
If , applying Theorem 2 to the linear system yields
[TABLE]
Recall that , , are the eigenvalues of . For , the Gershgorin circle theorem implies
[TABLE]
If all the disks are isolated, then all of the eigenvalues are separated, i.e., each disk contains precisely one eigenvalue of [26, pp. 71ff], as shown schematically in Fig. 4. If several disks are overlapped such that for some , then some of the eigenvalues are degenerate or nearly degenerate. Moreover, if is ill-conditioned, then the -orthogonality of may break down such that . In such a case, Theorem 2 cannot be applied, and the verification procedure must end in failure. Therefore, we need to check whether in code development from the verification method.
In [6], a similar method has been proposed, which is essentially the same as the proposed method. The main difference between the method in [6] and the proposed method is that the former focuses on the non-symmetric case and is more general. On the other hand, the proposed method is specialized for the symmetric case, i.e., we can avoid complex arithmetic including the verification procedure and compute an approximate inverse of by utilizing .
3.3 Code development
We explain how to obtain an upper bound of the vector in (15) using only floating-point arithmetic. We first attempt to obtain upper bounds and of and in (14) such that and as follows:
% Two matrix multiplications based on (11) 2. 2.
% Three matrix multiplications based on (12) 3. 3.
% Negligible cost, 4. 4.
5. 5.
% Two matrix multiplications based on (11) 6. 6.
% Negligible cost because is a diagonal matrix 7. 7.
% Negligible cost, is overwritten by is overwritten by 8. 8.
% Three matrix multiplications based on (12) 9. 9.
Note that the notation ‘’ indicates enclosure of the result. Moreover, for given matrices , the notation indicates for all pairs, i.e., the maximum is taken componentwise. Here, five matrix multiplications are required for calculating until Step 4, and an additional five matrix multiplications for the remaining calculations. Thus, in total, 10 matrix multiplications are required for calculating and . Therefore, calculating and involves floating-point operations if the symmetry of is not taken into account. We compute the upper bounds of and as
[TABLE]
If , then the verification failed. Hence, we check or after Step 4. If , then the computation prematurely finishes without proceeding to Step 5. Otherwise, we proceed until Step 9 and obtain upper bound of in (15) by
[TABLE]
The routine pdsygvx in ScaLAPACK produces computed eigenvalues with . Therefore, if are satisfied for all , then we can separate all of the eigenvalues and determine the order of the eigenvalues correctly.
The test code was developed in the C language with the parallel libraries PBLAS and ScaLAPACK. The solver procedure uses a GEP solver routine (pdsygvx) in ScaLAPACK, whereas the verifier routine uses the matrix multiplication routine (pdgemm) in PBLAS.
Note that the verifier procedure is based primarily on matrix multiplication, whereas the solver procedure consists of complicated procedures, such as Cholesky decomposition, and tridiagonalization. Therefore, the verifier procedure is expected to be moderate in terms of computational time and to be efficient in terms of parallelism, as compared to the solver procedure.
4 Numerical example
4.1 Problem
Numerical examples are presented in this section. All matrix eigenvalue problems stem from the electronic-state calculation software ELSES [27, 28, 29], and the matrix data files appear in the ELSES matrix library [30, 10]. Details are explained in A. The problems calculated in this section are PPE354, PPE3594, PPE7194, PPE17994, PPE107994, VCNT22500, VCNT225000, and NCCS430080 in the ELSES matrix library. The matrices are those of systems having disordered atomic structures. Disordered systems are important for industrial applications because most industrial materials are disordered, unlike ideal crystal or periodic structures. Consequently, eigenvalues are not degenerate in all of the problems. The number in the problem name indicates the matrix dimension . For example, the system PPE354 contains matrices and with . All of the matrices and in these systems are real symmetric. The systems with the letters ‘PPE’ are systems of organic polymers of poly-(phenylene-ethynylene) (PPE). The left-hand panel of Fig. 5(a) shows the structural formula of PPE, and the right-hand panel of Fig. 5(b) shows a part of the polymer in a disordered structure. The difference of the matrix size stems from the length of the polymer chain. The system of PPE354 is, for example, a polymer with monomers and atoms. The system VCNT225000 is the system of vibrating carbon nanotube (VCNT). The system NCCS430080 is the system of nano-composite carbon solid (NCCS) [31] and will be explained in the last paragraph of this section.
The characteristic of the eigenvalue distribution can be captured by the following two quantities. One is the difference of sequential approximate eigenvalues , , and the other is the eigenvalue count , which is defined on the eigenvalue axis as
[TABLE]
with the step function
[TABLE]
In other words, the eigenvalue count is the number of the eigenvalues that are smaller than .
Here, we demonstrate the similarity and the size dependence of the eigenvalue distribution among the organic polymer systems. The organic polymers of PPE354, PPE17994, and PPE107994 are selected. Figures 5(b) and 5(c) show the normalized eigenvalue distribution among these three systems. The three polymers exhibit quite similar curves in Figs. 5(b) and 5(c), and, therefore, the difference is nearly proportional to , as explained in Section 1.
4.2 Numerical results
Tables 1 and 2 show the calculation results on the K computer. First, we focus on the numerical results for the approximate eigenvalues and its upper bound . The routine pdsygvx in ScaLAPACK produces , with . The vector is obtained by (17). Here, we define the radius sum for . We find such that . The items “Difference” and “Radius” in Table 1 show and , respectively. As shown in the table, is satisfied in all of the problems, or all of the disks of are separated as in Fig. 4. Thus, we can determine the order of eigenvalues in each problem. If is satisfied for some , then the two disks of and are overlapped and the two exact eigenvalues of and may degenerate.
Figure 6(a) shows the eigenvalue difference and the radius sum as a function of the eigenvalue in the case of PPE107994. The radius sum satisfies and is smaller than the difference (). We found the minimality and , , and . Figure 6(b) shows a close-up of Fig. 6(a) and contains the eigenvalue . It is reasonable that the eigenvalue appears in the region of , because many eigenvalues are densely clustered, and the eigenvalue count increases rapidly in the region, as shown in Fig. 5(c). The same analysis was also carried out in the case of NCCS430080, which is the largest problem among the present calculations, and the results are shown in Figs. 6(c) and 6(d). The radius sum is smaller than the difference ().
Table 2 shows the computational times. The item in Table 2 shows the computing time for pdsygvx in ScaLAPACK. The item shows the computing time for the verification process, mainly, the time for matrix multiplications. Here, the verifier consumes a moderate cost (), as expected in Section 3.3. More intensive benchmarks, including weak scaling, will be carried out in the future.
In conclusion, the verification procedure delivers the intervals that contain the exact eigenvalues () with the approximate eigenvalues and the radius . We plan to upload the radius data files in ELSES matrix library, as well as the input matrix data and the approximate eigenvalue data. Then, a graph similar to Fig. 6 can be drawn in order to measure the accuracy of the computed solutions.
Finally, the present numerical results are discussed in the context of computational physics. The matrix problem of NCCS430080, the largest matrix problem in the present paper, appears in a previous paper on a nano-composite carbon solid [31]. In general, carbon can form diamond and graphite crystals. The material is composed of graphite-like and diamond-like domains. Figure 7 shows an example of the electronic wavefunction (the highest occupied electronic wavefunction or the wavefunction of the electron that has the highest energy). The atomic structure of Fig. 7 is that of Fig. 2(a) of Ref. [31]. (See Ref. [31] for details.) In the present context, Fig. 7 indicates that the wavefunction is an intermediate wavefunction, as explained in Section 2.1, and lies in the boundary region between graphite-like and diamond-like domains. The a posteriori verification procedure confirms that all of the eigenvalues are distinguished numerically, and the above physical discussion regarding each wavefunction is meaningful.
5 Summary and overview
The present paper proposes an a posteriori verification method for the generalized eigenvalue problems that appear in large-scale electronic state calculations. The verification procedure gives a rigorous mathematical foundation of numerical reliability. In particular, the present result guarantees that all of the approximate eigenvalues are well separated and that the participation ratio value and any physical quantity defined for each eigenvector are meaningful. Since the verification procedure consists of simple matrix multiplications, the computational cost is moderate, as compared with that of the solver procedure. Therefore, application researchers can use the verification function with only a moderate increase of the computational cost. Test calculations were carried out on the K computer for real problems with a matrix size of up to .
The next stage of research is the integration of the present verifier routine and solver routines in EigenKernel, in which we can use various solver routines among ScaLAPACK and newer libraries and can compare their approximate solutions in the verification procedure.
Future issues are realizing (i) the verification of eigenvectors and (ii) the refinement of approximate eigenpairs. The refinement procedure will be crucial, in particular, when lower-precision arithmetic, such as half-precision or single-precision arithmetic, is used for calculating an approximate solution as an initial guess. For example, refinement algorithms for the symmetric eigenvalue problem have recently been proposed in [32, 33], which are based on matrix multiplications. Such refinement algorithms enhance application researchers to use lower-precision arithmetic with satisfactory reliability of the computed results, which will be of great importance in next-generation architecture that is optimized for lower-precision arithmetic.
Acknowledgement
The authors wish to thank the anonymous referees for their valuable comments, which helped to improve our paper significantly. The present study was supported in part by MEXT as Exploratory Issue 1-2 of the Post-K (Fugaku) computer project “Development of verified numerical computations and super high-performance computing environment for extreme researches” using computational resources of the K computer provided by the RIKEN R-CCS through the HPCI System Research project (Project ID: hp180222) and Priority Issue 7 of the Post-K computer project and by JSPS KAKENHI Grant Numbers 16KT0016, 17H02828, and 19H04125.
Appendix A Generalized eigenvalue problems in electronic state calculations
This section introduces a generalized eigenvalue problem as a numerical foundation of large-scale electronic state calculations. Details can be found in textbooks, such as Ref. [34]. The fundamental Schrödinger-type equation, which is a linear partial differential equation, is written for an electronic wave function in real space for a position vector as
[TABLE]
with the Hamilton operator
[TABLE]
Here, is the Laplacian, is the mass of the electron, ( Js) is the Planck constant, and is the effective potential, which is a scalar function. The normalization condition
[TABLE]
is imposed and stems from the fact that the sum of the weight distribution of one electron should be unity.
An eigenvalue that indicates the energy of an electron in the material is called an eigenenergy. The -th eigenpair is defined for in the order of .
Now, we consider as a typical case that is expressed as a linear combination of given basic functions
[TABLE]
where the basis functions are normalized to be
[TABLE]
A typical basis function is called atomic orbital and is localized near the position of an atomic nucleus. Since each basis function belongs to one atom, the basis index is equivalent to the composite indices of an atom index and an orbital index (). The orbital index distinguishes the basis functions that belong to the same atom but differ in shape. Usually, the number of basis functions is nearly proportional to that of atoms ().
When (23) is used for (20), the generalized eigenvalue problem (1) appears with the real-symmetric matrices and , where
[TABLE]
The matrix is positive definite and satisfies and (). Hereafter, we consider that the basis functions are real and the matrices and are real symmetric. The eigenvectors are real, and the normalization condition of (22) is reduced to
[TABLE]
which is called -normalization.
Here, the simplest theory of the hydrogen molecule (H2) is demonstrated, as in many textbooks, such as Ref. [35]. The atomic nuclei of the first and second hydrogen atoms are located at and , respectively. We consider a given localized function with localization center located at . Two basis functions and are given as
[TABLE]
The generalized eigenvalue problem of (1) appears with the 2 2 real symmetric matrices of
[TABLE]
Now, we consider a typical case in which are positive real numbers and . The off-diagonal element of or is the function of the interatomic distance (). The eigenvalues are
[TABLE]
and the eigenvectors are
[TABLE]
The matrix has the eigenvalues and will be not positive definite in the limiting situation of . One may suspect that the limiting situation can appear, when the distance between the nuclei of atoms is approximately zero and that the two basis functions will be identical (). Among real materials, fortunately, the distance is so large that the limiting situation does not occur.
In general, the matrix size in generalized eigenvalue problem (1) is nearly proportional to that of the atoms (). For example, a typical model for the benzene molecule (C6H6), called the ‘sp’ model, gives one basis function for each hydrogen atom (H) and four basis functions for each carbon atom (C). The total number of basis functions or the matrix size is .
Matrix data of and for various materials are stored in the ELSES matrix library [30, 10]. The matrix data were generated by the electronic-state calculation software ELSES [27, 28, 29] with first-principles-based modeled (tight-binding) electronic-state theory. The atomic unit is used for the energy among the data files. For example, the matrix problem for a benzene molecule (C6H6) in the above model is stored as ‘BNZ30’. For many problems, the approximate eigenvalues are uploaded, as well as the matrix data of and , for the convenience of the researcher. The sparsity of the stored matrix data of and is explained briefly. As explained above, the indices and are the composite indices of the atom indices and and the orbital indices and , respectively (). Therefore, an element of the matrices and is expressed by the four indices as and , respectively. Since a matrix element value decreases quickly and monotonically as a function of the inter-atomic distance between the -th and -th atoms (), a cutoff distance can be introduced. A matrix element, or , is ignored, if , which makes the matrices sparse. More information on the data file in the ELSES matrix library is found in Ref. [10].
As a future issue, we should consider the numerical error in the input matrix data of and , because this error may affect the final conclusion. The possible numerical error can be decomposed into the two terms
[TABLE]
where and are the exact (theoretical) matrix data. The error terms and are called cutoff errors and stem from the cutoff procedure explained in the previous paragraph. The maximum element of or is on the order of in the case of PPE17994, for example. The cutoff error term will be eliminated when the full matrix data are adopted in the input matrices. The full matrix data are not stored in the ELSES matrix library, because these data consume a large amount of disk space. We intend to perform verification using the full matrix data when we integrate the verifier routines into the simulation software (ELSES), which generates the matrix data and includes the solver routine. The procedure with the full matrix data will not increase the computational cost, because all of the procedures use the dense-matrix algorithms. The error terms and , on the other hand, are called calculation errors and stem from the generating procedure of the matrices. The matrix is defined as the integral in (26). The three-dimensional numerical integral of (26) is obtained for the Slater-type functions [36] in prolate spheroidal coordinates, which is reviewed in Section II of Ref. [37]. The matrix is calculated from the matrix in a modeled (atom superposition and electron delocalization tight-binding) theory [38, 39, 28]. Evaluating the calculation errors and is an interesting topic and will be discussed in the near future.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Eigen Kernel, https://github.com/eigenkernel/ .
- 2[2] H. Imachi, T. Hoshi, Hybrid numerical solvers for massively parallel eigenvalue computations and their benchmark with electronic structure calculations, J. Inf. Process 24 (2016) 164–172.
- 3[3] K. Tanaka, H. Imachi, T. Fukumoto, T. Fukaya, Y. Yamamoto, T. Hoshi, Eigen Kernel - A middleware for parallel generalized eigenvalue solvers to attain high scalability and usability, Japan J. Indust. Appl. Math. 36 (2019) 719–742.
- 4[4] N. Yamamoto, A simple method for error bounds of eigenvalues of symmetric matrices, Linear Algebra Appl. 324 (1–3) (2001) 227–234.
- 5[5] S. Miyajima, T. Ogita, S. M. Rump, S. Oishi, Fast verification for all eigenpairs in symmetric positive definite generalized eigenvalue problem, Reliable Computing 14 (2010) 24–45.
- 6[6] S. Miyajima, Numerical enclosure for each eigenvalue in generalized eigenvalue problem, J. Comput. Appl. Math. 236 (9) (2012) 2545–2552.
- 7[7] T. Yamamoto, Error bounds for approximate solutions of systems of equations, Japan J. Appl. Math. 1 (1) (1984) 157–171.
- 8[8] J. Dongarra, Issue and solutions for extreme scale computing, in: HPC Asia 2018, Tokyo, Japan, 2018.
