Iterative approaches to the self-consistent nuclear energy density functional problem. Heavy ball dynamics and potential preconditioning
W. Ryssens, M. Bender, P.-H. Heenen

TL;DR
This paper introduces two algorithmic improvements, heavy-ball dynamics and potential preconditioning, that significantly accelerate the convergence of self-consistent nuclear energy density functional calculations, reducing CPU time and eliminating manual parameter tuning.
Contribution
The paper proposes two easily implementable, nearly parameter-free algorithms that enhance the efficiency of solving the non-linear self-consistency problem in nuclear EDF methods.
Findings
Heavy-ball dynamics and potential preconditioning reduce CPU time for convergence.
Algorithms require minimal manual tuning, improving robustness.
Demonstrated effectiveness on 3D coordinate-space HFB calculations.
Abstract
Large-scale applications of energy density functional (EDF) methods depend on fast and reliable algorithms to solve the associated non-linear self-consistency problem. When dealing with large single-particle variational spaces, existing solvers can become very slow, and their performance dependent on manual fine-tuning of numerical parameters. In addition, convergence can sensitively depend on particularities of the EDF's parametrisation under consideration. Using the widely-used Skyrme EDF as an example, we investigate the impact of the parametrisation of the EDF, both in terms of the operator structures present and the size of coupling constants, on the convergence of numerical solvers. We focus on two aspects of the self-consistency cycle, which are the diagonalisation of a fixed single-particle Hamiltonian on one hand and the evolution of the mean-field densities and potentials on…
| (fm) | ( | ||
|---|---|---|---|
| (a) | 32 | 1.0 | 0.015 |
| (b) | 40 | 0.8 | 0.012 |
| (c) | 50 | 0.6 | 0.006 |
| (d) | 64 | 0.5 | 0.004 |
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.
Taxonomy
TopicsNuclear physics research studies · Nuclear reactor physics and engineering · Advanced NMR Techniques and Applications
11institutetext: Center for Theoretical Physics, Sloane Physics Laboratory, Yale University, New Haven, CT 06520, USA. 22institutetext: IPNL, Université de Lyon, Université Lyon 1, CNRS/IN2P3, F-69622 Villeurbanne, France . 33institutetext: PNTPM, CP229, Université Libre de Bruxelles, B-1050 Bruxelles, Belgium
Iterative approaches to the self-consistent nuclear energy density
functional problem.
Heavy ball dynamics and potential preconditioning.
W. Ryssens 1122
M. Bender and P.-H. Heenen 2233
Abstract
Large-scale applications of energy density functional (EDF) methods depend on fast and reliable algorithms to solve the associated non-linear self-consistency problem. When dealing with large single-particle variational spaces, existing solvers can become very slow, and their performance dependent on manual fine-tuning of numerical parameters. In addition, convergence can sensitively depend on particularities of the EDF’s parametrisation under consideration. Using the widely-used Skyrme EDF as an example, we investigate the impact of the parametrisation of the EDF, both in terms of the operator structures present and the size of coupling constants, on the convergence of numerical solvers. We focus on two aspects of the self-consistency cycle, which are the diagonalisation of a fixed single-particle Hamiltonian on one hand and the evolution of the mean-field densities and potentials on the other. Throughout the article we use a coordinate-space representation, for which the behaviour of algorithms can be straightforwardly analysed. We propose two algorithmic improvements that are easily implementable in existing solvers, heavy-ball dynamics and potential preconditioning. We demonstrate that these methods can be made virtually parameter-free, requiring no manual fine-tuning to achieve near-optimal performance except for isolated cases. The combination of both methods decreases substantially the CPU time required to obtain converged results. The improvements are illustrated for the MOCCa code that solves the self-consistent HFB problem in a 3d coordinate space representation for parametrisations of the standard Skyrme EDF at next-to-leading order in gradients and its extension to next-to-next-to-leading order.
1 Introduction
Many-body techniques based on energy density functionals (EDFs) offer a microscopic description of both ground-state and excited-state properties of atomic nuclei Bender03 . These methods have in common that the total binding energy is calculated from a functional of one-body densities that are constructed from auxiliary product states. On the most basic level, the self-consistent Hartree-Fock (HF), HF+BCS, or Hartree-Fock-Bogoliubov (HFB) equations are solved self-consistently to determine a product state whose densities minimise the total binding energy for a given EDF. On a more advanced level, correlations beyond the mean field are described as either a superposition of particle-hole excitations on top of such a reference state, or by mixing different reference states constructed with some systematically varied auxiliary conditions.
Over time, many different implementations have been set up, differing in their choice of numerical representation and in the nature of the EDF. Compared with other microscopic methods, the computational cost of self-consistent mean-field methods scales rather favourably with system size, rendering the entirety of the nuclear chart accessible. The self-consistent equations present a nonlinear optimization problem, requiring iterative techniques to obtain their solution. Considering that every iteration requires the (approximate) diagonalisation of either a single-particle Hamiltonian or a quasiparticle Hamiltonian, computational requirements can nevertheless be substantial when employing large single-particle bases. As a result, computational resource requirements can still become a limiting factor, especially when aiming at systematic calculations across large sets of nuclei.
Large single-particle bases arise naturally in coordinate space approaches. Coordinate space approaches have the attractive feature that they offer easily controllable numerical accuracy, in both infrared and ultraviolet cutoffs, and this independently of the nuclear configuration Ryssens15 . For an harmonic oscillator (HO) basis, the other widely-used choice, control of convergence is much more delicate Arzhanov16 . However, in full 3d geometry already modest choices of spatial discretization lead to matrices whose storage exceeds by far the typical memory capacity offered by the latest high-performance computing facilities. Fortunately, for many applications one can avoid dealing with full matrices, as one is only interested in a limited set of single-particle states with the lowest energy.
In terms of numerical cost, a coordinate-space representation is particularly competitive for EDFs that yield a local mean-field Hamiltonian. The non-relativistic Skyrme EDF is arguably the most widely one used among these. In this case the structure of the EDF is motivated by the expectation value of contact interactions with gradients and is built out of products of local densities and currents with internal and external derivatives. Significant efforts have been made to push the adjustment of its parameters such that there are fits that provide an overall high-quality description of certain classes of observables Goriely09 ; Kortelainen14 . In the course of these studies, however, it has become clear that it is unlikely that any further significant improvement can be made within the standard form of the Skyrme EDF. This, in turn, motivates the ongoing study of its systematic extension.
The standard form of the Skyrme EDF includes terms up to second order in gradients, which in present terminology is called next-to-leading order (NLO). A possible and already explored way to extend it is to add higher-order bilinear gradient terms with four (next-to-next-to-leading order, N2LO) and six (N3LO) gradients Carlsson08 ; Raimondi11 ; Becker17 . Already the first exploratory test calculations with our codes involving such terms have indicated that widely-used algorithms for solving the self-consistent problem for standard Skyrme EDFs can fail to converge efficiently for these extended functionals, as we will discuss below.
The aim of this paper is to analyse the origin of the differences of behaviour between the parametrisations and to single out which terms of the EDFs govern the achievable convergence rate. We will then show how to improve the convergence properties of mean-field calculations, with two main requirements: to decrease the computing time and to set up algorithms whose convergence does not require a case-by-case fine tuning of numerical parameters that renders systematic calculations tedious. We focus on two aspects of the solution of the self-consistent mean-field equations in coordinate space. The first one is the diagonalisation of a given fixed mean-field Hamiltonian. We will call this part of the calculation the diagonalisation subproblem. It is usually achieved with some variant of the gradient-descent method in which a limited set of single-particle wave functions are evolved until they converge to the eigenstates with the lowest eigenvalues Maruhn14 ; Bonche05 . The second aspect is the evolution of the potentials entering the mean-field Hamiltonian, which depend on one-body densities constructed from the eigenstates of the mean-field Hamiltonian. We will refer to this part as the self-consistent field (SCF) subproblem. This second aspect of the self-consistent problem is often limited to a linear mixing of densities between two iterations. Two further subproblems have to be dealt with when solving the mean-field equations: we will address the treatment of constraints during the SCF iterations in a second paper, while our present strategy to treat the pairing subproblem is briefly evoked in appendix A.
We propose two improvements that are easy to implement in existing solvers: Heavy ball dynamics for the diagonalisation of the mean-field Hamiltonian and potential preconditioning for the evolution of the potential. These proposed improvements were implemented and tested with the MOCCa code RyssensPhd . This mean-field solver is based on the same principles as the public EV8 code Bonche05 ; Ryssens15a , but supersedes its functionalities by offering a wide range of symmetry options that give access to a larger range of applications.
While significant parts of the discussion are tailored to the Skyrme EDF equations in coordinate-space representation, the algorithms we discuss and the proposed improvements do neither depend on the choice of EDF nor on the choice of numerical representation and can also be easily adapted to other frameworks. Indeed, some groups also developed Cartesian 3d coordinate-space HF solvers that can handle the non-local exchange part of the finite-range Gogny interaction Matsuse98 ; Nakatsukasa13S . The additional integrals, however, substantially increase the computational cost, as would including pairing correlations. Therefore, systematic HFB calculations with this interaction are habitually performed in a HO-basis representation. The matrix elements of Gaussian forces then take a separable form which allows for very reasonable precision at moderate computational cost. Such representation in general favours iteration algorithms that evolve directly the Thouless matrix representing the HFB state Mang76 ; Egido95 ; Robledo11 instead of the strategy we will discuss below. For effective Hamiltonians that cannot be easily mapped on Gaussians, however, the advantages of using a HO basis are less evident. For example, the 3d HF solver designed for the realistic low-momentum interaction described in Ref. vanDalen14 uses the same plane-wave basis that also underlies Cartesian coordinate-space representations Ryssens15 .
This paper is organised as follows. In Section 2 we introduce the general form of the Skyrme functional used here as well as the self-consistent problem. We study the diagonalisation of the single-particle Hamiltonian in Section 3 and the iterative treatment of mean-field densities and mean-field potentials in Section 4. Finally, numerical tests of the proposed improvements are presented in Section 5.
2 The self-consistent Skyrme-HFB problem on a coordinate space mesh
2.1 The SCF equations with the two-basis method
The energy of the nuclear configuration is determined by an energy functional that consists of five terms Bender03 ; Jodon16
[TABLE]
These are the kinetic energy , the Skyrme EDF modelling the strong interaction between nucleons in the particle-hole channel, the Coulomb energy resulting from the electromagnetic repulsion between protons, a centre-of-mass correction and a pairing EDF modelling the strong interaction between nucleons of the same species in the particle-particle channel. These five terms are provided by functionals of normal and anomalous one-body densities that are calculated from an auxiliary many-body product state.
Depending on the treatment of pairing correlations, this state is either a Slater determinant (HF) or a Bogoliubov quasiparticle vacuum (HF+BCS and HFB), which is represented in an underlying basis of single-particle orbitals of dimension . Here and in the following, except when needed, we do not specify the isospin labels that introduce a block structure into all matrices in the single-particle basis.
Within a given single-particle basis, the single-particle Hamiltonian and the pairing tensor are defined by the functional derivatives of the EDF with respect to the normal density matrix and the anomalous density matrix RingSchuck
[TABLE]
Together they form the HFB quasiparticle Hamiltonian
[TABLE]
where the Fermi energy is a Lagrange multiplier whose value has to be adjusted to fix the average number of particles to the targeted number of neutrons () or protons (), respectively. The diagonalisation of yields a set of eigenvectors
[TABLE]
that represent the quasi-particle wave functions with quasi-particle energy , and which we call HFB basis.
One can solve the problem by diagonalising in the full space of dimension , which is for instance done in Pei14 . When is large, however, it becomes challenging to store the relevant matrices, let alone diagonalise them. The problem can remain feasible however, if one introduces a cutoff of the pairing interaction, reducing the number of quasiparticles to those that meaningfully contribute to the auxiliary state.
The two-basis method, first introduced in Gall94 , offers a straightforward way to introduce such a cutoff. The method relies on the construction of the single-particle states that diagonalise
[TABLE]
that is called the HF basis. Within this basis, a pairing cutoff can easily be defined as a function of the Fermi energy and the diagonal matrix elements of . This effectively limits the relevant space of the HFB problem to a small number of states in the HF basis. We denote the effective size of the HF basis by . The numerical burden is then completely shifted to the construction of the HF basis in the full single-particle space.
For this reason, we focus on the self-consistent construction of the HF basis in the following. While an appropriate algorithm for the partial diagonalisation of is an essential ingredient of a successful calculation, we assume that a reliable and fast implementation is available. In practice, the only output of such algorithm that is required for the purpose of our study is the set of matrix elements and in the HF basis. These can then be used to construct the mean-field densities as defined in Section 2.3.
2.2 Representation in 3D coordinate space
While leaving the discussion as general as possible, we assume a 3d representation in coordinate space. For the spatial discretization, we choose an equidistant Cartesian mesh with coordinate space coordinates , where the total number of points is determined by the distance between the discretization points and the volume of the box. Any function on the mesh is then represented by its values at the discretization points
[TABLE]
In particular, the single-particle wave functions are represented as spinors
[TABLE]
meaning that for each nucleon species one can construct different single-particle wave functions on the mesh. A typical choice is Ryssens15 , which implies a basis of single-particle wave functions for each nucleon species.
The integral of an arbitrary function over the volume of the box is given by the -point rectangular rule Ryssens15
[TABLE]
The calculation of the derivatives of functions is equivalent to a matrix multiplication. In the case of the Laplacian of a function at the point , one has to calculate
[TABLE]
where the matrices represent the second derivative in a given Cartesian direction. There are several possible choices for their form. We use Lagrange mesh derivatives Ryssens15 ; Baye86a , for which the are full matrices, as they provide very accurate results already for very coarse meshes, i.e. a modest number of mesh points . The Lagrange derivatives have the clear advantages that partial integrations are exact up to machine precision, and that higher-order derivative matrices can be calculated as products of matrices of first-order derivatives. Together with the quadrature rule of Eq. (9), they implicitly define an underlying basis of plane waves in a box Ryssens15 , such that this special case of coordinate-space representation can be unambiguously treated with the standard techniques of linear algebra.
A widely-used alternative are finite difference formulas. These correspond to sparse matrices that can be very efficiently multiplied, but on a given mesh are much less accurate than Lagrange-mesh derivatives Ryssens15 . The reasons are that partial derivatives are not exact and that higher-order derivative matrices are not numerically equivalent to repeated applications of the first-order derivative matrix. This can be compensated for by increasing the number of mesh points in for a given volume. For NLO Skyrme EDFs, there is also the time-tested possibility to arrive at very satisfying results by solving the HFB equations using finite-difference formulas and to recalculate all observables with Lagrange derivatives after convergence Ryssens15 . For terms with four derivatives in the Skyrme N2LO EDF, however, this procedure becomes less reliable.
2.3 The Skyrme functional
We discuss in detail the two terms from Eq. (1) that are relevant for our discussion: the kinetic energy and the Skyrme energy . For a discussion of the other terms, we refer to Ref. Ryssens15a .
The Skyrme part of the EDF is built out of local one-body densities. For the purpose of our discussion, it is sufficient to limit ourselves to the central and spin-orbit parts at NLO, for which we will analyse time-even and time-odd terms, and the time-even part of the N2LO functional with additional central terms as proposed in Becker17 . Further terms, such as tensor terms at NLO Lesinski07 ; Bender09 ; Hellemans12 , additional density dependences of NLO terms Goriely10 , and three-body interactions up to NLO Sadoudi13 ; Sadoudi13b have been considered in the literature, but as far as the numerical solution of the self-consistent mean-field equations is concerned, these do not behave differently from the terms discussed here.
Densities.
Assuming that all single-particle states either represent a neutron or a proton, the full one-body density matrix for the nucleon species , in coordinate space can be split into a scalar and a vector in spin space Perlinska04
[TABLE]
The are the elements of the density matrix determined by the solution of the HFB problem in the restricted set of states of the HF basis.
The local mean-field densities used to define the Skyrme EDF at NLO in its form relevant for our discussion are
[TABLE]
The local density , kinetic density and spin-current tensor density are even under time-reversal, whereas the spin density , kinetic spin density and current density are odd. As a consequence, the latter are zero when time-reversal invariance is imposed.
The N2LO Skyrme functional requires the introduction of additional local densities that either contain additional derivatives or have a more complicated tensor structure than the NLO densities. There are several possible choices Ryssens18 ; we use here the convention of Ref. Becker17 , where the densities that contribute in time-reversal-invariant systems are given by
[TABLE]
The densities and are time-even, whereas and are neither time-even nor time-odd. Note that the NLO densities and are contractions of the full tensor densities and needed for the N2LO functional.
The kinetic energy.
The kinetic energy can be written as a functional of the local kinetic density as
[TABLE]
where is the mass of the nucleon species , .
The Skyrme energy.
In what follows, we analyse the behaviour of time-even and time-odd terms at the NLO level on the one hand, and the behaviour of the time-even terms in an extended functional with N2LO terms on the other hand
[TABLE]
where the superscripts , , and indicate the order in derivatives and the subscripts and if the terms are bilinear in time-even or time-odd local densities, respectively. The various energy densities up to NLO read
[TABLE]
where proton and neutron densities have been recoupled to isoscalar () and isovector () ones, for example and . In the last term of Eq. (18) the summation is over Cartesian components of the tensor density, while the rank-1 contraction of the spin-current density is given by Lesinski07
[TABLE]
We have written Eqs. (18) and (20) with the usual convention that terms that have to be combined in order to ensure Galilean invariance of the EDF have the same coupling constant Hellemans12 .
Similarly, the part of the N2LO extension of the Skyrme functional depending on time-even densities can be written as
[TABLE]
where all sums are over Cartesian components of the tensors and where we have opted to label the coupling constants for each term separately, even though many are identical to guarantee the Galilean invariance of the EDF Becker17 .
The single-particle Hamiltonian.
To simplify the notation, we introduce the density-vector as a helpful shorthand for the set of mean-field densities. For the two cases we discuss below, it is given by
[TABLE]
where we use the indices , , …to refer to the individual components of , , .
With this density vector, the expression for the energy can be rewritten as . The individual terms in the single-particle Hamiltonian are then obtained by rewriting the variation of the energy with respect to the full density matrix in Eq. (2) as the sum of variations with respect to the individual densities as
[TABLE]
The derivative of the energy with respect to the density can be identified as an associated mean-field potential
[TABLE]
that in general depends on the density vectors and of both nucleon species.
In analogous fashion, we introduce the potential-vector , which for the two types of EDF we consider here reads
[TABLE]
The corresponding single-particle Hamiltonians can then be written as a function of these potential-vectors
[TABLE]
where we have ordered the various terms according to the order of gradients that act on the single-particle wave functions, from lowest (0) to highest (4). The operator structure of the individual terms results from the second functional derivative in the chain rule in Eq. (25). We also simplified the single-particle Hamiltonians in Eqs. (2.3) and (2.3) by using that the gradients of certain potentials vanish for the EDFs used here. For more details on the EDF at the NLO level, we refer the reader to Bender03 ; Hellemans12 . A detailed discussion of the full EDF at N2LO level, including the time-odd terms, will be given elsewhere Ryssens18 .
These equations show that the derivatives of the single-particle wave functions are needed at two different stages of the calculation, when summing up the local densities , and when calculating the action of the single-particle Hamiltonian on the single-particle states. To minimise the computational cost, it is customary to calculate all necessary derivatives only once each time a new set of single-particle states has been determined during the iterative process and to store them for later use during the iteration.
The gradients contained in the kinetic and Skyrme terms of the EDF determine to a large extent the behaviour of the strategies employed for the diagonalisation subproblem and for the SCF iterations. They enter into these terms in two distinct ways: either as an external gradient acting on a local density, for example , or as an internal gradient that is contained within the definition of a local density, as for example in the definition of , Eq. (13a). Internal derivatives within the densities determine the operator structure of , whereas external derivatives contribute to the expressions for the potentials . As we discuss in what follows, the operator structure of the single-particle Hamiltonian (and hence internal derivatives) determines the convergence of the diagonalisation subproblem, whereas external derivatives of the densities contribute to the expressions for the potentials .
2.4 The self-consistent problem
The single-particle Hamiltonian of the nucleon species is a function of the vector , which depends on the vectors of the densities and of protons and neutrons, which in turn are constructed from the single-particle wave functions. The equations to be solved are:
[TABLE]
Since the single-particle Hamiltonian depends on its solution, the problem is highly non-linear and can only be solved by an iterative process. All quantities that depend on the iteration number will be marked by a superscript :
[TABLE]
The usual strategy followed to solve the mean-field equations is composed of several separate, but linked, steps.
The first step is the (partial) diagonalisation of , to obtain a set of single-particle orbitals . With a fixed mean-field potential-vector , this is a linear algebra problem. We call this the diagonalisation subproblem.
In order to obtain the matrix elements of and , the second step is the restricted diagonalisation of the HFB Hamiltonian of Eq. (4). We call this the pairing subproblem, which is discussed briefly in Appendix A.
The third step is the evolution of the single-particle Hamiltonian from one iteration to the next. Suppose the single-particle Hamiltonian has been constructed in iteration . Its eigenstates, which we label as , then provide the starting point for the next iteration.
The ensemble of these steps defines a map on the space of :
[TABLE]
where is calculated from the mean-field densities using the formulas presented in Section 2.3. Since the potentials depend on the densities , we can alternatively formulate this process as a map on the space of the densities
[TABLE]
where this time the density is calculated from the single-particle states after diagonalisation of .
Self-consistency is achieved when the potentials and densities get mapped onto themselves, meaning that
[TABLE]
The evolution of the mean-field densities and potentials with the iterations should thus be aimed at finding the fixed points and of the maps and . We demonstrate in Section 4 that taking directly
[TABLE]
does in general not lead to a stable iterative process. A more robust procedure to determine and from the potential and density vectors at iteration is needed to achieve a stable iterative scheme. As already proposed in the introduction, we call the evolution of the potentials and densities the self-consistent-field (SCF) iteration, which is the frequently used terminology in atomic physics Pulay80 .
It is customary to introduce constraints on the expectation values of specific one-body operators into the mean-field equations, specifying for instance the multipole moments of the nuclear density. In practice, such constraints add terms to the single-particle Hamiltonian but otherwise affect neither the diagonalisation nor the SCF subproblems. We postpone the discussion of strategies how to efficiently treat constraints in the context of the algorithms discussed here to a future publication.
Since the mean-field Hamiltonian changes at each iteration, it is not necessary to perform an accurate diagonalisation at each SCF iteration. The densities and potentials can be constructed from approximate eigenstates of . In electronic structure physics, such procedure reduces the CPU time by an order of magnitude Zhou14 . In the case of a 3d coordinate space representation, this is particularly advantageous as the cost of diagonalising dwarfs the cost of updating the densities and potentials.
The division of the resolution of the mean-field equations in different steps is illustrated in Fig. 1. While all steps in this figure are coupled in a practical implementation, we will discuss them separately in the next sections.
3 The diagonalisation subproblem
3.1 Iterative diagonalisation
Given a single-particle Hamiltonian , generated by the potentials , we are looking for its exact eigenstates and its eigenvalues
[TABLE]
To exclude the trivial null solution and to enforce that the single-particle states are orthonormalised, the numerical solution of Eq. (36) has to be supplemented by constraints on orthonormality
[TABLE]
In practice, Eq. (36) is a matrix equation whose dimension is equal to the size of the basis used to solve the problem. If this dimension is small enough, the problem can be solved by a direct diagonalisation using standard library routines. Several codes using an expansion in a HO basis employ this strategy HFBTHO ; HFODD . This is also feasible in coordinate space representation when 1d spherical symmetry is assumed lenteur . We are interested in the following in cases where the dimension of the basis is too large to permit calculating and storing explicitly.
Very often one is not interested in the entire spectrum of in the numerical basis.111A counterexample is the construction of the reference state for quasiparticle RPA and its various extensions. For the calculation of the normal and pair densities, it is then sufficient to determine the single-particle orbits with single-particle energies below the pairing cutoff, see Appendix A. For HF calculations, does not have to be much larger than the number of nucleons. When pairing correlations are taken into account with an effective pairing interaction as defined in Refs. Rigollet99 ; Bender2000 , the value for in heavy nuclei is at most equal to twice the number of nucleons. This is several orders of magnitude smaller than the number of basis states in the coordinate-space representation. In these conditions, iterative determination of the lowest single-particle states is significantly less demanding in both CPU time and memory requirements than direct diagonalisation of in a basis of dimension .
Restricting the eigenvalue problem of Eq. (36) to the lowest states allows us to recast the problem. Consider the Rayleigh quotient associated with the single-particle Hamiltonian
[TABLE]
It can be shown SaadBook that the stationary points of correspond to the eigenstates of , and that at these points, is equal to the corresponding eigenvalue . Further we define
[TABLE]
With the constraint on orthonormality of the single-particle orbitals, Eq. (37), any set of eigenstates of is a stationary point of . In particular, we have for a set of indices , …,
[TABLE]
where different label the many local minima of . Each corresponds to a different combination of eigenstates of in the complete -dimensional space. The absolute minimum of is obtained for the single-particle states corresponding to the lowest eigenvalues of . For these we have
[TABLE]
The eigenvalue problem in Eq. (36) can be recast as a constrained optimization problem
[TABLE]
From Eq. (42), it follows that the eigenvalue problem can be solved by iterative methods. We introduce a second iteration counter that labels the evolution of the single-particle wave functions
[TABLE]
The natural starting point for the iterative diagonalisation is the set of single-particle orbitals from the previous SCF iteration, .
In the context of self-consistent mean-field models for which the diagonalisation is embedded into an SCF iteration, an approximate diagonalisation of is in general sufficient: instead of limiting the number of iterations by a convergence criterion the number of iterations is fixed to a maximum number .
The simplest iterative optimization technique is the method of gradient descent NumRecipes , which is frequently used for calculations involving EDFs Bonche05 ; Mang76 ; Davies80 , although sometimes with modifications as in Maruhn14 ; Reinhard82 .
We first discuss this algorithm and analyse its performance for Skyrme functionals at NLO and N2LO. Then, we will show how to improve on its convergence with a minor change in the algorithm that leads to a scheme dubbed heavy ball dynamics in the literature.
3.2 Gradient descent and heavy-ball dynamics for quadratic forms
Focussing on the problem of diagonalisation, we first sketch both gradient descent and heavy-ball dynamics for a schematic problem that often serves as a laboratory for the analysis of minimisation algorithms NumRecipes ; Goh2017 ; Qian99 .
Consider a quadratic form for a positive definite and symmetric matrix and a vector on a (unspecified) vector space Goh2017
[TABLE]
The minimum of is reached for
[TABLE]
The minima of coincide with the zeros of its first derivative with respect to
[TABLE]
minimising the function is thus equivalent to solving the system of coupled linear equations posed by setting Eq. (46) to zero.
An iterative solution of the minimisation is most easily analysed using a transformed variable
[TABLE]
so that we have
[TABLE]
At the solution of the minimisation problem, , . An efficient iterative scheme should thus provide an evolution of the transformed variable, such that as quickly as possible. We will demonstrate below that the spectrum of eigenvalues of , denoted by , strongly influences the possible convergence rate. In particular, the condition number of will play a crucial role. It is defined as the ratio between the largest and the lowest eigenvalues
[TABLE]
Gradient descent.
Starting from an initial guess , the gradient-descent update from iteration to iteration is given by
[TABLE]
where is a numerical parameter still to be specified. The evolution in terms of the variable can be developed into the eigenvectors of
[TABLE]
Inserting this into Eq. (50), we obtain for the expansion coefficients
[TABLE]
One can obtain the expansion coefficients at iteration from the initial value at iteration by applying times
[TABLE]
Under the condition that
[TABLE]
the value of is smaller than one, and the components of in Eq. (53) decay exponentially to zero at a rate that increases for larger eigenvalues. For this reason, the coefficient tends to zero the slowest out of all .
The overall rate of convergence is thus determined by . Combined with Eq. (54), this means that it is the spread in eigenvalues of that governs the convergence of the gradient-descent method. When the condition number, Eq. (49) of is large, gradient descent converges only slowly to the optimum of the function .
Heavy-ball dynamics.
In Ref. Polyak64 , B. T. Polyak proposed the heavy-ball algorithm to improve on the convergence behaviour of the gradient-descent method for the iterative solution of systems of linear equations. The heavy-ball update scheme is given by
[TABLE]
Compared to gradient descent, there is an additional term, which is usually called the momentum term, while is called the momentum parameter. This term introduces a memory effect that allows for speeding up the iterative process.
The analysis of this method is more involved than that of the gradient-descent method. As discussed in Refs. Goh2017 ; Qian99 , the algorithm converges to the minimum of on the condition that
[TABLE]
The components of the variable of Eq. (47) evolve according to
[TABLE]
The evolution determined by Eq. (57) is analogous to the one of a damped harmonic oscillator, as outlined in Appendix B. Three different regimes can be distinguished depending on the value of : the motion of can either be underdamped, overdamped or critically damped. For a given value of , the critical momentum value separating the regimes is given by
[TABLE]
If , the motion of is underdamped: undergoes slowly decaying oscillations around zero as a function of the iterations. By contrast, if , the motion of is overdamped. In this case, the coefficient does not oscillate, but decays exponentially to zero as for gradient descent. When , the motion is critically damped. For this particular value of the momentum parameter , the coefficient decays to zero significantly faster than in the other two cases.
However, the critical value for is different for every . It can be shown that the optimal compromise in terms of convergence rate of the errors between small eigenvalues and large eigenvalues is given by Qian99
[TABLE]
The optimal value of to be used in conjunction with this value of the momentum parameter is Goh2017
[TABLE]
where the second equality can be shown with straightforward algebra. This optimal value for is virtually equal to the upper limit dictated by Eq. (56), because in most cases of interest is large.
The optimal iterative parameters of the method are thus closely related to the condition number of , Eq (49): when is high, the momentum parameter should be taken close to 1. In such case, the size of can be nearly doubled compared to gradient descent, resulting in much faster convergence.
However, the advantage of heavy-ball dynamics over gradient descent goes beyond the factor two on the upper limit of , as will be demonstrated with practical examples in Section 5. One can prove that heavy-ball dynamics Goh2017 ; NesterovBook with optimal parameters , achieves the fastest convergence rate that is theoretically possible across a range of similar methods: it is impossible to do better using algorithms that only incorporate information on the first-order derivatives of the quadratic form given by Eq. (44).
3.3 The gradient descent method applied to the diagonalisation
subproblem
The schematic problem discussed in Section 3.2 is a simplification of the self-consistent mean-field problem that we want to solve. Nevertheless, both gradient descent and heavy-ball dynamics can be employed with only minor modifications.
The gradient of the Rayleigh quotient, Eq. (38), with respect to the -th single-particle wave function is given by
[TABLE]
taking into account that is normalized and where is the -th diagonal matrix element of
[TABLE]
The gradient-descent update from iteration to for the -th single-particle wave function is then given by
[TABLE]
The do not constitute an orthonormal set, even if the do. For this reason, the algorithm needs to be complemented by an explicit orthonormalisation step that transforms the set of into an orthonormal set by, for instance, a Gram-Schmidt process. This step can be seen as a projection on a feasible set NumRecipes ; a more precise name for the algorithm would in fact be projected gradient descent. An alternative to the orthonormalisation step is to add a set of Lagrange constraints to the optimization problem in Eq. (42), as for example done in Ref. Gan01 .
In the context of nuclear mean-field methods, the gradient-descent evolution of the single-particle wave functions was originally derived from the first-order approximation to the operator of evolution in imaginary time Davies80 . For this historical reason we have replaced the step size by . The gradient descent method is often called imaginary time evolution Bonche05 . In other fields of physics, such appellation is used for more advanced techniques to approximate the exponentiation of the single-particle Hamiltonian Bader13 .
The similarities between the simpler problem of Section 3.2 and the mean-field problem are revealed by comparing Eqs. (61) and (50): the gradient of the Rayleigh quotient is similar to that of a quadratic form, where plays the role of the matrix . There are however two important differences: the first one is that the second term in Eq. (61) varies from one iteration to the next, whereas the vector was kept fixed in Eq. (50). The second difference is that the self-consistent problem requires the evolution of many single-particle wave functions, constrained to be orthonormal, whereas we considered only one vector in Section 3.2. Because of these differences, we cannot provide an analytical formula of the evolution of the single-particle wave functions, whereas for the simplified problem we are able to write down Eq. (53).
As for the schematic problem of Section 3.2, the gradient-descent method only converges for a limited range of values of . For fast convergence, it is advisable to use the largest feasible value. Since for all one has , the value of is an upper bound for the largest eigenvalue of . By analogy to the schematic problem, we obtain a condition on
[TABLE]
see also the discussion in Refs. Ryssens15 ; Bonche05 ; Davies80 ; Reinhard82 . Unfortunately, Eq. (64) does not offer a practical way of selecting at the first iteration. While is in general a sufficient estimate of , no information is available on .
A robust way to judge the convergence of the diagonalisation subproblem is evaluating the weighted dispersion of the single-particle energies , defined as
[TABLE]
Weighting the individual contributions by the diagonal matrix element of the density matrix Ryssens15a limits the sum to those single-particle states that contribute to observables. Small (large) values of this quantity indicate that the single-particle wave functions at iterations are good (bad) approximations to the eigenstates of .
3.4 The choice of and the largest eigenvalue of
The upper end of the spectrum of depends not only on the parametrisation employed and the numerical representation of the single-particle wave functions, but in a weaker way also on the particular configuration of potentials at iteration . For a general case, a precise analysis is not straightforward. Some inferences can be made based on the operator structure of the single-particle Hamiltonian, which in turn is determined by the operator structure of the local densities through Eq. (25).
For NLO Skyrme EDFs, such analyses have been made before, see for instance Ryssens15a ; Reinhard82 . In that case, the maximal eigenvalue of is dominated by the kinetic energy of the corresponding eigenstate. The variation of the energy with respect to results in the presence of a Laplacian operator in the single-particle Hamiltonian . Whereas other terms from Eq. (18) also contribute to the potential , and a Laplacian operator also appears in the time-odd term multiplied by , the contribution from the kinetic energy, Eq. (14), can be expected to be by far the dominant one, as otherwise one would work with a parametrisation whose effective mass takes an unrealistic value in one of the various spin-isospin channels.
The largest kinetic energy is found for the oscillatory mode with the shortest wavelength that can be represented in the chosen numerical representation. In a coordinate-space representation using an equidistant mesh as done here, the analysis is straightforward: the state that oscillates the most quickly has one node less than there are mesh points. On a mesh with spacing , the momentum of a state with wavelength therefore provides an upper bound for the maximum momentum
[TABLE]
where the factor arises from the contributions of all Cartesian directions. In that case the maximal eigenvalue of scales with the mesh spacing as
[TABLE]
Inserting relation (67) into Eq. (64), one finds that the maximal allowed value of decreases quadratically with the mesh spacing, as was discussed in Bonche05 ; Ryssens15a .
For N2LO functionals, the analysis is much less clear cut. Compared to the NLO case, there are additional contributions with two gradients to the single-particle Hamiltonian, Eq. (2.3), that have a more complicated tensor structure than the NLO terms. More importantly for our analysis, there are also terms with three or four gradients acting on the wave function in Eq. (2.3). The contribution of those containing three gradients to the highest eigenvalue of scales as , and those with four gradients even scale with . Because of the contribution from the kinetic energy, can be expected to be positive and the dominant one among terms with two gradients. By contrast, the potentials specific to N2LO can all have either sign. For given , the dominant contribution to the highest eigenvalue of depends then on the relative sizes and signs of the various N2LO potentials when compared to .
In the most unfavourable scenario, is positive and of a size that makes a large positive number, such that the largest single-particle energy that can be represented on the mesh scales with instead of , leading to larger values than what is estimated for NLO functionals, Eq. (67). The step size of the gradient descent for the diagonalisation subproblem then has to be reduced accordingly, slowing down the convergence rate.
More importantly, because of the parametrisation-dependence of the relative sizes and signs of the potentials multiplying three and four gradients, for future N2LO parametrisations we have to expect a wide variation in the largest eigenvalues of on a given mesh. This, in turn, will lead to a large spread in the performance of gradient descent for the diagonalisation subproblem. To illustrate this point, we have constructed a set of toy N2LO parametrisations based on the SN2LO1 parametrisation Becker17 , for which all of the N2LO coupling constants have been set to zero, except for and . Figure 2 shows the largest value of for which a gradient-descent calculation for 40Ca converges, as a function of the mesh discretization . When , the toy parametrisation does not contain N2LO terms anymore, such that the curve represents the typical behaviour found at NLO. For non-zero values of the N2LO coupling constants, and depending on their sign, the maximal allowable value of either increases or decreases with respect to the NLO curve. This variation is quite large; at fm, there is a factor of about two difference in (and hence convergence rate) when changing the sign of and . Even for this modest range of coupling constants, the sensitivity of the maximal value is rather high, a situation that is not desirable at all when has to be set by hand.
3.5 Heavy-ball dynamics for the diagonalisation subproblem
The heavy-ball update from iteration to iteration for the -th single-particle wave function is given by222We recall that the index labels the iterations of the SCF subproblem where the single particle Hamiltonian is updated and labels the iterations of the diagonalisation of .
[TABLE]
For the first iteration, , one initializes with from the last iteration performed with the previous Hamiltonian . An orthonormalization of the single-particle wave functions is also needed at each iteration. Compared to the gradient-descent method, this algorithm does not require extra CPU time, but only extra storage of the auxiliary variables .
We expect from Eq. (56) that the algorithm converges under the condition that
[TABLE]
Figure 3 illustrates the dependence of the convergence speed on the specific choices made for and for the case of the diagonalisation subproblem of 16O. For a given , the amount of iterations needed to converge is smallest for values of just below the ceiling value of Eq. (71). As increases, the ceiling value for increases as well, until for it almost doubles compared to the gradient descent case. The overall minimum of iterations needed is, however, achieved for a specific value of , here close to 0.6.
The heavy-ball method has the same drawback as the gradient-descent method: the optimal selection of depends on the numerical basis and the form and parametrisation of the EDF. To complicate the situation, the additional parameter also impacts the convergence rate. In the next section, we propose an algorithm to select appropriate values of the iterative parameters dynamically during the optimization process.
3.6 Dynamical update of the iteration parameters
We are not aware of a theoretical study to find the optimal parameters for either gradient descent or heavy-ball dynamics applied to an optimization problem similar to that of Eq. (42). We therefore propose, without detailed analysis, a few simple formulas that are inspired by the results of Section 3.2 and which can be used to dynamically estimate appropriate numerical parameters at every SCF iteration , eliminating all need for human fine-tuning.
For both algorithms, we first need an estimate for the largest eigenvalue of the single-particle Hamiltonian, . For its determination, we introduce an extra single-particle wave function that does not participate in the evolution of the single-particle states the nuclear observables are calculated from. Introducing a third iteration counter (k), we evolve this auxiliary wave function with the so-called power-iteration scheme SaadBook
[TABLE]
For , will converge to the eigenstate with largest possible eigenvalue of . In practice, one does not have to reach large accuracy to obtain an estimate of
[TABLE]
that serves our purpose. In general, a few iterations of Eq. (72) suffice to determine to within a few MeV. The converged auxiliary state from the previous SCF iteration can be used as starting point at iteration . As is a highly oscillatory state, at the very first SCF iteration it can be initialized using a random number generator.
For heavy-ball dynamics, we also need to estimate the momentum parameter. By analogy to Eq. (59), we propose to set
[TABLE]
where is the analogue of the condition number of the matrix in Section 3.2. Because of the simultaneous optimization of many eigenvalues under an orthogonality constraint, we cannot use Eq. (49). After some numerical experimentation, we have adopted the prescription
[TABLE]
where is given by Eq. (73) and is the smallest positive quasiparticle energy of the HFB Hamiltonian. In our experience, Eq. (75) provides a robust estimate for when fed into Eq. (74). This formula has been tailored for the optimization of the diagonalisation problem embedded into SCF iteration under the assumption that only the occupied single-particle states need to be well converged. Other applications will require a different recipe.
Using Eq. (74) to calculate the momentum parameter, we set
[TABLE]
where we introduced a factor to guarantee that Eq. (71) holds. To obtain a dynamical estimate for the step size for use in a gradient-descent approach, it is sufficient to set in Eq. (76). In practice, we have empirically fixed the factor to in Eq. (76). This empirical choice guaranteed convergence in all of the many calculations we performed since implementing this scheme.
3.7 Comparison to other approaches
Gradient-based schemes are used by the nuclear physics community for decades, with Mang76 ; Davies80 being among the first detailed references describing the application of such methods to the self-consistent HF and HFB problems.
More advanced iterative methods have been developed since. One example is the nonlinear conjugate-gradient method Egido95 . Like the scheme described in Ref. Mang76 , it is often used to address the diagonalisation and SCF subproblems simultaneously. Like many other advanced optimisation schemes NumRecipes , this method relies on an adaptive step size, which needs to be chosen in some optimal way at every iteration. Its determination is usually accomplished by some variation of a line-search method, which requires multiple evaluations of the total energy, each time for a different set of single-particle states. Compared to the simple gradient scheme described above, in coordinate-space representation, the necessary multiple construction of derivatives of single-particle states and summation of densities increases the numerical cost per iteration by a large factor, as these are the most costly tasks. Heavy-ball dynamics does not have this drawback, as it does not require any evaluation of the total energy or of single-particle matrix elements in addition to those already needed for the unmodified gradient descent.
As a last remark, we note that the heavy-ball update scheme presented here is quite similar to that of Car-Parrinello dynamics Car85 , a widely-used method in atomic density functional theory Hutter12 . In Car-Parrinello dynamics, the analogue of the momentum parameter is usually called the fictitious electron mass, and has the same impact on the convergence rate. To the best of our knowledge, the only application of this method to a nuclear problem is described in Ref. Matsuse98 .
3.8 Summary and MOCCa implementation
As mentioned before, for calculations performed on a 3d mesh, the diagonalisation subproblem is much more CPU intensive than the evolution of the mean-field potentials and densities because it requires to determine the derivatives of the single-particle wave functions. In practice, the most appropriate choice is to restrict the diagonalisation of to a single iteration, . For this particular choice, the extra iteration index is superfluous and we will drop it in what follows. The auxiliary variables in Eq. (70) become
[TABLE]
A single iteration of the heavy-ball algorithm can be summarised as
Calculate , Eq. (73), by evolving according to Eq. (72), starting from . 2. 2.
Calculate and using Eqs. (76), (74). 3. 3.
Obtain all from Eq. (70). 4. 4.
Orthonormalize to obtain the set of . 5. 5.
Calculate for use in the next iteration.
The gradient-descent algorithm consists of the same steps with .
The efficiency of the heavy-ball approach and the dynamical estimates for the numerical parameters proposed in Section 3.6, is illustrated by Fig. 4. It shows the number of iterations needed to converge the diagonalisation subproblem for three different spherical nuclei as a function of the mesh discretization . Results obtained with the gradient-descent algorithm and heavy-ball dynamics with dynamically estimated values for and are compared. Recalling that the computational time per iteration is virtually the same in both schemes, the heavy-ball algorithm is several times faster than the gradient-descent approach, and this for all mesh discretizations . More strikingly, the number of iterations needed to converge the heavy-ball algorithm is (almost) independent of the mesh discretization. As discussed in Section 3.4, for the EDF used here the largest eigenvalue of the single-particle Hamiltonian increases with the inverse of the square of the mesh spacing, Eq. (66), increasing the spread in eigenvalues of the single-particle Hamiltonian. The maximal value of decreases for smaller , which significantly slows down the gradient-descent algorithm. Heavy-ball dynamics with dynamically adjusted parameters is able to compensate for this spread, validating also the recipe provided by Eqs. (74) and (76).
4 The SCF Iterations
4.1 Position of the problem
We now investigate the second aspect of the solution of the self-consistent mean-field equations, which is the SCF subproblem of evolving the single-particle Hamiltonian from one self-consistent iteration to the next. For the sake of simple notation, we drop again the isospin index of densities and potentials.
As discussed in Section 2, the aim is to find the fixed point of the maps and . The most straightforward way to iterate the fixed-point problem of Eq. (33) is to calculate the mean-field densities and potentials of iteration from the single-particle wave functions, obtained by the approximate diagonalisation of in the previous iteration
[TABLE]
where we use the notation to emphasize that the right-hand-sides of these relations are the potentials and fields obtained by direct calculation from the single-particle wave functions at iteration , using the formulas from Section 2.3. The scheme defined through Eqs. (78) and (79) does not lead to a stable iterative process, except in isolated cases. To understand why, consider the behaviour of the map given by Eq. (33) in the vicinity of a fixed point . If the error on the mean-field potentials is , one can write
[TABLE]
When Eq. (78) is used to generate a new set of potentials , the deviation from the fixed point at the next iteration can be approximated by
[TABLE]
where is the Jacobian of the problem for the potential at the fixed point,
[TABLE]
In a similar fashion, we obtain for the mean-field densities in the vicinity of the fixed point
[TABLE]
Supposing that the linear approximation holds for all subsequent iterations, we obtain after further iterations
[TABLE]
This evolution only converges to a fixed point when the matrices and are contractive, that is if all of their eigenvalues are smaller than one in absolute size. When any eigenvalue is larger than one, then the iterative process in general diverges, as errors get amplified from one iteration to the next.
The problem of such divergences has been extensively discussed in the context of self-consistent calculations of atomic systems. In that case, the electron density can engage in long-wavelength oscillations from one iteration to the next, which is often called charge sloshing. Especially in metallic systems, where small changes in input electron density produce large changes in the output electron density, special measures need to be taken to safeguard convergence LinLin12 . It is the spectrum of the Jacobians and , and through them the form of the interaction, that determines convergence: in the atomic case, the divergent modes are because of the long-range character of the Coulomb potential. For nuclear Skyrme EDFs, we show in the next section that the presence of external derivatives of local densities in the EDF, Eq. (15), gives rise to divergent short-wavelength modes.
The instability of the iterative scheme of Eqs. (78) and (79) because of short-wavelength changes in the density is illustrated by Fig. 5 for the NLO parametrization SLy4. The total density of 40Ca obtained by SCF iterations directly using and is shown for iterations 13 to 16. At iteration 13 the central density still looks smooth. During the subsequent iterations, short wavelength deviations from the fixed point are quickly amplified by the iterative process: at iteration 14 small unphysical oscillations are visible and from iteration 16 onwards the corresponding total energy becomes positive.
Although the evolution of the densities with iteration number is very similar, this instability is different in nature from the finite-size instabilities that have been studied for the Skyrme EDF in Refs. Hellemans13 ; Lesinski06 ; Pastore2015 . The divergence illustrated by Fig. 5 is entirely numerical, and its appearance a consequence of the iterative scheme unintentionally introducing oscillatory behaviour in the density that drives the system to a less bound state. By contrast, finite-size instabilities occur when the properties of an EDF parametrization are such that infinite inhomogeneous nuclear matter is more bound than the homogeneous phase and are thus a characteristic of a parametrization. All nuclear EDFs have to have such an instability in the , channel, which is responsible for the formation of finite nuclei. However, it has recently been pointed out that many parametrisations of the nuclear EDF also exhibit non-physical finite-size instabilities in other , channels Hellemans13 ; Lesinski06 ; Pastore2015 ; Martini18x ; Gonzalez18x . When these degrees of freedom can be resolved by the numerical representation used, the calculations are driven towards a highly oscillatory state that is more bound than a state with conventional density distribution, irrespective of the technique used to solve the mean-field equations. The numerical instability illustrated by Fig. 5, on the other hand, can be completely eliminated by adapting the iterative scheme, as we will show in what follows.
4.2 Highest eigenvalues of the Jacobians
Using the chain rule for derivatives, one can write for
[TABLE]
and similarly for . To obtain an idea of the behaviour of the second partial derivative in Eq. (86), consider a variation of the density of the form
[TABLE]
where is a small constant. For large values of , the variation in the potential can be estimated to be
[TABLE]
where for sake of simple argument we omit the isospin structure of the single-particle Hamiltonian that couples perturbations in the density of one nucleon species to changes in the potentials of both species. Even if is very small, such density components can make the evolution of the potentials divergent. The potentials and are the most volatile, since at a given order of functional (NLO, N2LO or N3LO), they contain the highest number of external derivatives of a local density, which is either or .
In electronic structure calculations, the partial derivative of the output densities with respect to the potentials , that constitutes the other part of Eq. (86), is called the susceptibility LinLin12 . It encodes the response of the system to a change of the potentials. In the context of EDF approaches, it is not obvious how to approximate this response efficiently: it depends sensitively on the changes in the single-particle wave functions that contribute to the densities. The eigenvalues of the matrices depend in this way on the technique used to solve the diagonalisation subproblem. In our case, thanks to the iterative diagonalisation by either gradient-descent or heavy-ball dynamics, the change in the wave functions from one iteration to the next can be expected to be limited in size.
As discussed in Section 3 for the diagonalisation subproblem, it is the numerical representation that determines the scaling of the eigenvalues of and . In coordinate space, the largest representable can be estimated by Eq. (66). For an NLO functional, the largest eigenvalue of the Jacobian scales with . For a general N2LO functional, the analysis depends on the balance between the contributions in Eq. (4.2). The first, and so far only, available N2LO parametrisation fitted to the properties finite nuclei, SN2LO1 Becker17 , has coupling constants that are both below 1.0 MeV. With this, they are much smaller than the almost one hundred MeV for this parametrisation’s value of . As we show in the next section, for SN2LO1, the NLO terms dominate the eigenvalues of the SCF Jacobians for typical choices of .
4.3 Linear mixing
A simple method to achieve convergence, even in the presence of a Jacobian with large eigenvalues, is to perform a linear mixing between the updated potentials and densities and those from the previous iteration. We replace Eq. (78) and Eq. (79) with
[TABLE]
where and are parameters between zero and one, which can be chosen differently for each density and potential. Using these equations to generate the evolution of the potentials and densities, the expression equivalent to Eqs. (84) and (85) become after iterations
[TABLE]
The appropriate size of these mixing constants is related to the maximum eigenvalues of the Jacobians, as discussed in the previous section.
To illustrate this, we have constructed two sets of modified versions of the SLy4 NLO parametrisation with systematically varied coupling constants of the time-even gradient terms. For the first set, the isovector terms are set to zero, , while the original coupling constant of the isoscalar term is multiplied with a scaling factor between zero and one. The second set fixes at the value of the original parametrisation and scales the isovector coupling constant instead. For reference, the original SLy4 values of the coupling constants are MeV fm*-5* and MeV fm*-5*, respectively.
Using the first set of modified parametrisations, Fig. 6 shows the maximum value of for which a calculation for 40Ca converges for different mesh spacings , keeping . For a Skyrme functional with , no mixing is necessary to converge the calculation for any choice of mesh spacing in our numerical representation, such that the SCF update parameter can be set to . For finite , the value of has to be reduced in order to obtain a stable iterative process. For given , the largest feasible decreases when increasing the absolute value of , and it also decreases when diminishing for constant non-zero . For a typical choice of fm, has to be smaller than 0.4. For other configurations or other nuclei the ceiling value might be slightly different, such that a safe value that works for all cases has to be chosen even smaller.
Figure 7 shows the largest feasible value of for the second set of parametrisations when varying and . While the values of are very similar for most parametrisations of the Skyrme NLO functional, those for vary on a much wider scale. The ratio cannot be increased by a large factor, though; when reaching values of about 2 the non-physical finite-size instabilities discussed in Refs. Hellemans13 ; Lesinski06 ; Pastore2015 set in. There are, however, some parametrisations for which has the opposite sign and several times the absolute size compared to SLy4. Examples are UNEDF0 ( MeV fm*-5*) Kortelainen10 , UNEDF1 ( MeV fm*-5*) Kortelainen12 , and also UNEDF2 ( MeV fm*-5*) Kortelainen14 . The range of covered in Fig. 7 extends to these values. When becomes comparable to in size and sign, the maximal feasible value of has to be reduced below the value dictated by the isoscalar term alone.
Figures 6 and 7 address the possible interplay between the size of the coupling constants of the gradient terms and the possible choices for numerical parameters that control the convergence rate of SCF subproblem for the case of a time-reversal conserving calculation. When breaking time-reversal invariance, the analysis has also to consider the sign and size of the coupling constants , , of the gradient terms of the spin density in Eq. (20). The corresponding terms behave very similar to the isovector term multiplied by : too large positive values of the lead to non-physical finite-size instabilities, whereas for very large negative values of the size of the mixing parameter has to be adapted. In fact, the non-convergence of calculations for large, negative values of reported in Ref. Hellemans12 can be remedied by lowering below the value used in that study. When also including terms from a genuine contact tensor force in the Skyrme EDF Lesinski07 ; Hellemans12 , there are additional second-order gradient terms containing the divergence of the the spin density that are to be considered in the analysis. For the N2LO Skyrme functional, Eq. (2.3), with its gradient terms that also contribute to other potentials the situation will be further complicated, as is the case when considering three-body terms with gradients Sadoudi13 .
The parametrisation dependence of the largest possible mixing parameter introduces a parametrisation dependence of the highest achievable convergence rate of the SCF iteration when using linear mixing of densities, Eq. (90), as smaller values of inevitably slow it down. The difference can be quite substantial. This is illustrated by Fig. 8 that displays the error on the total binding energy of 40Ca in a calculation with the original SLy4 parametrisation for different values of the mixing parameter as a function of iteration number. For this choice of mesh with fm, converges the calculation to the 0.01 keV level in about 70 iterations. In a calculation with , after the same number of iterations the energy still changes on the 1 MeV level, and almost 1000 iterations will be needed to reach the level of 0.01 keV error.
The main advantage of linear mixing is its simplicity. It has, however, the serious limitation that the mixing parameter has to be fine-tuned to the parametrisation and mesh, resulting in vastly different convergence rates in different circumstances. To the best of our knowledge, no heuristic exists for selecting parameters prior to a calculation and manual experimentation is required to guarantee stability for a given combination of nucleus, mesh and EDF parametrisation while not needlessly sacrificing CPU time.
4.4 Preconditioning
All modes of the change of density are treated on an equal footing by linear mixing, irrespective of the size of their . In order to obtain an algorithm that allows for propagating long and short wavelength changes of the densities or potentials differently, we replace Eqs. (89) and (90) by
[TABLE]
The matrices and act as preconditioners of the fixed-point iteration. Their most useful form in general depends on the nature of the nuclear EDF, the chosen geometry and the numerical representation, and in general has to be a compromise between numerical efficiency, robustness, and numerical cost. We propose to use a preconditioner of the form
[TABLE]
where and are numerical parameters and is the Laplacian. Both and must be positive, in order for the matrices and to be positive definite on the mesh.
To illustrate the effect of a preconditioner of the potential, , take again as an example the response of the potential of the Skyrme N2LO functional, Eq. (4.2), to a change of density of the form (87)
[TABLE]
For modes with small , does not impede progress, as for those modes . When is large, the preconditioning matrix slows down the oscillatory components, since in that case.
While in principle the preconditioning of the densities in Eq. (94) is a possible alternative to the preconditioning of the potentials, it is not as practical and well-behaved: there are stringent constraints on the mean-field densities that are not present for the potentials. The density , for example, needs to be positive everywhere while its integral has to be equal to the number of particles. Unlike the linear mixing of densities, Eq. (94) does not conserve such properties from one iteration to the next, requiring additional measures to rectify this issue. For this reason we set , placing the burden of slowing down the oscillatory modes completely on the preconditioning of the potentials.
We note in passing that the simple form of Eq. (93) is but one possible way to differentiate between changes in potentials of different wavelengths. For N2LO parametrisations with large values of for instance, it might be of interest to incorporate an extra Laplacian in the preconditioning matrix. In fact, one can easily tailor more advanced prescriptions for different types of parametrisations or even employ different preconditioners for each individual contribution to the various potentials. Using Eq. (93) with an appropriate choice of , however has sufficed to stabilize the SCF subproblem in all cases we have encountered so far.
4.5 Practical implementation and choice of
Let us first discuss how to implement the preconditioning scheme. The matrix is a full matrix on the coordinate mesh, and storing it as well as performing the matrix multiplication in Eq. (93) would be prohibitively expensive. Its inverse, , however, has a simple structure on the mesh, since the Laplacian is the sum of three separable matrices, see Eq. (2.2).
We obtain the update of every preconditioned potential in Eq. (93) by solving the following linear system
[TABLE]
with a conjugate gradient method NumRecipes . We obtain in this way the potentials at the next iteration, , at the cost of only a few matrix multiplications with for every mean-field potential.
In practice it is not even necessary to damp all of the mean-field potentials with a preconditioned update. It has sufficed in all calculations we performed so far to precondition only and also when time-reversal is broken. In this way, we only solve Eq. (97) for at most four real functions on the mesh and the numerical cost of the preconditioning is further reduced. In the end, the amount of applications of the Laplacian required to perform the preconditioning is negligible compared to the applications of the Laplacian to the full set of single-particle wave functions at every iteration.
Finally, let us discuss the choice of . As with linear mixing, too small values render the iterative process unstable, whereas too large values unnecessarily slow down convergence. We have not succeeded in finding a way to optimize systematically the parameter . The convergence speed of the fixed-point iteration is however significantly less sensitive to a fine-tuning of this parameter than in the case of linear mixing. Figure 9 shows the difference in the error on energy as a function of the iterations for SLy4 for different values of . For , the iterative process is unstable. For larger values of the convergence rate becomes progressively slower, but at a moderate pace: the overall convergence is not very sensitive to the precise value of .
The value has turned out to be an acceptably fast and stable for virtually all nuclei, parametrisations, and choices of mesh discretization considered in this paper and all other calculations we performed with this scheme so far. The only exception we encountered so far is the UNEDF1 parametrisation Kortelainen12 , which requires a larger value of to reliably converge. This unusual behaviour is again a consequence of this parametrisation’s large negative value of the coupling constant (see Section 4.3), such that it sets the scale for numerical behaviour instead of , which is dominant for most other parametrisations.
4.6 Comments on some alternative approaches
Self-consistent density functional calculations in atomic physics have to safeguard the iterative process against long-wavelength oscillations of the electron density. The preconditioner proposed by Kerker Kerker81 is widely used to suppress charge sloshing. It can be interpreted as a high-pass filter, whereas Eq. (93) represents a low-pass filter.
A preconditioner could in principle also be used for the diagonalisation subproblem. The iterative technique of damped gradient iteration proposed in Ref. Reinhard82 ; Blum92 can be viewed in this way: it combines gradient-descent and a pre-conditioning step, similar to Eq. (95), for the update of the single-particle wave functions. This technique is for example used in the Sky3D code Maruhn14 . The iterative scheme described in Ref. Robledo11 utilises a preconditioning of quasiparticle wave functions in a gradient-based scheme to solve the HFB equations in that basis. In a representation like ours, the cost per iteration of preconditioning the states is much larger than that of preconditioning the potentials as it requires a much larger number of applications of derivative operators.
The two approaches (linear mixing and preconditioning) presented here use only information on the mean-field potentials and densities at iteration to construct the potentials and densities at iteration . Several techniques exist that aim to speed-up the convergence of the SCF subproblem by accounting for the mean-field potentials and densities from a larger number of past iterations. The Broyden method mixes potentials with a memory across multiple SCF iterations and has been successfully used to speed-up the convergence of EDF calculations in the existing solvers HFBTHO and HFODD Baran08 . Another method, mixing the densities across multiple SCF iterations is known either as Pulay mixing or the direct inversion in the iterative subspace (DIIS) method Pulay80 . This method and several variants of it Pulay82 ; Kudin02 are widely used to accelerate self-consistent electronic stucture calculations. Both methods, Broyden and DIIS, serve the purpose of accelerating the SCF convergence and do not by themselves guarantee a stable iterative process. These methods can be viewed as providing more advanced updates for the right hand sides of Eqs. (89) and (90), but both still incorporate a mixing parameter, similar to and , that has to be taken small enough to stabilise the iterative process. Although these methods have their qualities, we have limited ourselves to a detailed analysis of the approach that we have presented here, as it fulfils all our requirements: it markedly improves the convergence speed without significant increase of the computational time per iteration or of the memory requirements, while being rather insensitive to the choice of numerical parameters.
5 Numerical tests
5.1 Conditions of the tests
The goal of this section is to compare the convergence properties of the schemes that we have developed in the two previous sections with what we have used in the past for typical situations encountered when calculating complex nuclei. The most detailed tests are performed with the SLy5s1 parametrisation of the Skyrme NLO functional Jodon16 , which provides a good description of the deformation properties of heavy nuclei Ryssens18b . For this parametrisation, we will study the convergence for calculations of the ground state of even-even spherical, axially deformed, triaxially deformed and octupole-deformed nuclei, and give also an example from a calculation with broken time-reversal symmetry. To examine the differences between the convergence of NLO and N2LO Skyrme EDFs, some of these calculations have also been repeated using the SN2LO1 parametrisation of the latter Becker17 instead.
Four sets of calculations have been performed, using the four possible combinations of gradient descent (GD) and heavy-ball dynamics (HB) for the diagonalisation subproblem and of linear mixing (LM) of the densities and a preconditioned mixing of the potentials (PP) for the SCF subproblem. These are labelled by combinations of letters, from GD+LM to HB+PP.
The parameters and entering GD and LM, respectively, have not been optimized, but kept at time-tested values Bonche05 ; Ryssens15a in order to present an accurate image of the methods used in the past. Of course is set to a different value for each choice of mesh parameters. For linear mixing, we have fixed in Eq. (90) for all densities and no mixing for the potentials. For the HB scheme, we have used the dynamically estimated values from Eqs. (74) and (76). For PP, we have set in Eq. (95) for and as a default value, while not preconditioning any of the other potentials.
All calculations have been initialized with spherical Nilsson orbitals, unless explicitly stated otherwise. For deformed systems, in order to break the spherical self-consistent symmetry, a constraint on the quadrupole moment has been introduced during the first ten iterations in order to break the self-consistent spherical symmetry. In the case of HF+BCS and HFB calculations, we have added a pairing interaction as described in Appendix A.
5.2 Convergence indicators
Several quantities can be used to determine the convergence and its rate for a self-consistent calculation. We will mainly use the ones discussed earlier in Ref. Ryssens15a . For convenience, we recall here their definition.
The weighted dispersion of the single-particle energies as a convergence indicator for the linear subproblem has already been introduced in Eq. (65). As we iterate the diagonalisation subproblem only once for every SCF iteration, we will drop the second iteration index in what follows, denoting it .
The difference between the total energy calculated from the EDF (1) and from the sum of the occupation-weighted diagonal matrix elements of the single-particle Hamiltonian corrected for rearrangement and pairing energies (see Ref. Ryssens15a for the precise definition) also provides a test of convergence of self-consistent calculations. At convergence, when the single-particle Hamiltonian is diagonal, these quantities are equal up to numerical inaccuracies. The difference between the two ways of determining the total energy of the nucleus
[TABLE]
can then be used as an indicator of convergence. Both and cannot become arbitrarily small during the iterative process. The mesh discretization introduces a lower bound for both quantities, that in general decreases when using smaller values of Ryssens15a .
Another indicator that we use in our analysis of convergence is the evolution of the relative change of the total binding energy from one iteration to the next
[TABLE]
As the iterations progress, the change in energy should decrease, and keep decreasing until the limits set by machine precision are encountered. While a large value of signals non-convergence, we emphasize that a small value does not always signal near-convergence.
5.3 Multipole deformations and multipole constraints
As argued in Section 2.4, we limit the use of constraints in this study to the minimum possible. All algorithms discussed here can easily accommodate their presence. As constraints introduce additional auxiliary conditions to the self-consistent problem that have to be satisfied through an iterative process that has its own convergence rate, they do however unnecessarily complicate the performance comparison of the algorithms discussed here. The discussion of the efficient algorithmic treatment of constraints in the context of the methods used here is deferred to a forthcoming paper Ryssens18c . Some of the calculations described in this Section, however, necessitate constraints, such that a few comments on their present implementation are in order.
Generally speaking, constraints on the expectation value of an operator can be imposed by adding a penalty function to the energy. In the case of a single constraint, the single-particle Hamiltonian at the iteration becomes
[TABLE]
where is a Lagrange multiplier. There are two primary possibilities to implement constraints: either keeping the Lagrange parameter fixed, in which case the code converges to a configuration with , or adjusting the during the iterations in such a way that the -body expectation value takes a preset value at convergence.
We will use both. For constraints on multipole moments of the mass density, the Lagrange parameters are adjusted with a method similar to the one described in Ref. Ryssens15a until a targeted value for the expectation value of is reached. To plot results, however, we will use the dimensionless deformations Ryssens15a
[TABLE]
instead, where fm. For systems with triaxial quadrupole deformation, we use the quantities Ryssens15a
[TABLE]
to draw maps in the - plane. The multipole constraints are mainly used to provide background energy surfaces that illustrate the path of the evolution of unconstrained calculations towards the minimum. An exception are some calculations with broken reflection symmetry, where a constraint on the position of the centre-of-mass of the nucleus has to be added in order to keep the system fixed at the centre of the numerical box.
5.4 Spherical nuclei
First tests have been performed for the spherical nuclei 40Ca, 132Sn and 208Pb using the NLO and N2LO functionals. The mesh discretization has been varied according to Table 1. As shown in Ryssens15 , mesh (b) offers an satisfactory compromise between numerical accuracy and CPU time for nuclei up to 208Pb.
Figure 10 shows the evolution of the relative change in total energy and the weighted dispersion as a function of the number of iterations for the three nuclei and the two parametrisations. Results obtained with a given combination of algorithms are very similar for all parametrisations and nuclei. The combination GD+LM is always the least favourable while HB+PP is the fastest.
It is important to realize that different indicators are sensitive to different aspects of the convergence. This can be most clearly seen when looking at results from the HB+LM and GD+PP schemes that give intermediate results. For HB+LM, the weighted dispersion always falls off much quicker than . This indicates that in this case the late stages of the convergence are dominated by small changes of the densities and potentials in the SCF iteration, while the single-particle Hamiltonian is already near-diagonal and rediagonalised with a single step of the HB scheme after each SCF update. When combining HB with PP, then both aspects converge at a similar rapid pace. For GD+PP one finds the opposite of HB+LM: falls of quicker than . In this case, the late stages of the convergence are dominated by the diagonalisation subproblem, while thanks to the preconditioner the potentials and densities are already near the self-consistent solution for the given set of single-particle states and can be made to follow its slow evolution with a single preconditioned update. In that respect, HB+PP and GD+LM are similar as in both schemes the two subproblems converge at a similar rate.
Figure 10 illustrates that one cannot rely on a single quantity like as an indicator of convergence, as different indicators probe different aspects of the convergence of the self-consistent problem. As already discussed in Section 3, the convergence rate depends on the representation, as do the smallest values reachable for the indicators. This is illustrated by Fig. 11, which shows the evolution of the weighted dispersion and of for a HB+PP calculation of the spherical ground state of 40Ca and the four different mesh discretizations as indicated in Table 1. In general, both indicators reach a plateau that originates from calculating the energy from the single-particle states through different intermediate objects that are not equally resolved on a given mesh. The smaller the value of , the lower this plateau, although there is also a lower limit to these plateaus that is set by the level of truncation and round-off errors of floating-point arithmetic. For , this limit is reached for mesh (c). Both quantities probe the quality of the diagonalisation of , and, hence, behave in roughly the same way, with the plateau reached at about the same iteration number. Since these quantities are interchangeable for the purpose of our analysis, we focus on the weighted dispersion.
As already discussed for Fig. 4, the number of iterations needed to reach the same level of convergence in the HB scheme is almost independent of , while in the GD method it increases dramatically with decreasing . Figure 12 illustrates this for the convergence of the weighted dispersion during a calculation of 40Ca with the four different schemes. The schemes employing HB are clearly superior for meshes with small , in particular when recalling that each individual iteration becomes much more costly when reducing . Interestingly, the convergence of the HB+LM scheme shows almost no dependence apart from reaching different plateau levels. By contrast, the speed-up from the pre-conditioner when going from HB+LM to HB+PP re-introduces a very small dependence, albeit on a much weaker level than what is observed for LM schemes.
A large part of the levelling out of the dependence of convergence when using the HB scheme is made possible by the dynamical adaptation of its numerical parameters, as already discussed in Section 3.6. Figure 13 shows the values of the parameters and of the HB scheme calculated from Eqs. (74) and (76) at the last iteration of the HB calculations displayed in Fig. 12. For a given mesh discretization, the value of is almost twice as large as the largest value that can safely be used in gradient descent. While the time-step shrinks with decreasing , its negative effect on the convergence rate is counterbalanced by an increase of the parameter , reflecting an increasing mismatch between the smallest and largest relevant energy scale.
5.5 Deformed nuclei
Let us now compare the convergence properties of the four methods that we have defined for three deformed nuclei with qualitatively different energy surfaces when initialized at a deformation far from the one of the ground state. In all cases, the mesh-choice (b) from Table 1 has been used together with the SLy5s1 parametrization. All calculations consider pairing correlations in order to allow for a smooth evolution of the deformation.
As a first example we address the axially-deformed ground state of 240Pu. For this parametrisation, it takes a quadrupole deformation of that is accompanied by an energy gain of about 15 MeV compared to the spherical configuration Ryssens18b . Figure 14 shows the evolution of the relative change in energy , the weighted dispersion , and the change of quadrupole moment . during the iteration.
The algorithms including heavy-ball dynamics are again by far superior to those based on gradient descent. They provide a reduction in the number of iterations of about one order of magnitude. The main source for this gain is the much quicker convergence of the deformation, in particular when combining heavy-ball dynamics with the potential preconditioner, which reduces the number of iterations needed to bring the deformation close to the converged value by again a factor of two. This then also accelerates the final convergence of the potentials in the SCF problem.
The reduction in number of iterations brought by the HB scheme compared to the GD method is even more remarkable when searching for the minimum of a deformation energy surface that is soft in one direction. As an example we choose 64Ge. To illustrate the advancement of the calculation of the ground state, we have first determined the (converged) deformation energy surface of this nucleus as a function of and . Its ground state is triaxial with and . We have then performed unconstrained calculations of the ground state with the four methods that we study. Each calculation is initialized with a configuration that has been pushed away from the spherical point by applying a constraint on a slightly triaxial quadrupole moment for 10 iterations. The paths followed during the iterations are indicated by dashed lines in Fig. 15, with additional markers at every 100 iterations. During the initial constrained phase of the calculation, the state is pushed to at , i.e. the end of the straight part of the dashed line. When the constraint is released, all calculations go back to smaller values of at almost constant . What happens after depends on the scheme. The methods containing GD go back to much smaller within about 200 iterations, before starting to go downhill to larger again for a second time. By contrast, the methods containing the HB scheme only go back to the bottom of the valley and then turn directly to larger angles.
The difference between HB and GD is that during the SCF iterations the former arrives so quickly at an approximate diagonalisation of that the SCF iteration actually moves on an energy surface that is quite close to the converged energy surface drawn as the background in Fig. 15 and therefore can follow the valleys seen in the plot. By contrast, the GD scheme remains for the first few hundred iterations so far from the diagonalisation of that during this phase the SCF evolution is on a very different energy landscape, in which the valley visible in the converged energy surface of Fig. 15 emerges only slowly during the iterative process. This is corroborated by the number of iterations needed in each scheme to reach the turn-off point where the evolution turns into the direction of . The GD+LM scheme needs 3990 iterations to reach that point, while for GD+PP it are 3702. This has to be contrasted with 22 iterations needed for HB+LM and just 17 for HB+PP. But also for the latter two schemes finding the minimum in the soft direction requires many more iterations than finding the valley in the steep direction. The HB+PP scheme arrives at the minimum after about 700 iterations, while it takes about 900 for HB+LM, and around 10000 for GD+LM and GD+PP. For this kind of calculation, HB dynamics is clearly superior to GD, with PP performing slightly better than LM.
As a final example of the calculation of deformed ground states, we have selected 232Th, a nucleus with an axial reflection-symmetric quadrupole deformed ground state that is very soft with respect to octupole degrees of freedom Ryssens18b . At the quadrupole deformation of the minimum, the energy varies by less than 100 keV over a wide range of values up to 0.14. As in the previous case, we have first calculated the energy surface in order to have a background for the analysis of the evolution of the non-constrained calculation. As in the case of 64Ge, the difference between using the LM or PP scheme is minimal compared to the difference between using GD and HB, such that we will limit the presentation to the HB+PP and GD+PP combinations. Profiting from the symmetry of the deformation energy when reversing the sign of , Fig. 16 displays the evolution of the GD+PP calculation at positive , whereas results for HB+PP are drawn at negative . The calculations were both run for 5000 iterations, initialized from the same converged state constrained to . They follow the paths indicated by the dashed line, with additional markers set at every 500 iterations. As the calculations are this time started from a converged state on the slope of the energy surface, they explore almost the same energy surface during the calculation, optimizing again first the energy in steep directions of the surface, which is , and then slowly follow the tiny gradient in the soft direction. This admittedly pathological example is a challenge not only because of the energy surface being flat, but also because convergence requires the state to adopt a higher symmetry than the one the calculation is initialised with. After 5000 iterations, the heavy-ball scheme almost arrives at the minimum, while gradient descent is still very far from it. The latter, however, cannot be guessed from the convergence indicators, which at the 5000th iteration take the values MeV, MeV2, and = fm3.
When organising self-consistent calculations, some of the issues of slow convergence of deformation degrees of freedom discussed here can to some extent be compensated for by using prior information about the structure of the energy surface by initialising a calculation from a reasonably converged calculation that has been constrained to a shape similar to the one of the targeted configuration. Such procedure, however, requires human time to prepare calculations according to the targeted nucleus or even parametrisation. An algorithm like HB+PP that homes in quickly on the ground state after just having been pushed into roughly the right direction, as in the case of the example of 64Ge, brings not just a large reduction of computational time, but also in human time needed to prepare, run, and survey the calculations.
5.6 Cranked calculations
At the mean-field level, rotational bands can be described through the introduction of a cranking constraint RingSchuck ; Bonche87 . In many cases, it is sufficient to constrain one component of angular momentum , such that the mean field entering the HFB Hamiltonian (4) is replaced by
[TABLE]
The rotational frequency plays the role of a Lagrange multiplier. The calculations reported here are performed at fixed values of , such that the constraint acts as an external potential that does not change during the iterations.
For the calculations discussed so far, time-reversal invariance can be imposed on the product state, which can be used to simplify the calculations. The cranking constraint in Eq. (103) breaks time-reversal invariance, such that one has to consider also time-odd densities, the time-odd terms in the EDF, Eqs. (19) and (20), and the corresponding terms in the single-particle Hamiltonian, Eq. (2.3). We note in passing that the SLy5s1 parametrisation that we use here has been constructed such that it does not have an unphysical finite-size instability in the time-odd terms, a problem encountered for many other parametrisations of the Skyrme EDF Hellemans12 .
The light deformed nucleus 24Mg is a popular testing ground for the modelling of rotational bands. Figure 17 shows the evolution of , , and the change in angular momentum
[TABLE]
during the iterations for two different values of the cranking frequency . The non-cranked HFB ground-state is prolate and time-reversal invariant. It has been used to initialize all calculations. To avoid the breakdown of pairing correlations, the HFB method is supplemented by the Lipkin-Nogami procedure Rigollet99 .
As for non-cranked calculations, combinations of algorithms using heavy-ball dynamics significantly outperform combinations with gradient descent, with a reduction of the necessary number of iterations necessary to reach similar quality by almost one order of magnitude. The difference between the HB and GD schemes is especially visible for the angular momentum: it converges in a few iterations with heavy-ball dynamics, but requires three orders of magnitude more iterations with gradient descent. Similarly, falls to the plateau value much quicker when using HB dynamics, indicating that is near-diagonal throughout most of the SCF iterations. Although cranked HFB states are necessarily non-axial, in this example the deformation changes only minimally when varying in the range covered. For this reason, potential preconditioning does not have a large effect, even though for MeV a small speed-up is observed in the change in energy.
5.7 Odd-mass nuclei
Within the framework of the two-basis method to solve the HFB equations, all algorithms described above work in exactly the same way for one-quasiparticle states representing odd-mass nuclei as they do for even nuclei. The only difference specific to odd nuclei, or any multi-quasiparticle state for that matter, concerns the construction of the and matrices when solving the HFB equation (4) in the subspace provided by the . The tagging of a specific configuration, however, introduces auxiliary conditions that have to be satisfied by the solution of the self-consistent problem. As the analysis of algorithms that follow the targeted configuration through large changes of the single-particle spectrum is out of the scope of this paper, we address only the simple case of a well-deformed odd-mass nucleus that is initialised from a converged false vacuum with same proton and neutron number, and therefore similar deformation. The blocking of a quasiparticle breaks time-reversal invariance with the same consequences as in the case of cranked HFB, and is carried out as described in Ref. Gall94 .
As example, Fig. 18 shows the evolution of and during the iterations of the near-axial ground state of 251Fm, calculated in HFB with the NLO SLy5s1 parametrisation. Once again, combinations of algorithms using heavy-ball dynamics outperform combinations with gradient descent, leading to a large reduction of the number of iterations. Very similar to the other cases discussed already, the heavy-ball scheme quickly near-diagonalises for the lowest occupied single-particle states, although continues to be updated for much longer by the SCF iterations. When using the heavy-ball scheme, the preconditioner also visibly reduces the number of necessary SCF iterations compared to linear mixing.
6 Discussion, summary, and conclusions
The self-consistent mean-field equations present a non-linear numerical problem that needs to be solved with iterative methods. Carrying out a calculation such that it converges reliably and efficiently to the targeted nuclear configuration requires the control over many interlocking aspects of the numerical problem. We have discussed here the role of the two most essential components of such a calculation.
The first component is the diagonalisation subproblem: the diagonalisation of the single-particle Hamiltonian for a given set of mean-field potentials. In many cases, iterative diagonalisation algorithms are the most efficient ones when dealing with a large single-particle basis.
The second component is constituted by the SCF iterations, whose goal is to find a fixed point of the mean-field equations for the densities and potentials that determine the single-particle Hamiltonian. This component always requires an iterative approach.
For both components, the design of the iterative process algorithms has to take into consideration that there are “soft” and “stiff” directions in the solution space. The most problematic for the stability of the numerical solution are highly oscillatory modes: already a tiny accidental admixture of such modes during the updates of either the single-particle states or the potentials can excite the system and drive it away from convergence. For the Skyrme EDF, the degrees of freedom that dominate such behaviour in the diagonalisation subproblem on the one hand and the SCF iteration on the other hand can be easily identified. The former is connected to terms with external gradients of the local densities in Eqs. (18), (20), and (2.3), whereas the latter is connected to the number of gradients contained in the local densities defined through Eqs. (12) and (13). For finite-range interactions, the inadequate treatment of large eigenvalues of the single-particle Hamiltonian or of a large Jacobian of the SCF iteration will lead to the same convergence problems. For such types of EDF, however, the dominant terms that contribute to each are not straightforward to identify, in particular when keeping the exact exchange terms.
In practice, the presence of these problems results in the need to select one or or even several numerical parameters such that numerical instabilities are avoided, with the side-effect of slowing down overall convergence. The feasible (and optimal) values of these parameters depend in general on the numerical representation, the range of resolved momenta, the properties of the parametrisation of the EDF used in a calculation, and sometimes even on the nucleus. Therefore, the numerical parameters have either to be adapted case by case or to be fixed on the safe side which translates into human cost in the first case and in increase of CPU time in the second case.
We have discussed three distinct aspects of the convergence of self-consistent calculations with Skyrme EDFs in this study, which can be summarised as follows.
Parametrisation dependence of the diagonalisation subproblem.
The problematic degrees of freedom for the diagonalisation subproblem are related to the largest eigenvalues of the single-particle Hamiltonian, which correspond to highly oscillatory single-particle wave functions. Proceeding too quickly in the iterative diagonalisation can have the side-effect of unintentionally amplifying (instead of damping) these oscillations.
For a Skyrme EDF, the coupling to such states is determined by the internal gradients present in the local densities out of which the functional is built. For NLO parametrisations with realistic effective masses in the four spin-isospin channels the kinetic energy is always the leading term in that respect.
The Skyrme EDF at N2LO yields additional contributions, some of which scale differently because of their higher number of internal gradients such as the density of Eq. (13). There is no a priori about the relative sign of coupling constants of the additional terms, which leads to a complicated interplay between terms that, depending on the parametrisation, might either reduce or amplify the coupling to oscillatory modes compared to the NLO case.
Parametrisation dependence of the SCF subproblem.
The algorithm for SCF iteration might inadvertently amplify oscillatory modes of the densities and mean-field potentials. By linearising the evolution, this behaviour can be directly related to the largest eigenvalues of the Jacobians of the SCF evolution.
For a Skyrme EDF, these problematic eigenvalues are largely determined by the presence of external derivatives of local densities in the EDF. For most parametrisations at NLO, the isoscalar term dominates the evolution of the SCF iteration, as among the contributions to the potentials with two external gradients it is the one with largest coupling constant. As this term provides a dominant contribution to the surface tension Ryssens18b , for realistic parametrisations its coupling constant is always of the same sign and takes very similar values. This is different for the homologues of this term in the other spin-isospin channels that often vary over a large range, which can result in the need to fine-tune numerical parameters.
At N2LO there are again additional terms containing gradients of densities, some of which concern other potentials, and some of which have a different scaling because of their higher number of external gradients, an example being the term in Eq. (2.3). Again, there is no a priori about the relative sign of the coupling constants of the new terms, which again might require a case-by-case fine-tuning of numerical parameters of the SCF iteration.
These convergence problems have to be distinguished from finite-size instabilities of the parametrisations of the EDF as discussed in Refs. Hellemans12 ; Hellemans13 ; Lesinski06 ; Pastore2015 . Although their effect on the progression of an iterative calculation is the same, i.e. they trigger oscillations that grow larger at each iteration, their origin is different: the numerical instability discussed here results from the unintended coupling to oscillatory modes that are less bound. By contrast, a finite-size instability of a given parametrisation results from states with a highly oscillatory density distribution being more bound than states with a physical density distribution. The former can be avoided with a suitable choice of numerical parameters, whereas the latter is a physical attribute of a parametrisation that might, however, not always be well resolved by a given numerical representation Hellemans13 .
Algorithmic improvements.
We have discussed two often-used methods, gradient descent and linear density mixing and their limitations with respect to the treatment of the problematic oscillatory modes in both the diagonalisation and SCF subproblems. To alleviate said limitations, we have proposed two algorithmic improvements, heavy-ball dynamics and potential preconditioning, which have several major advantages.
Compared to the gradient-descent approach, the heavy-ball algorithm, requires significantly less iterations in all cases we have investigated so far, and this at a negligible increase of numerical cost of each iteration. The improvement is especially striking when the energy surface is soft around the targeted configuration, or when very large eigenvalues of the single-particle Hamiltonian are present. In a coordinate-space representation, the heavy-ball method removes the inverse scaling of the number of total iterations with the mesh parameter that otherwise leads to a disproportionate increase of computational cost when reducing .
In spite of their large difference in performance, the implementation of the heavy-ball method differs only little from the gradient-descent approach and can be easily implemented into existing solvers using that method. In the context of self-consistent mean-field calculations, the number of additional operations and the size of additional storage space are negligible compared to what is already needed for the more basic gradient descent.
The second algorithmic improvement concerns the SCF iteration. Instead of indiscriminately damping changes at all wavelengths, we propose a preconditioning scheme for the mean-field potentials that permits for more rapid updates of long-wavelength changes compared to short-wavelength ones. This selective damping especially improves the convergence of calculations for deformed nuclei, as deformation can be allowed to changed more rapidly while maintaining the stability of the calculation. As for heavy-ball dynamics, the method is straightforward to implement into existing solvers employing linear mixing. Although the preconditioning step demands significantly more CPU operations than linear mixing, its impact on overall CPU time is negligible, as the cost of the diagonalisation subproblem remains the dominant one.
Finally, we propose a dynamical estimate of the optimal numerical parameters for both gradient-descent and heavy-ball dynamics. Also, it turns out that for existing parametrisations of the Skyrme EDF the performance of potential preconditioning for the SCF subproblem is not sensitive to the choice numerical parameters. In this way, human fine-tuning of parameters is no longer necessary in virtually all cases, without sacrificing CPU time.
Outlook.
The better understanding of the limiting factors of the diagonalisation and SCF subproblems allowed us to propose algorithmic improvements that result in a reduction of needed CPU time that often reach a factor of ten, as well as an almost complete elimination of the need for fine-tuning the numerical parameters. These advances can now be exploited to perform systematic calculations across the nuclear chart at a significantly reduced cost, both in terms of CPU and human time. This improvement is particularly welcome for the exploration of the possibilities of future N2LO parametrisations, for which the performance of gradient descent and linear mixing can change dramatically as a result of small modifications of the coupling constants.
More specifically, with these improvements CPU-intensive calculations with our MOCCa code that simultaneously break multiple point-group symmetries can now be performed on a large scale, especially for systems whose energy surface is very soft in one shape degree of freedom. This opens the way for future systematic investigations of rotational bands based on exotic nuclear configurations.
Acknowledgements
The majority of calculations have been performed at the Computing Centre of the IN2P3. Another significant part of computational resources have been provided by the Consortium des Équipements de Calcul Intensif (CÉCI), funded by the Fonds de la Recherche Scientifique de Belgique (F.R.S.–FNRS) under Grant No. 2.5020.11.
Appendix A The two-basis method for HFB calculations in coordinate space
Most implementations of the HFB equations represent Eq. (5) as a diagonalisation problem in the numerical single-particle basis, where the quasi-particle states are given by the columns of the sub-matrices of the Bogoliubov transformation RingSchuck
[TABLE]
Instead of diagonalising the HFB Hamiltonian in the numerical basis, it can also be diagonalised in the single-particle basis that diagonalises the single-particle Hamiltonian
[TABLE]
with eigenvalues that are usually called single-particle energies. The HF basis is obtained from the numerical basis by the unitary transformation that diagonalises the single-particle Hamiltonian
[TABLE]
where is the diagonal matrix with the single-particle energies as entries. In the basis of the eigenstates of the single-particle Hamiltonian, the HFB matrix takes the form
[TABLE]
where the tilde in and indicates that these matrices are now calculated in the HF basis. The diagonalisation of and are of course interlaced, as the density matrix in the HF basis enters the calculation of the densities that determine .
Originally proposed in Ref. Gall94 , the two-basis method consists of determining the quasi-particle basis that diagonalises in terms of the HF basis. It has been used in 3d coordinate-space calculations since Gall94 ; Terasaki96 ; Ryssens18b . It has also been implemented into the 1d spherical coordinate-space HFB solver Lenteur lenteur and the 3d HO code HFODD Schunck12 , in both cases with an exact diagonalisation of at each self-consistent field iteration.
Up to this point we just performed a basis transformation. When introducing an effective pairing interaction with a suitably chosen cutoff that in the HF basis is a function of the distance of the single-particle energy from the Fermi energy , the pairing energy and pairing gaps become
[TABLE]
where , and are now also calculated in the HF basis. With such a cutoff, single-particle states above the pairing window have an occupation zero,such that the elements333Note that in our notation is the normal density matrix in the HF basis. Many papers use for a pair density matrix instead. and of the normal and anomalous density matrices that multiply their contribution to many-body observables are zero. For these states, is already diagonal, as the corresponding matrix elements in are also zero. It is therefore sufficient to limit the quasiparticle basis to states
[TABLE]
where and are the submatrices of the Bogoliubov transformation between the HF basis and the HFB basis and is the size of a set of single-particle states in the HF basis chosen large enough that it encompasses those for which matrix elements are non-zero. With this, one has mapped the HFB problem from the diagonalisation of a problem to two coupled problems of much smaller dimension.
In the calculations presented here, we have systematically employed the pairing interaction as proposed in Ref. Rigollet99 with a cutoff of 5 MeV above and below the Fermi energy.
Appendix B The link with the damped harmonic oscillator
We briefly show the link between the heavy-ball dynamics equations and the equations of the damped harmonics oscillator. For a more in-depth analysis, we refer the reader to Ref. Qian99 .
The classical equation of motion of a one-dimensional damped harmonic oscillator with coordinate is given by
[TABLE]
where is the mass and the oscillator frequency, while is a constant that governs the friction applied to the oscillator. In order to numerically integrate the equation of motion (112), it has to be discretized. In terms of a (small) step size and an auxiliary variable , we have
[TABLE]
Making a further change of variables
[TABLE]
and rearranging both equations, we obtain
[TABLE]
Given appropriate initial conditions, this coupled set of equations can be integrated. It is identical to Eq. (57), with the iteration count taking the role of discrete time, the stepsize taking the role of , and the eigenvalue figuring as the square of the (modified) oscillator frequency .
Let us classify the various solutions of Eq. (112) for an oscillator starting from , with . One can verify that the following prescription
[TABLE]
is a solution to Eq. (112), provided that
[TABLE]
We differentiate three different regimes, depending on the value of
[TABLE]
When underdamped, oscillates rapidly around zero with an exponentially decaying amplitude. When overdamped, the system decays exponentially to zero without oscillations. The rate at which is does so is determined by both and : when becomes more negative, the system decays increasingly slow. For a critically damped system, the system also does not oscillate around zero, but rather decays directly at a rate of .
Achieving critical damping should be the goal if we desire a system that decays as rapidly as possible. The condition on the damping is
[TABLE]
This corresponds in the discrete case to
[TABLE]
where we ignore corrections of second order in .
The gradient-descent equations can be obtained by simply setting to 0. The system then is always overdamped and decays only comparatively slowly to .
The discretization of a differential equation cannot be reliably numerically integrated for arbitrary , as too large values can lead to unstable integration schemes. This is the direct analogue for differential equations of condition Eq. (71); if is large, then Eq. (112) is a so-called stiff differential equation NumRecipes . For such cases, the numerical integration requires either very small time-steps or more advanced discretization schemes, which is another way of interpreting the upper bound on the stepsizes and discussed in the main text.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1) M. Bender, P.-H. Heenen and P.-G. Reinhard, Self-consistent mean-field models for nuclear structure , Rev. Mod. Phys. 75 , 121 (2003).
- 2(2) W. Ryssens, M. Bender and P.-H. Heenen, Numerical accuracy of mean-field calculations in coordinate space , Phys. Rev. C 92 , 064318 (2015).
- 3(3) A. Arzhanov, T. R. Rodríguez, and G. Martínez-Pinedo, Systematic study of infrared energy corrections in truncated oscillator spaces with Gogny energy density functionals , Phys. Rev. C 94 , 054319 (2016).
- 4(4) S. Goriely, N. Chamel, and J. M. Pearson, Skyrme-Hartree-Fock-Bogoliubov Nuclear Mass Formulas: Crossing the 0.6 Me V Accuracy Threshold with Microscopically Deduced Pairing , Phys. Rev. Lett. 102 , 152503 (2009).
- 5(5) M. Kortelainen, J. Mc Donnell, W. Nazarewicz, E. Olsen, P.-G. Reinhard, J. Sarich, N. Schunck, S. M. Wild, D. Davesne, J. Erler, and A. Pastore, Nuclear density optimization: Shell structure , Phys. Rev. C 89 , 054314 (2014)
- 6(6) B.G. Carlsson, J. Dobaczewski and M. Kortelainen, Local nuclear energy density functional at next-to-next-to-next-to-leading order , Phys. Rev. C 78 , 044326 (2008).
- 7(7) F. Raimondi, B. G. Carlsson, and J. Dobaczewski, Effective pseudopotential for energy density functionals with higher-order derivatives , Phys. Rev. C 83 , 054311 (2011).
- 8(8) P. Becker, D. Davesne, J. Meyer, J. Navarro and A. Pastore, Solution of Hartree-Fock-Bogoliubov equations and fitting procedure using the N 2LO Skyrme pseudopotential in spherical symmetry , Phys. Rev. C 96 , 044330 (2017).
