• No results found

Geometrical derivatives and magnetic properties in atomic-orbital density-based Hartree–Fock theory

N/A
N/A
Protected

Academic year: 2022

Share "Geometrical derivatives and magnetic properties in atomic-orbital density-based Hartree–Fock theory"

Copied!
9
0
0

Laster.... (Se fulltekst nå)

Fulltekst

(1)

Geometrical derivatives and magnetic properties in atomic-orbital density-based Hartree–Fock theory

Helena Larsena) and Trygve Helgaker

Department of Chemistry, University of Oslo, P.O. Box 1033 Blindern, N-0315 Oslo, Norway Jeppe Olsen and Poul Jørgensen

Department of Chemistry, University of Aarhus, Langelandsgade 140, DK-8000 A˚ rhus C, Denmark.

共Received 18 July 2001; accepted 11 September 2001兲

A reformulation of Hartree–Fock theory for time-independent molecular properties with perturbation-dependent basis sets and which refers strictly to the atomic-orbital basis is presented.

The formalism is based on a recently proposed exponential parametrization of the one-electron atomic-orbital density matrix. In the presented formulation, only multiplications and additions of sparse matrices are needed. Linear scaling with system size is therefore obtainable, making this formulation ideally suited to large molecular systems. The paper contains general formulas for molecular energy derivatives up to fourth order, with special attention given to molecular gradients, molecular Hessians, magnetizabilities, and nuclear magnetic shieldings. © 2001 American Institute of Physics. 关DOI: 10.1063/1.1415082兴

I. INTRODUCTION

A major challenge of quantum chemistry is to reduce the scaling of the standard electronic-structure methods so as to treat large molecules. Ideally, for a sufficiently large system, the cost of the calculation should scale linearly with the size of the system. With conventional techniques, systems con- taining more than a few hundred atoms are beyond the pow- ers of present ab initio electronic-structure models. However, in order for quantum chemistry to contribute to many areas of biological and medical interest, it must be able to handle much larger systems such as proteins and nucleic acids. In recent years, therefore, much effort has been put into the development of such techniques.

In particular, within the Hartree–Fock and Kohn–Sham self-consistent-field theories, which formally scale as the fourth power in the size of the system, significant progress has been made. While these methods are important in them- selves in that they provide good compromises between cost and accuracy, the achievement of linear scaling for these methods is also a necessary first step towards the develop- ment of linear scaling for the more complex, correlated ab initio methods such as Møller–Plesset and coupled-cluster theories.

By using the fast multipole method共FMM兲or the tree- code method combined with prescreening, the complexity of the long-range Coulomb problem in Hartree–Fock and Kohn–Sham theories 共i.e., the construction of the Fock and Kohn–Sham matrices兲has been reduced to linear.1– 6How- ever, another bottleneck in these theories is the optimization of the energy, which is traditionally achieved by diagonaliza- tion of the Fock/Kohn–Sham matrices, a step that scales cu- bically with system size.

To achieve linear scaling, several alternatives to diago- nalization have been suggested, based either on the use of localized orbitals7–9or on the direct optimization of the den- sity matrix in the atomic-orbital 共AO兲 basis, using the ele- ments of the density matrix as variational parameters.10–14In the latter approach, the sparsity of the Fock/Kohn–Sham, overlap, and density matrices is exploited to obtain linear scaling. Thus, it has now become possible to compute ener- gies and to optimize geometries for systems containing thou- sands of atoms using minimal basis sets. These ideas are also applicable for semiempirical methods. Some studies involv- ing correlated methods also exist.15–18For molecular proper- ties, only a few studies have appeared, including studies of force constants and forces.14

In Refs. 19 and 20, we proposed an exponential param- etrization of the AO density matrix, discussing how it can be used to optimize the density matrix and thus the energy. In Ref. 21, this parametrization was used to develop a time- dependent Hartree–Fock/Kohn–Sham response theory that refers solely to the AO basis and thus is suitable for linear scaling. We here extend these studies to molecular properties where the AOs depend on the perturbation. While general expressions are given for derivatives to fourth order, molecu- lar gradients, molecular Hessians, magnetizabilities, and nuclear magnetic shieldings receive special attention and have 共except for the shieldings兲been implemented in a de- velopment version of the Dalton program. As will become apparent from this paper, the density-based derivative theory is simpler than the corresponding molecular-orbital 共MO兲 based theory, involving a smaller set of AO matrices and mathematical operations.

