Arxiv:1807.00704V2 [Physics.Chem-Ph] 1 Aug 2018 Ware by Swapping the Integral Calculator
Total Page:16
File Type:pdf, Size:1020Kb
Towards quantum-chemical method development for arbitrary basis functions Michael F. Herbst,1, a) Andreas Dreuw,1, b) and James Emil Avery2, c) 1)Interdisciplinary Center for Scientific Computing, Heidelberg University, Im Neuenheimer Feld 205, 69120 Heidelberg, Germany 2)Niels Bohr Institute, University of Copenhagen, Blegdamsvej 17, 2100 København, Denmark We present the design of a flexible quantum-chemical method development framework, which supports em- ploying 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 methods 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, an arbitrary basis functions could be used. molsturm is open-source and can be obtained from http://molsturm.org. Keywords: electronic structure theory, method development, basis-function independence, molsturm I. INTRODUCTION employing specialised contracted basis sets4,5. However, even contracted GTOs (cGTO) fail to describe both the The central goal of electronic-structure theory is to find nuclear cusp and the exponential decay of the electron 6 approximate solutions to the electronic wave equation nu- density . In addition, no matter the number of GTO merically. This requires a discretisation of the electronic basis functions used, the derivatives are always wrong wave function. Typically, it is approximated as a linear at the nucleus, which causes singularities and computa- combination of Slater determinants: anti-symmetrised tional failure for example in quantum Monte Carlo cal- 7{9 products of single-particle functions. The latter are in culations . Furthermore the description of some prop- turn constructed by expanding them in a basis set of a erties such as the nuclear-magnetic resonance (NMR) priori determined single-electron functions. Usually, such shielding tensors or a description of Rydberg-like or auto- 10{13 basis sets are not complete and introduce basis set errors. ionising states directly involves the nuclear cusp or Proper choice of the basis function type and size of ba- the asymptotic tail, making physically accurate basis 14,15 sis set is thus decisive for an accurate description of the functions desirable . system under investigation. It is also clear from the on- The name of our implementation, \molsturm", is a set that different basis function types can be more or portmanteau of molecular Sturmians: the project was less suited for a specific problem, suggesting to conduct born as a means to solve the problem of using state- investigations across existing basis function types. of-the-art quantum chemistry methods together with Gaussian-based methods are overwhelmingly predomi- generalised- and molecular Sturmian basis functions. nant in computational electronic structure theory, which The many promising results for generalised Sturmians stems from pragmatic reasons dating back to the found- were stranded due to the fact that only electronic struc- ing years1,2. It was well-known that bound state ture problems that were small enough to be solved by di- electronic wave functions decay exponentially both at rect configuration interaction methods could be treated, short and large distances from the nuclei3, but multi- preventing wider use. The existing mature quantum centre electron-repulsion integrals (ERI) of products of chemistry software has been developed over hundreds exponential-type orbitals were impractically difficult to of man-years, and the methods are not easily reimple- calculate. For Gaussian-type orbitals (GTO), on the mented from scratch. other hand, ERI could be calculated efficiently due to In theory, it should be a simple matter to include new the Gaussian Product Theorem. However, the computa- basis function types in existing quantum chemistry soft- tional challenges facing quantum chemists have changed arXiv:1807.00704v2 [physics.chem-ph] 1 Aug 2018 ware by swapping the integral calculator. In practice, since the 1970's, and it may now be worth trading extra it turned out to be exceedingly difficult due to the very computation per integral for having fewer, more accurate large and complicated code bases of all the investigated basis functions. quantum chemistry software. Assumptions about the ba- In many practical applications, the shortcomings of sis function type scattered around the source code only GTOs are not important, or one is able to compensate by make this even task more difficult. Our solution, which is presented in this paper, is to implement a light-weight layer that makes it easy to ex- a)Electronic mail: [email protected] periment with many different basis function types and b)Electronic mail: [email protected] quantum-chemical methods. It is designed for researchers c)Electronic mail: [email protected] to both build simple stand-alone programs for prototyp- 2 ing and teaching purposes, and to make plug-in modules of introducing a new basis function type to be reduced to be hosted in standard quantum chemistry software. to adding an extra integral back end in molsturm, which To the best of our knowledge such a framework with the will then both provide simple stand-alone calculations ability to explore quantum-chemical methods across mul- and a common interface to hook into existing quantum tiple basis function types has been missing up to today. chemistry packages. A. Alternative Basis Function Types B. Towards Basis-type Agnostic Quantum Chemistry Many research groups have worked on alternative ba- In order to reach a basis-type agnostic design, there sis function types. This section will provide a brief are three fundamental components to consider: (i) overview with particular focus on exponential-type or- an integral interface accommodating a wide range of bitals (ETO). For further details regarding the basis func- very different basis set types and discretisation, but tion mentioned, the reader is referred to the cited works. providing a uniform way of accessing them, (ii) sim- Efforts on making various types of ETOs computation- ple discretisation-agnostic implementations of the self- ally feasible were pioneered by Harris, Michels, Stein- consistent field (SCF) algorithms, and (iii) a flexible in- born, Weniger, Weatherford, Jones, and others16{19.A terface to employ the resulting SCF orbital basis further particular form of complete ETO basis are Coulomb Stur- in existing, third-party code. Once the SCF orbitals have mians20{24 (CS). Their functional form is identical to the been obtained, the remainder of a calculation, e.g. a Post- familiar hydrogen-like orbitals, just with all occurrences Hartree-Fock (Post-HF) method, can usually be formu- of the factors Z=r replaced by the Sturmian exponent k lated entirely in the SCF orbital basis, without reference | a parameter, which is the same for all functions of the to the underlying basis functions. Thus, a basis-function basis: independent SCF scheme automatically leads to basis- function independent Post-HF methods as well. CS 3=2 l kr 2l+1 m 'nlm(r) = k Nnl(2kr) e− Ln l 1(2kr)Yl (r^): (1) This structure has another advantageous side effect in − − the context of developing new basis function types, as m 2l+1 In this, Yl is a spherical harmonic, Ln l 1 an associated it allows to perform comparisons between old and new Laguerre polynomial and − − methods using exactly the same software stack. In other words one can thus be sure that, apart from the discreti- s 2 (l + n)! sation, all aspects of the calculation e.g. SCF algorithms N = (2) nl (2l + 1)! n(n l 1)! or guess methods, are optimised at the same level lead- − − ing to a fair apples-to-apples comparison between old and a normalisation constant. CS functions proved to be new methods. especially easy to work with, since their momentum- space representation by hyperspherical harmonics allows efficient calculation of multi-centre integrals, opening C. Paper Outline the way for efficient molecular calculations25{28. The Coulomb Sturmian construction generalises well and gen- The remainder of the paper is structured as follows: eralised Sturmian basis sets preserving many useful Stur- Section II reviews existing projects with similar goals to mian properties can be constructed. These allow, for ex- molsturm. Section III provides a theoretical background ample, to build N-particle basis functions that include for the program design choices, which are described in important geometric properties of the physical system Section IV. Section V provides example problems calcu- under consideration at the level of the basis29{37. Sim- lated using molsturm's python interface, illustrating how ilarly, d-dimensional hyperspherical harmonic basis sets to implement new methods on top of molsturm in a few can model collective motions of particles, for example lines of python. Section VI outlines the current state of for treating strongly interacting few-body systems or re- molsturm and what we hope to achieve