Toward Quantum-Chemical Method Development for Arbitrary Basis Functions Michael F
Total Page:16
File Type:pdf, Size:1020Kb
THE JOURNAL OF CHEMICAL PHYSICS 149, 084106 (2018) Toward quantum-chemical method development for arbitrary basis functions Michael F. Herbst,1,a) Andreas Dreuw,1,b) and James Emil Avery2,c) 1Interdisciplinary Center for Scientific Computing, Heidelberg University, Im Neuenheimer Feld 205, 69120 Heidelberg, Germany 2Niels Bohr Institute, University of Copenhagen, Blegdamsvej 17, 2100 København, Denmark (Received 15 June 2018; accepted 2 August 2018; published online 27 August 2018) Wepresent the design of a flexible quantum-chemical method development framework, which supports employing any type of basis function. This design has been implemented in the light-weight program package molsturm, yielding a basis-function-independent self-consistent field scheme. Versatile interfaces, making use of open standards like python, mediate the integration of molsturm with existing third-party packages. In this way, both rapid extension of the present set of meth- ods for electronic structure calculations as well as adding new basis function types can be readily achieved. This makes molsturm well-suitable for testing novel approaches for discretising the electronic wave function and allows comparing them to existing methods using the same software stack. This is illustrated by two examples, an implementation of coupled-cluster doubles as well as a gradient-free geometry optimisation, where in both cases, arbitrary basis functions could be used. molsturm is open-sourced and can be obtained from http://molsturm.org. Published by AIP Publishing. https://doi.org/10.1063/1.5044765 I. INTRODUCTION computation per integral for having fewer more accurate basis functions. The central goal of electronic-structure theory is to find In many practical applications, the shortcomings of GTOs approximate solutions to the electronic wave equation numer- are not important, or one is able to compensate by employing ically. This requires a discretisation of the electronic wave specialised contracted basis sets.4,5 However, even contracted function. Typically, it is approximated as a linear combi- GTOs (cGTO) fail to describe both the nuclear cusp and the nation of Slater determinants: anti-symmetrised products of exponential decay of the electron density.6 In addition, no mat- single-particle functions. The latter are in turn constructed by ter the number of GTO basis functions used, the derivatives are expanding them in a basis set of a priori determined single- always wrong at the nucleus, which causes singularities and electron functions. Usually, such basis sets are not complete computational failure, for example, in quantum Monte Carlo and introduce basis set errors. Proper choice of the basis func- calculations.7–9 Furthermore the description of some proper- tion type and size of basis set is thus decisive for an accurate ties such as the nuclear-magnetic resonance (NMR) shield- description of the system under investigation. It is also clear ing tensors or a description of Rydberg-like or auto-ionising from the onset that different basis function types can be more states10–13 directly involves the nuclear cusp or the asymptotic or less suited for a specific problem, suggesting us to conduct tail, making physically accurate basis functions desirable.14,15 investigations across existing basis function types. The name of our implementation, “molsturm,” is a port- Gaussian-based methods are overwhelmingly predomi- manteau of molecular Sturmians: the project was born as a nant in computational electronic structure theory, which stems means to solve the problem of using state-of-the-art quantum from pragmatic reasons dating back to the founding years.1,2 chemistry methods together with generalised- and molecular It was well-known that bound state electronic wave func- Sturmian basis functions. The many promising results for gen- tions decay exponentially both at short and large distances eralised Sturmians were stranded due to the fact that only from the nuclei,3 but multi-centre electron-repulsion integrals electronic structure problems that were small enough to be (ERI) of products of exponential-type orbitals (ETO) were solved by direct configuration interaction methods could be impractically difficult to calculate. For Gaussian-type orbitals treated, preventing wider use. The existing mature quantum (GTO), on the other hand, ERI could be calculated efficiently chemistry software has been developed over hundreds of man- due to the Gaussian product theorem. However, the compu- years, and the methods are not easily reimplemented from tational challenges facing quantum chemists have changed scratch. since the 1970’s, and it may now be worth trading extra In theory, it should be a simple matter to include new basis function types in existing quantum chemistry software by swapping the integral calculator. In practice, it turned out to be exceedingly difficult due to the very large and com- a)Electronic mail: [email protected] b)Electronic mail: [email protected] plicated code bases of all the investigated quantum chem- c)Electronic mail: [email protected] istry software. Assumptions about the basis function type 0021-9606/2018/149(8)/084106/14/$30.00 149, 084106-1 Published by AIP Publishing. 084106-2 Herbst, Dreuw, and Avery J. Chem. Phys. 149, 084106 (2018) scattered around the source code only make this even task more back end in molsturm, which will then both provide simple difficult. stand-alone calculations and a common interface to hook into Our solution, which is presented in this paper, is to imple- existing quantum chemistry packages. ment a light-weight layer that makes it easy to experiment with many different basis function types and quantum-chemical B. Toward basis-type agnostic quantum chemistry methods. It is designed for researchers to both build simple stand-alone programs for prototyping and teaching purposes, In order to reach a basis-type agnostic design, there and make plug-in modules to be hosted in standard quan- are three fundamental components to consider: (i) an inte- tum chemistry software. To the best of our knowledge, such a gral interface accommodating a wide range of very dif- framework with the ability to explore quantum-chemical meth- ferent basis set types and discretisation, but providing a ods across multiple basis function types has been missing up uniform way of accessing them, (ii) simple discretisation- to today. agnostic implementations of the self-consistent field (SCF) algorithms, and (iii) a flexible interface to employ the result- A. Alternative basis function types ing SCF orbital basis further in existing third-party code. Once the SCF orbitals have been obtained, the remain- Many research groups have worked on alternative basis der of a calculation, e.g., a Post-Hartree-Fock (Post-HF) function types. This section will provide a brief overview with method, can usually be formulated entirely in the SCF orbital particular focus on exponential-type orbitals (ETO). For fur- basis, without reference to the underlying basis functions. ther details regarding the basis function mentioned, the reader Thus, a basis-function independent SCF scheme automati- is referred to the cited works. cally leads to basis-function independent Post-HF methods as Efforts on making various types of ETOs computation- well. 16–19 ally feasible were pioneered by Harris et al. A particular This structure has another advantageous side effect in the 20–24 form of complete ETO basis is Coulomb Sturmians (CS). context of developing new basis function types, as it allows us Their functional form is identical to the familiar hydrogen-like to perform comparisons between old and new methods using orbitals, just with all occurrences of the factors Z/r replaced exactly the same software stack. In other words, one can thus by the Sturmian exponent k—a parameter, which is the same be sure that, apart from the discretisation, all aspects of the cal- for all functions of the basis, culation, e.g., SCF algorithms or guess methods, are optimised CS 3=2 l −kr 2l+1 m at the same level leading to a fair apples-to-apples comparison ' r = k Nnl(2kr) e L (2kr)Y rˆ . (1) nlm n−l−1 l between old and new methods. m 2l+1 In this, Yl is a spherical harmonic, Ln−l−1 an associated Laguerre polynomial, and C. Paper outline s 2 (l + n)! The remainder of the paper is structured as follows: Sec.II N = (2) nl (2l + 1)! n(n − l − 1)! reviews existing projects with similar goals to molsturm. Section III provides a theoretical background for the program a normalisation constant. CS functions proved to be especially design choices, which are described in Sec.IV. SectionV easy to work with since their momentum-space representation provides example problems calculated using molsturm’s by hyperspherical harmonics allows efficient calculation of python interface, illustrating how to implement new methods multi-centre integrals, opening the way for efficient molecular on top of molsturm in a few lines of python. SectionVI calculations.25–28 The Coulomb Sturmian construction gen- outlines the current state of molsturm and what we hope to eralises well and generalised Sturmian basis sets preserving achieve in the future. many useful Sturmian properties can be constructed. These allow us, for example, to build N-particle basis functions that include important geometric properties of the physical II. RELATED QUANTUM-CHEMICAL SOFTWARE PACKAGES system under consideration at the level of the basis.29–37 Sim- ilarly, d-dimensional hyperspherical harmonic basis sets can This section reviews existing quantum chemistry software model collective motions of particles, for example, for treat- that shares some of the goals of molsturm. ing strongly interacting few-body systems or reactive scatter- The quantum Monte Carlo packages CASINO61 and ing.38–42 A particular type of one-particle Sturmians combines QMCPACK62 are among the few systems that support many a bound-state region and plane-wave asymptotics to model different basis function types.