The calculation of derivatives of the Hartree–Fock en- ergy for perturbation-dependent basis sets has a long history.

The expression for the Hartree–Fock gradient was derived by Bratozˇ in 195822 and the first practical implementation was reported by Pulay in 1969.23 Molecular Hessians were

a兲Permanent address: Department of Chemistry, University of Aarhus, Langelandsgade 140, DK-8000 A˚ rhus C, Denmark.

10344

0021-9606/2001/115(22)/10344/9/$18.00 © 2001 American Institute of Physics

(2)

first implemented by Thomsen and Swanstrøm in 1973,24 based on the work of Bratozˇ22 and Gerratt and Mills.25The first practical implementation was reported by Pople et al. in 1979.26Third derivative expressions were derived by Moccia in 197027and implemented by Gaw and Handy in 1984.28

The above formulations and implementations of deriva- tives were all given in the MO basis. In 1977, Dodds, McWeeny, and Sadlej presented a density-matrix formulation of first and second derivatives in the AO basis.29 However, their formulation differs from ours in that it requires the di- agonalization of the Fock matrix to determine the perturbed density matrix. In our formulation, no such diagonalization is required—the derivatives are obtained directly from the共dif- ferentiated兲Hamiltonian and overlap integrals in the AO ba- sis and from the 共differentiated兲 density matrix in the AO basis. As such, the present formulation is closer to the recent work of Ochsenfeld and Head-Gordon,14 who have derived the molecular gradient and Hessian in a density-based for- mulation of Hartree–Fock theory. The main difference be- tween our derivation and that of Ochsenfeld and Head- Gordon is that we use an explicit parametrization of the AO density matrix, where redundancies have been identified and removed. Without the proper removal of redundancies, the solution of the response equations and thus the calculation of second- and higher-order molecular properties may become difficult or even impossible for large systems.

After a discussion of the Hartree–Fock energy and the parametrization of the density matrix in Sec. II, we consider general expressions for the derivatives to fourth order in Sec.

III. The derivatives of the AO density matrix are then dis- cussed in Sec. IV. In Sec. V, we consider in greater detail the evaluation of a few selected properties: the molecular gradi- ent, the molecular Hessian, and the magnetizability and nuclear shielding constants of closed-shell molecules.

II. PARAMETRIZATION OF THE HARTREE–FOCK ENERGY

In the present section, we review the density-based for- mulation of the Hartree–Fock energy. After a brief discus- sion of the Hartree–Fock energy in Sec. II A, we consider the exponential parametrization of the AO density matrix in Sec. II B and the Hartree–Fock variational conditions in Sec.

II C.

A. The Hartree–Fock energy

In the atomic spin–orbital basis, the Hartree–Fock en- ergy may be written in the form

ETr Dh12Tr DGD兲⫹hnuc. 共1兲 Here D is the one-electron density matrix, h is the one- electron Hamiltonian matrix with elements

h␮␯

*x

122

A RZAAr

xdx, 2

and G(D) contains the matrix elements

G␮␯D兲⫽

␳␴ D␴␳g␮␯␳␴g␮␴␳␯, 3

where

g␮␯␳␴

冕 冕

*x1*x2r12x1x2

dx1dx2. 共4兲 Both spin and space coordinates are included in x. The last term in Eq.共1兲contains the nuclear–nuclear contribution to the total energy; for the calculation of magnetic properties, it also contains purely nuclear magnetic interactions, such as the Zeeman interaction between the nuclear magnetic dipole moments and the external magnetic field.

For Eq.共1兲to represent a valid Hartree–Fock energy, the AO density matrix must satisfy certain conditions. In particu- lar, in the spin–orbital representation, the density matrix must fulfill the symmetry, rank, and idempotency conditions:

DD, 共5兲

Tr DSNe, 共6兲

DSDD, 共7兲

where Ne is the number of electrons. When the Hartree–

Fock energy is optimized or perturbed in any manner, the modifications to the density matrix must comply with these conditions. Although this may be achieved by a constrained optimization of the energy, it is more convenient to work with an unconstrained, explicit parametrization of the AO density matrix. Such a parametrization was presented in Refs. 19 and 20.

B. Parametrization of the AO density matrix

Let D be any matrix that satisfies the symmetry, rank, and idempotency conditions Eqs. 共5兲–共7兲. From this refer- ence density matrix, we may generate any valid Hartree–

Fock density matrix by carrying out the transformation DX兲⫽exp共⫺XSD expSX兲. 共8兲 Here S is the AO overlap matrix

S␮␯

*xxdx, 9

while X is an anti-Hermitian matrix, which may be decom- posed into an antisymmetric real part XR and a symmetric imaginary part XI

XXRiXI. 共10兲

The need to introduce imaginary rotations arises since we shall here consider not only real perturbations 共nuclear dis- placements兲, but also perturbations associated with imagi- nary operators 共magnetic perturbations兲.

Since D(X) is a valid Hartree–Fock density matrix pro- vided X is anti-Hermitian, we may now optimize the Hartree–Fock energy in an unconstrained manner by varying the independent elements of XR and XI. However, it should be noted that, although the parametrization Eq.共8兲is uncon- strained, it is also redundant in the sense that not all nonzero anti-Hermitian matrices X generate a modified density ma- trix. To avoid such redundant rotations

DXred兲⫽D0兲⫽D, 共11兲

(3)

the anti-Hermitian matrix X should comply with the projec- tion relation

X⫽P共X兲⬅PXQQXP, 共12兲 where

PDS, 共13兲

Q1DS, 共14兲

are nonorthogonal projectors onto the occupied and virtual orbital spaces, respectively.

C. Variational conditions

The transformed AO density matrix D(X) may be evalu- ated using the asymmetric Baker–Campbell–Hausdorff 共BCH兲expansion19

DX兲⫽D⫹关D,XS12关关D,XS,DS⫹•••, 共15兲 where we have introduced the S commutator

D,XSDSXXSD. 共16兲

Expanding the Hartree–Fock energy Eq.共1兲to first order in X, we obtain the variational condition

ETr FDX兲⫽Tr FD,XS

⫽Tr共FDSSDF兲␦X

⫽0, 共17兲

where we have introduced the Fock matrix

FhGD兲. 共18兲

Since Eq.共17兲should hold for arbitrary X, we may write the variational conditions in the form

FDSSDF. 共19兲

Together with the symmetry, rank, and idempotency condi- tions Eqs. 共5兲–共7兲, this equation uniquely determines the Hartree–Fock AO density matrix and thus the optimized Hartree–Fock energy given in Eq.共1兲.

III. DERIVATIVES OF THE HARTREE–FOCK ENERGY Having considered the representation of the Hartree–

Fock energy and density matrix in the AO basis, let us now turn our attention to the derivatives of the Hartree–Fock en- ergy E(x) with respect to a set of external parameters x.

Previously, we have used x for the combined spatial and spin electronic coordinates; in the following, x will be used only for the external parameters.兲 For much of our discus- sion, the nature of these parameters is unimportant. However, in the final sections of this paper, we shall consider in greater detail two special cases: geometrical distortions and external magnetic fields. These perturbations are of special interest since, for their accurate description, both require the use of perturbation-dependent basis sets: atom-fixed AOs for geo- metrical distortions and field-dependent London AOs for ex- ternal magnetic fields. The atom-fixed London AOs may be written in the general form

rM兲⫽exp关⫺12iB⫻共MO兲•rSlmrM兲exp共⫺␣rM 2 兲, 共20兲 where rMrM is the position of the electron relative to the AO center M; O is the origin of the vector potential A

12B(rO) chosen to represent B in the Hamiltonian;

␣⬎0 is the orbital exponent; and Slm(rM) is a real solid- harmonic function. Clearly, these orbitals depend both on the molecular geometry and on the external magnetic field. The use of such perturbation-dependent AOs imply that the over- lap matrix S changes as we apply the perturbation. As we shall see in Sec. IV, this fact has important consequences for the evaluation of derivatives.

By straightforward differentiation of Eq.共1兲with respect to x, we obtain the following expressions for the derivatives of the Hartree–Fock energy to fourth order:

EaTr Dha12Tr DGaD兲⫹Tr DaFhnuca , 共21兲 EabTr Dhab12TrDGabD兲⫹Tr DabF

2 PabTr DahbGbD兲⫹ 12GDb兲兴⫹hnucab , 共22兲

EabcTr Dhabc12Tr DGabcD兲⫹Tr DabcF

3 PabcTr DahbcGbcD兲⫹GbDc兲兴

3 PabcTr DabhcGcD兲⫹GDc兲兴⫹hnucabc, 共23兲

EabcdTr Dhabcd12Tr DGabcdD兲⫹Tr DabcdF

4 PabcdTr DahbcdGbcdD兲⫹32GbcDd兲兴

6 PabcdTr DabhcdGcdD兲⫹2GcDd

12GDcd兲兴⫹4 PabcdTr DabchdGdD兲⫹GDd兲兴

hnucabcd. 共24兲 We have here used the short-hand notation

fad fx

dxa 共25兲

for the first derivative and likewise for the higher derivatives.

Also, we have for brevity introduced the symmetrization op- erator

PabAaBb12AaBbAbBa兲 共26兲 and similarly for Pabc and Pabcd. Finally, in deriving Eqs.

共21兲–共24兲, we have made frequent use of the identity

Tr AGB兲⫽Tr BGA兲, 共27兲

which follows from the particle symmetry of the two- electron integrals.

Equations共21兲–共24兲are general, expressing the deriva- tives of the Hartree–Fock energy in terms of derivatives of the AO integrals and the AO density matrix. For higher de- rivatives, a large number of terms arise, making the calcula- tion of such derivatives a daunting task. We note, however, that many of the derivative共Hamiltonian and density兲matri-

(4)

ces that contribute to a given order n in the differentiation also contribute to derivatives of orders kn, thereby reduc- ing the overall cost of calculating all derivatives up to order n.

The derivatives of the one- and two-electron Hamil- tonian AO integrals that appear in Eqs. 共21兲–共24兲 may be calculated using any of the standard techniques of molecular integral evaluation, see, for example, Chap. 9 of Ref. 19. In the following, we shall assume that the AO integrals may be generated as needed and instead concentrate our attention on the calculation of the derivatives of the AO density matrix in Eqs. 共21兲–共24兲.

IV. DERIVATIVES OF THE AO DENSITY MATRIX Having considered the general structure of the Hartree–

Fock energy derivatives in Sec. III, we now turn our atten- tion to the derivatives of the AO density matrix

DX兲⫽exp共⫺XSD0exp共SX兲, 共28兲 where D0 is the optimized AO density matrix of the unper- turbed system. Before taking derivatives, we note that all three matrices S, D0, and X on the right-hand side of Eq.

共28兲are affected by the perturbation x:

共1兲 S changes because the AOs in Eq. 共20兲 depend on the perturbation.

共2兲 D0changes to comply with the idempotency condition in Eq. 共6兲, which is affected by the perturbed overlap inte- gral.

共3兲 X changes to satisfy the Hartree–Fock condition in Eq.

共19兲, which is affected by the perturbed Hamiltonian and overlap integrals.

For perturbations that do not affect the AOs, S is un- changed and D0 remains valid also after the perturbation. In such cases, only X changes as we perturb the system. In

general, however, S, D0, and X all change with the pertur- bation, generating a large number of contributions to high- order derivatives of the AO density matrix Eq.共28兲, making it important to develop a good strategy for their evaluation.

The remainder of this section consists of three parts. In Sec. IV A, we discuss how to assemble the derivatives of the density matrix D(X) from the derivatives of D0, S, and X, assuming that these are already available. Next, in Sec. IV B, we consider the evaluation of the derivatives of D0 from the derivatives of the idempotency condition Eq. 共6兲. Finally, in Sec. IV C, we calculate the derivatives of X from the differ- entiated Hartree–Fock conditions Eq. 共19兲.

A. Derivatives of the BCH expansion

Carrying out the asymmetric BCH expansion of the ref- erence density matrix Eq. 共15兲 and differentiating at X0, we obtain to fourth order:

DaD0a⫹关D0,XS

a, 共29兲

DabD0ab⫹关D0,XS

ab12关关D0,XS,XS

ab, 共30兲

DabcD0abc⫹关D0,XS

abc12关关D0,XS,XS abc

16关关关D0,XS,XS,XS

abc, 共31兲

DabcdD0abcd⫹关D0,XS

abcd12关关D0,XS,XS abcd

16关关关D0,XS,XS,XS abcd

241 关关关关D0,XS,XS, XS,XS

abcd. 共32兲 Since each S commutator is a linear combination of products of three matrices Eq. 共16兲, the differentiated nested commu- tators rapidly become complicated, with a large number of contributing terms. For completeness, we here list the full expressions for the derivatives to fourth order:

DaD0a⫹关D0,XaS, 共33兲

DabPabD0ab⫹关D0,XabS⫹2关D0a,XbS⫹2关D0,XaSb⫹关关D0,XaS,XbS兲, 共34兲

DabcPabcD0abc⫹关D0,XabcS⫹3关D0a,XbcS⫹3关D0,XabSc⫹3关D0ab,XcS⫹6关D0a,XbSc⫹3关D0,XaSbc

32关关D0,XabS,XcS32关关D0,XaS,XbcS⫹3关关D0a,XbS,XcS⫹3关关D0,XaSb,XcS⫹3关关D0,XaS,XbSc

⫹关关关D0,XaS,XbS,XcS兲, 共35兲

DabcdPabcdD0abcd⫹关D0,XabcdS⫹4关D0a,XbcdS⫹4关D0,XabcSd⫹6关D0ab,XcdS⫹12关D0a,XbcSd⫹6关D0,XabScd

⫹4关D0abc,XdS⫹12关D0ab,XcSd⫹12关D0a,XbScd⫹4关D0,XaSbcd⫹2关关D0,XabcS,XdS⫹2关关D0,XaS,XbcdS

⫹3关关D0,XabS,XcdS⫹6关关D0a,XbcS,XdS⫹6关关D0,XabSc,XdS⫹6关关D0,XabS,XcSd⫹6关关D0a,XbS,XcdS

⫹6关关D0,XaSb,XcdS⫹6关关D0,XaS,XbcSd⫹6关关D0ab,XcS,XdS⫹6关关D0,XaSbc,XdS⫹6关关D0,XaS,XbScd

⫹12关关D0a,XbSc,XdS⫹12关关D0a,XbS,XcSd⫹12关关D0,XaSb,XcSd⫹2关关关D0,XabS,XcS,XdS

⫹2关关关D0,XaS,XbcS,XdS⫹2关关关D0,XaS,XbS,XcdS⫹4关关关D0a,XbS,XcS,XdS⫹4关关关D0,XaSb,XcS,XdS

⫹4关关关D0,XaS,XbSc,XdS⫹4关关关D0,XaS,XbS,XcSd⫹关关关关D0,XaS,XbS,XcS,XdS兲. 共36兲

(5)

Clearly, a brute-force calculation of these derivatives would be rather expensive. However, an inspection of the nested commutators that contribute to the nth derivative of D re- veals that the inner commutators are also needed for the de- rivatives of order kn. The nth derivative of the AO density matrix may therefore be calculated in a recursive manner, as a sum of single commutators of matrices already available from lower-order derivatives.

To set up such a recursive scheme, we must determine the derivatives of single S commutators. To fourth order, the required derivatives may be written as

A,XS

a2 PHASXa, 共37兲

A,XS

ab2 PHPabASXab⫹2共ASaXb兴, 共38兲 关A,XS

abc2 PHPabcASXabc⫹3共ASaXbc

⫹3共ASabXc兴, 共39兲 关A,XS

abcd2 PHPabcdASXabcd⫹4共ASaXbcd

⫹6共ASabXcd⫹4共ASabcXd兴, 共40兲 where the operator PHextracts the Hermitian part of a matrix A:

PHA12AA兲. 共41兲 From these expressions, the derivatives of the AO density matrix may be generated recursively, with extensive reuse of intermediates. Expressions for higher derivatives are easily set up in the same manner.

It should be noted that the complexity of the derivatives Eqs.共33兲–共36兲arises because the overlap matrix depends on the perturbation. For perturbations where the overlap matrix is unaffected by the perturbation, the derivatives take the simpler form:

Da⫽关D0,XaS, 共42兲 DabPab共关D0,XabS⫹关关D0,XaS,XbS兲, 共43兲 DabcPabc共关D0,XabcS32关关D0,XabS,XcS

32关关D0,XaS,XbcS

⫹关关关D0,XaS,XbS,XcS兲, 共44兲 DabcdPabcd共关D0,XabcdS⫹2关关D0,XabcS,XdS

⫹2关关D0,XaS,XbcdS⫹3关关D0,XabS,XcdS

⫹2关关关D0,XabS,XcS,XdS

⫹2关关关D0,XaS,XbcS,XdS

⫹2关关关D0,XaS,XbS,XcdS

⫹关关关关D0,XaS,XbS,XcS,XdS兲. 共45兲 The only contributions are those that involve exclusively the derivatives of X.

In the evaluation of the density matrices discussed here, we have not taken into account the simplifications that fol- low from the 2n⫹1 rule. According to this rule, the deriva-

tives of X that occur only linearly in the derivatives Eq.

共21兲–共24兲 do not contribute to the energy derivatives and may consequently be omitted.30 In practice, this means that the derivatives of X to order n determine the energy to order 2n⫹1. We shall return to this point later.

B. Derivatives of the reference density matrix

As the molecule is perturbed, we must make sure that the reference density D0remains a valid density matrix. Oth- erwise, it can no longer be used as the generating density matrix of the exponential parametrization Eq. 共28兲. In par- ticular, it must satisfy the idempotency relation

D0SD0D0 共46兲

as S changes. In the following, we shall use this relation to determine the derivatives of D0.

Differentiating Eq.共46兲with respect to the perturbation, we obtain

D0aD0aSD0D0SaD0D0SD0a. 共47兲 Some simple manipulation involving the projectors Eqs.共13兲 and共14兲shows that Eq.共47兲uniquely determines the projec- tions of D0a onto the occupied–occupied and virtual–virtual orbital spaces

PD0aP⫽⫺D0SaD0, 共48兲

QD0aQ0. 共49兲

By contrast, PD0aQ and QD0aP are undetermined by the idempotency. We may therefore choose these parts of D0a freely without affecting the idempotency condition. A natural choice is to set both equal to zero,

PD0aQ0, 共50兲

QD0aP0. 共51兲

With these choices of PD0aQand QD0aP, the first derivative of D0 is uniquely defined as

D0a⫽⫺D0SaD0. 共52兲 It is easily verified that Eq.共52兲satisfies not only the differ- entiated idempotency relation Eq.共7兲but also the differenti- ated symmetry and rank conditions in Eqs.共5兲and共6兲. It is therefore a valid derivative Hartree–Fock density matrix.

Once we have determined the first derivative of the ref- erence density matrix, its higher derivatives follow recur- sively by further differentiation of Eq.共52兲. In the following, we list the derivatives of the reference density matrix to fourth order:

D0a⫽⫺D0SaD0, 共53兲 D0ab⫽⫺D0SabD02 PHPabD0SaD0SbD0, 共54兲 D0abc⫽⫺D0SabcD0PHPabc6D0SabD0ScD0

6D0SaD0SbD0ScD0兲, 共55兲

(6)

D0abcd⫽⫺D0SabcdD0PHPabcd8D0SabcD0SdD0

6D0SabD0ScdD0 共56兲

24D0SabD0ScD0SdD012D0SaD0SbcD0SdD0

24D0SaD0SbD0ScD0SdD0). 共57兲 The symmetrization operators are given by Eqs. 共26兲 and 共41兲. The corresponding expressions for higher derivatives are easily generated.

It should be understood that the choice of reference den- sity matrix is never unique—any valid density matrix will do. If the geometry is distorted, for example, we must choose one particular reference density matrix共among the infinitely many possible matrices兲 at each geometry. In this way, we establish a connection between density matrices at different geometries, in much the same way as connections are estab- lished between reference MOs when derivatives are taken in MO theories31—see also Refs. 32–34.

The choice of connection can sometimes have an impor- tant effect on the calculation of derivatives. Thus, if the con- nection is chosen such that D0abecomes very large compared with Da, then Xa becomes large as well. Eventually, this situation may lead to numerical instabilities in the calcula- tion of derivatives, when the differentiated density is ob- tained from large contributions that nearly cancel. Our con- nection minimizes the norm of the first derivative Eq.共52兲by setting the occupied–virtual and virtual–occupied blocks equal to zero—see Eqs. 共50兲 and 共51兲. Conceptually, our choice of connection for the AO reference density matrix is similar to that of the natural connection in MO theory, in which the orthonormal orbitals of the perturbed system are required to have maximum overlap with the unperturbed set of MOs.33

C. Response equations

To calculate the derivatives of the density matrix accord- ing to Eqs.共33兲–共36兲, it remains to discuss the evaluation of the derivatives of the rotation matrix X. Because of the 2n

⫹1 rule, we need only determine these derivatives to second order to calculate the energy to fourth order. Differentiating the variational conditions Eq.共19兲twice, we obtain

PAFaDSFDaSFDSa兲⫽0, 共58兲 PAPabFabDSFDabSFDSab2FaDbS2FaDSb

2FDaSb兲⫽0. 共59兲 By analogy with Eq. 共41兲, we have here introduced the op- erator PA, which extracts the anti-Hermitian part of a matrix A:

PAA12AA兲. 共60兲 Noting that the derivatives of the Fock matrix are given by

FahaGaD兲⫹GDa兲, 共61兲 FabhabGabD兲⫹GDab兲⫹2 PabGaDb兲, 共62兲 and introducing the notation

KA兲⫽PAGADSFAS兴, 共63兲

we find that Eqs. 共58兲and共59兲may be written as

KDa兲⫽⫺PAhaDSGaDDSFDSa兴, 共64兲 KDab兲⫽⫺PAhabDSGabDDSFDSab

2 PAPabGaDbDSFaDbS

FaDSbFDaSb兴, 共65兲 where the unknown, perturbed densities Daand Daboccur on the left-hand side only. To comply with the symmetry, rank, and idempotency conditions, the perturbed densities must be written in the form of Eqs. 共33兲 and共34兲. We therefore re- write the derivatives of the density matrices as

Da⫽关D0,XaSD2na 1, 共66兲 Dab⫽关D0,XabSD2nab1 共67兲 with

D2na 1D0a, 共68兲 D2nab1PabD0ab⫹2关D0a,XbS⫹2关D0,XaSb

⫹关关D0,XaS,XbS兲, 共69兲 and arrive at the following linear sets of equations:

K共关D0,XaS兲⫽⫺PAhaDSGaDDSFDSa

KD2na 1兲兴, 共70兲 K共关D0,XabS兲⫽⫺PAhabDSGabDDSFDSab

KD2nab1兲兴⫺2 PAPabGaDbDS

FaDbSFaDSbFDaSb兴. 共71兲 These are the Hartree–Fock density-matrix response equa- tions, equivalent to the first- and second-order coupled- perturbed Hartree–Fock equations of MO theory.

The left-hand sides of the first- and second-order re- sponse equations共70兲and共71兲are identical and the same for all perturbations; only the right-hand sides differ depending on the order of the differentiation and the nature of the per- turbation. Consequently, the same linear solver may be used in all cases. However, we note that, since the second-order equation 共70兲contains the first-order perturbed density ma- trix Da, the first-order equations must be solved before the solution of the second-order equations is attempted.

The Hartree–Fock response equations may be solved by, for example, the conjugate-gradient method, which is well suited to the study of large systems. In solving the equations, redundancies must be properly treated 共by applying projec- tors兲and a suitable preconditioner must be found to speed up convergence.35 The techniques are essentially the same as those needed for the optimization of the Hartree–Fock den- sity matrix. By exploiting the sparsity of the AO matrices, linear scaling is achieved for sufficiently large systems, as discussed in the next section.

V. SELECTED PROPERTIES

In the present section, we consider in more detail the evaluation of a few important molecular properties: the mo-

(7)

lecular gradient, the molecular Hessian, the magnetizability tensor, and the nuclear magnetic shielding tensors.

A. The molecular gradient

From Sec. III, we recall that the molecular gradient may be written in the general form

EaTr Dha12Tr DGaD兲⫹Tr DaFhnuca 共72兲

Tr Dha12Tr DGaD兲⫹Tr共D0a⫹关D,XaSFhnuca , 共73兲 where we have used Eq.共33兲.共Since, for the undifferentiated density matrix, there is no need to distinguish between D and D0 when X0, we here use D in place of D0 except in derivatives.兲According to the 2n1 rule, Xamakes no con- tribution to the gradient and may be omitted in the calcula- tion of the gradient, which therefore takes the form

EaTr Dha12Tr DGaD兲⫹Tr D0aFhnuca 共74兲

Tr Dha12Tr DGaD兲⫺Tr DSaDFhnuca . 共75兲 To obtain the final, more explicit expression, we have used Eq. 共53兲.

Although the vanishing of Xa from the molecular gradi- ent follows from quite general considerations 共the 2n⫹1 rule兲, it is nevertheless instructive to demonstrate explicitly how this occurs for the gradient. Expanding the S commuta- tor, we obtain for the last contribution to the gradient Eq.

共73兲

Tr关D,XaSF⫽Tr共DSXaFXaSDF

Tr XaFDSSDF

⫽0, 共76兲

where we have invoked Eq.共19兲. Thus, Xa does not contrib- ute since it is multiplied by the Hartree–Fock variational conditions. Similar simplifications occur to higher orders, where the derivatives of X are multiplied either by the Hartree–Fock conditions or by their derivatives.

For sufficiently large molecules, the cost of evaluating the gradient Eq.共75兲scales asO( M ) where M is the size of the molecule—that is, linearly with the size of the system.

For the first two terms and for the last term in Eq.共75兲, linear scaling follows by noting that these terms may be calculated in the same manner as the energy in Eq. 共1兲, replacing un- differentiated overlap distributions

␮␯⫽␹*␹ 共77兲

by differentiated ones as appropriate. Since the number of derivatives arising from each overlap distribution is indepen- dent of the size of the system, the cost of evaluating the first, second, and fourth contributions to Eq. 共75兲 scales in the same manner as the cost of evaluating the total energy—that is, linearly共provided the Coulomb interactions are calculated by the FMM or an equivalent method兲. Linear scaling of the term containing Sain Eq.共75兲follows by similar arguments.

Alternatively, we note that, for a given coordinate xa, the number of nonzero elements in Sascales asO(1); similarly,

the number of nonzero elements in DSa scales asO(1), and so on. Since the number of coordinates xa scales as O( M ), the cost of evaluating ⫺TrDSaDF also scales as O( M ). In conclusion, the total molecular gradient may be calculated in a manner that scales linearly with the size of the system.

B. The molecular Hessian

Combining the general expression for the molecular Hessian Eq.共22兲with the 2n⫹1 rule, we obtain

EabTr Dhab12Tr DGabD兲⫹Tr D2nab1F

2 PabTr DahbGbD兲⫹ 12GDb兲兴⫹hnucab , 共78兲 where D2nab1 is given by Eq. 共69兲. Thus, to calculate the molecular Hessian, we need only solve the first-order re- sponse equations Eq. 共70兲. Since the geometrical perturba- tions are real, the perturbed rotation matrix Xa is a real, antisymmetric matrix, containing only contributions from XR in Eq.共10兲.

We also note that, since the expression for the molecular Hessian has been written in a form that is manifestly sym- metric in the indices a and b, it may be shown that the error in the Hessian is quadratic in the error in the perturbed den- sity matrix Da—see, for example, Ref. 30. Thus, in order to calculate the Hessian to a numerical precision of 106, we need only solve the linear equations to a precision of 103. By invoking Eq.共70兲, we may write the molecular Hes- sian Eq. 共78兲in the alternative form

EabTr Dhab12Tr DGabD兲⫹Tr D0abF⫹Tr关D0b,XaSF

⫹Tr关D,XaSbFTr D0bhaGaD兲兴

Tr DahbGbD兲⫹GD0b兲兴⫹hnucab , 共79兲 where we distinguish between D0aand Da. In this manner, we may compute Eab without having to calculate Db. However, if this expression is used to compute the Hessian, the error in Eab is no longer quadratic in the error in Da. This is an important point in favor of Eq. 共78兲since, in the AO basis, the solution of the response equations is often difficult be- cause the electronic Hessian is not diagonally dominant.

Let us now consider the cost of evaluating the molecular Hessian for a large system of size M. As for the molecular gradient in Sec. V A, our discussion of the cost of evaluating the Hessian is qualitative rather than quantitative, its purpose being to indicate in general terms how linear scaling arises for large systems.

Let us consider, for a given coordinate xaof atom A, the number of significant elements on the right-hand side of the first-order response equations in the form Eq. 共64兲. We first note that, for the derivative overlap matrix Sa, the number of nonzero elements S␮␯a scales asO(1) since only overlap dis- tributions⍀␮␯ with AOs on A contribute. Next, we consider the scaling of the matrix

fahaGaD兲. 共80兲 From Eqs.共2兲–共4兲, we see that fahas three parts: the kinetic, Coulomb, and exchange parts. For the kinetic and exchange parts, O(1) scaling of the number of significant elements

Referanser

RELATERTE DOKUMENTER

Analysis of molecular variance (AMOVA) showed that the majority of molecular variation (41%) was due to variation between geographical regions (Lithuania and Norway), 37%

Integration of the classical equations of motion on ib initio molecular potential energy surfaces using gradients and Hessians: application.. to translational energy

An exponential form 2 fits the basis-set errors of Ž. the cc-pVXZ sets for the total molecular energy well and better than does a power form 3. the total energies are in general

The derivatives are expressed m an especially compact form involving atonuc-orbital integral derrvatives transformed to the molecular- orbital basrs followed by a

In this paper we discuss the evaluation of molecular dipole mo- ments, polarizabilities and the geometrical derivatives of these prop- erties using ab initio wave

The key to solving this problem is to calculate the CI molecular gradient and other molecular properties not from the original energy expression (equation 73) but from a differ-

The calculation of CC geometrical derivatives is espe- cially challenging since the wave function is constructed from nonvariational parameters (molecular orbitals and

This formu- lation has, together with a general exponential parametriza- tion of the one-electron density matrix in the AO basis, been used to obtain expressions for the