• Keine Ergebnisse gefunden

3. The time-dependent variational principle 31

3.3. Dipolar potential

with

kl =Akl+ Σg, (3.44)

˜

pkl =pkl−2Σgqg, (3.45)

˜

γklkl+qgTΣgqg, (3.46) and where ˆvgg,qg are the amplitude, width matrix and center coordinate of the Gaussian beam, respectively. Gaussian laser beams can be used for instance in the generation of multi-well potentials, where a superposition of several Gaussian beams is deployed. For the experimental setup see reference [76]. We use these Gaussian potentials in the description of the triple-well in chapter 5 and of the complex double-well in chapter 6, where ˆvg is a complex number to describe gain and loss of particles.

The scattering potential in equation (2.14) is calculated analogously to the norm integral (3.38) and one obtains

glVcgk

= 8πaX

i,j

glgjgigk

= 8πaI0 Aklij,pklij, γklij

, (3.47)

with

gklij =gjglgkgi, (3.48a) Aklij =Al+Ak+Aj +Ai, (3.48b) pklij =pl+pk+pj+pi, (3.48c)

γklijlk. (3.48d)

The additional integrals

glxVcgk

, etc. in equation (3.22) can be treated the same way like the overlap integrals (3.41) above by

glgjαmβngigk

=Iαmβn Aklij,pklij, γklij

. (3.49)

3.3. Dipolar potential

of elliptic integrals, which can be calculated very efficiently. We will see in the following that, with the ansatz (3.1), the integral (2.18) is neither analytically solvable nor reducible to elliptic integrals anymore. Furthermore, we will see in section 3.3.3 that a large number of these integrals has to be calculated in every time step. The numerical evaluation of the dipolar integrals has therefore to be performed as efficiently as possible. In fact, in our simulations the calculation of the dipole integral accounts for more than 80% of the run time, even with all optimizations included.

In this thesis systems are studied, where the dipoles are aligned either in the direction perpendicular or parallel to the direction of the strong confinement along the y-axis. In the following derivations we assume the dipoles to be aligned in a direction perpendicular to the y-direction of the strong confinement, which we choose without loss of generality as z-axis. In appendix A.4 the corresponding derivations are sketched, for the case that the dipoles are aligned parallel to the direction of strong confinement. In the following we use the abbreviations

σ=

1, x, z, x2, y2, z2, xz , (3.50a)

σkl= (

1,− ∂

∂pklx ,− ∂

∂pklz , ∂2

(∂pklx)2, ∂2

∂pkly 2, ∂2

(∂pklz )2, ∂2

∂pklx∂pklz )

(3.50b) κ(σ) =

1, kx, kz, kx2, ky2, k2z, kxkz , (3.50c) to accommodate the set of seven integrals required in the vector r of equation (3.22). By the use of the ansatz (3.1) for the condensate wave function Ψ in (2.18) we obtain for the elements of r

glσVdgk

=X

j,i

glσVdijgk

=X

j,i

ZZ

d3xd3x0 σgkl(x)gij(x0)

1−3(z−z0)2

|x−x0|2

1

|x−x0|3 . (3.51) Note that in general (3.51) is a six-dimensional integral.

With the abbreviations (3.50) and by the use of the convolution theorem we get glσVdgk

=X

j,i

Z

d3x σgkl(x)F−1



F

Z

d3x0 gij(x0)1−3(zz0)2

|xx0|2

|x−x0|3



=X

j,i

Z

d3x σgkl(x)F1



(2π)3/2F

gij(x0) F

1−3(zz0)2

|xx0|2

|x−x0|3



 , (3.52)

where F and F1 denote the Fourier and inverse Fourier transform, respectively and gkl defined in equation (3.39a). The terms in (3.52) can be calculated sep-arately. The first Fourier transform of gij can be computed analytically which yields

F

gij(x0) = 1

√2π3 Z

−∞

d3x0 e(x0TAijx0+(pij)Tx0ij)e−ikTx0

= eγij

√2π3

r π3 detAij exp

1

4 pij + ikT

Aij1

pij + ik

. (3.53)

This can be simplified and expressed by the overlap integral I0ij given in equation (3.40) and we obtain

F

gij(x0) = eγij

√2π3

r π3 detAij exp

1 4 pijT

Aij1

pij

×exp

−1

4kT Aij−1

k+ 1

2i pijT

Aij−1

k

= I0ij

√2π3 exp

−1

4kT Aij1

k+1

2i pijT

Aij1

k

. (3.54)

The Fourier transform of the kernel yields [33]

(2π)3/2F



1−3(zz0)2

|xx0|2

|x−x0|3



= 4π 3

3k2z k2 −1

. (3.55)

Insertion of (3.54) and (3.55) in equation (3.52) yields glσVdgk

= 1 6π2

X

j,i

Z

d3x σgkl Z

d3k 3k2z

k2 −1

eikTx

×I0ijexp

−1

4kT Aij1

k+ 1

2i pijT

Aij1

k

. (3.56)

3.3. Dipolar potential

The factor σ in (3.56) can be expressed by derivatives of gkl with respect to pklσ as already done in the calculation of Iαmβn in equation (3.36). Interchanging of the integrations with subsequent integration over xyields

glσVdgk

= ∂σkl2

X

j,i

Z

d3k I0klexp

−1

4kT Akl1

k−1

2i pklT

Akl1

k

×I0ijexp

−1

4kT Aij1

k+ 1

2i pijT

Aij1

k

× 3k2z

k2 −1

, (3.57)

where we used (3.50b) and expressed the result in terms of I0kl, see (3.40), again.

The two exponentials can be combined by rewriting equation (3.57) as glσVdgk

= ∂σkl2

X

j,i

I0klI0ij Z

d3k exp

−1

4kTklijk+ 1

2i ¯pklijT

k

× 3kz2 k2

|{z}

(1)

−1

|{z}

(2)

!

, (3.58)

with the abbreviations

klij = (Akl)−1+ (Aij)−1, (3.59a)

¯

pklij = (Aij)−1pij −(Akl)−1pkl. (3.59b) Equation (3.58) can be split in two terms

glσVdgk

=X

j,i

σklI0klI0ijh

Jσ=1klij −Jskliji

, (3.60)

whereJσ=1klij ∝term (1) andJsklij ∝term (2) in equation (3.58) (see equation (3.65) below for the definition ofJσklij). The termJsklij has the same form as the scattering term in equation (3.47) and we can therefore rewrite it as

Jsklij =− 1 6π2

Z

d3k exp

−1

4kTklijk+ i

2 p¯klijT

k

=−4 3

r 1

πdet ¯Aklij exp

−1

4 p¯klijTklij1

¯ pklij

=−8π·1 6

vu

ut 1 π3det

(Akl)−1+ (Aij)−1

×exp

−1

4 p¯klijTklij−1

¯ pklij

. (3.61)

This leads after some transformations including the replacements of ¯A,p¯by A,p and the use of equations (3.59) to

σklI0klI0ijJsklij =−8π 6

r π3

detAklij exp 1

4 pklijT

Aklij1

pklij−γklij

×P h

Aklij1

,pklij i

=−8π

6 Iαmβn Aklij,pklij, γklij

, (3.62)

where P[(Aklij)1,pklij] is a polynomial of the matrix and vector elements of (Aklij)1 and pklij (identical with P in equation (3.37)). In equation (3.62) αm andβnhave to be chosen according toσ in equation (3.60). This term can thus be included by a change of the scattering lengtha →aeff =a− 16 in equation (3.47) for the computation of the matrix elements of Vc, i.e.

glσ(Vc+Vd)gk

=

gl σ

a− 1

6 Vc

a +Vd,eff gk

. (3.63)

Then, the calculation of the dipole integral (3.51) reduces to the calculation of an effective dipole potential

glσVd,effgk

=X

j,i

σklI0klI0ijJσ=1klij , (3.64)

with

Jσklij = 1 2π2

Z

d3k κ(σ)kz2 k2 exp

−1

4kTklijk+ i

2 p¯klijT

k

. (3.65)

Here, the seven integralsJσklij occur after the application of ∂σkl in equation (3.64).

The combination of these integrals in order to obtain (3.64) is described in appendix A.2.1, where the application of the operators ∂σkl is discussed, as well.

Up to here the calculation was completely general. Henceforth, we consider the strong confinement in y-direction and restrict the problem to displacements only in x and z direction (pklijy = 0) and to rotations about the y-axis, which leads to matrices of the form

klij =

klijx 0 A¯klijxz 0 A¯klijy 0 A¯klijxz 0 A¯klijz

 . (3.66)

3.3. Dipolar potential

Now, a transformation of the 2×2 subsystem inxandz into principle components is possible. This can be achieved by a complex rotation of the complex symmetric matrices ¯Aklij and we obtain

Jσklij = 1 2π2

Z

d3k0 κ(σ) (kz0 cosα−kx0 sinα)2 k02 exp

−1

4k0TA˜¯klijk0+ i

2 p˜¯klijT

k0

= 1 2π2

Z

d3k0 κ(σ) (c0kz0 −c1k0x)2 k02 exp

−1

4k0TA˜¯klijk0+ i

2 p˜¯klijT

k0

, (3.67) where ˜¯Aklij is the diagonalized complex matrix and

A˜¯klijT

=CTklijC , (3.68a)

˜¯

pklijT

= ¯pklijT

C , (3.68b)

k=Ck0, (3.68c)

with the complex orthonormal transformation matrix C =

 cosα 0 sinα

0 1 0

−sinα 0 cosα

= (c1,cy,c2) =

c0 0 c1 0 1 0

−c1 0 c0

. (3.69)

The complex rotation angle α can be obtained by evaluation of one of the eigen-vectors c1 or c2, or equivalently, by a Jacobi transformation [79]. The tilde on A˜¯klij and the prime on k0 will be omitted in the further calculations. After the principle component analysis equation (3.67) takes the form

Jσklij = 1 2π2

Z

d3k κ(σ) (c0kz−c1kx)2 k2 exp

−1

4 A¯klijx kx2+ ¯Aklijy k2y+ ¯Aklijz kz2

×exp i

2 p¯klijx kx+ ¯pklijz kz

. (3.70)

Carrying out the ky-integration yields (c.f. [80] 3.466 1.) forσ 6=y2 Jσklij = 1

2 ZZ

dkxdkz 1−Φ r1

4A¯klijy (kx2+kz2)

!!

×πκ(σ) (c0kz−c1kx)2e14A¯klijy (k2x+kz2) pk2x+kz2

×exp

−1

4 A¯klijx kx2+ ¯Aklijz kz2 + i

2 p¯klijx kx+ ¯pklijz kz

, (3.71)

where Φ(x) denotes the complex error function (see appendix A.3). For σ = y2 the ky-integration yields (c.f. [80] 3.466 2.)

Jyklij2 = 1 2π2

Z

d3k kz2ky2 k2 exp

−1

4 A¯klijx k2x+ ¯Aklijy ky2+ ¯Aklijz kz2

×exp i

2 p¯klijx kx+ ¯pklijz kz

= s π3

klijy Z

dkxdkz(−c1kx+c0kz)2e14A¯klijx kx214A¯klijz k2z+2ip¯klijx kx+2ip¯klijz kz

− 1 2π

Z

dkxdkz(−c1kx+c0kz)2p

kx2+kz2erfc 1

2

qA¯klijy (kx2+k2z)

×e14A¯klijy (k2x+kz2)exp

−1

4A¯klijx kx2− 1

4A¯klijz kz2+ i

2p¯klijx kx+ i

2p¯klijz kz

, (3.72)

where erfc(x) is the complementary error function (see appendix A.3). The first summand in equation (3.72), in the following denoted by Jyklij2,0, is a standard Gaussian-type integral which yields

Jyklij2,0 = −4 ¯Aklijxzc0−A¯klijzxc12

+ 8 ¯Aklijxklijzklijz c21+ ¯Aklijx c20 rA¯klijx

5

klijy

klijz

5

π

×exp (

−1 4

¯ pklijx 2

klijx

+ p¯klijz 2

klijz

!)

, (3.73)

and the second summand in equation (3.72), named with Jyklij2,1 has the same form as Jσklij in equation (3.65) (we therefore set ˜Jyklij2 ≡ Jyklij2,1 and omit the tilde from here, however, note that whenJyklij2,1 has been calculated it still has to be added the first summand according toJyklij2 =Jyklij2,0+Jyklij2,1). In “polar coordinates”

kx =ρcosφ , (3.74)

kz =ρsinφ , (3.75)

3.3. Dipolar potential

we can write equation (3.71) as

Jσklij = 1 2π

ZZ

dρdφ erfc

qA¯klijy

ρ 2

ρ2fσ(ρ, φ)

×exp

−1

4 −A¯klijy + ¯Aklijx cos2φ+ ¯Aklijz sin2φ ρ2

×exp

+i

2 p¯klijx cosφ+ ¯pklijz sinφ ρ

, (3.76)

where fσ is a function of both integration variables, and

J1klij : f1 = (c0sinφ−c1cosφ)2 , (3.77a) Jxklij : fx =ρf1(c0cosφ+c1sinφ) , (3.77b) Jzklij : fz =ρf1(c0sinφ−c1cosφ) , (3.77c)

Jxklij2 : fx2=fx2, (3.77d)

Jyklij2,1 : fy22f1, (3.77e) Jzklij2 : fz22f12, (3.77f)

Jxzklij : fxz=fxfz. (3.77g)

We rewrite the complementary error function erfc(z) in terms of the Faddeeva func-tion ω(z) = exp(−z2) erfc(−iz) (the exponentially-scaled complementary complex error function, see appendix A.3). The numerical evaluation of w(z) is one of the numerically most expensive computations in the evaluation of the dipole integral.

An efficient algorithm is given e.g. in reference [81]. With the Faddeeva function inserted we obtain

Jσklij = 1 2π

Z 0

w

i

qA¯klijy ρ 2

ρ2e14A¯klijz ρ2

× Z

0

fσ(ρ, φ) e14(A¯klijx A¯klijz )ρ2cos2φe2i(p¯klijx ρcosφ+¯pklijz ρsinφ)dφdρ . (3.78)

Equation (3.78) can be transformed to Jσklij = 1

2π Z

0

dρ w

i

qA¯klijy ρ 2

ρ2e14A¯klijz ρ2 X

±sinφ

±cosφ

Zπ/2 0

dφ fσ(ρ,±sinφ,±cosφ)

×e14(A¯klijx A¯klijz )ρ2cos2φe2i(±p¯klijx ρcosφ±p¯klijz ρsinφ), (3.79) where it is summed over all 4 combinations of signs of cosφ and sinφ (note the dependency of fσ(ρ,±sinφ,±cosφ)). With the substitution x = cos(2φ) = 2 cos2φ−1 we obtain after some short transformations

Jσklij = 1 4π

Z 0

dρ Z1

1

dx X

±xs

±xc

fσ(ρ,±xs,±xc)

√1−x2 w(iλρ)ρ2e12A(x)ρ2+p(±xs,±xc, (3.80)

with

xc =xc(x) =

r1 +x

2 , xs =xs(x) =

r1−x

2 , (3.81)

and the abbreviations

λ≡

qA¯klijy

2 , (3.82a)

A(x)≡ 1

4 A¯klijx + ¯Aklijz + ¯Aklijx −A¯klijz x

, (3.82b)

p±(x) = p(±xs,±xc)≡ 1

2i ±p¯klijx xc±p¯klijz xs

. (3.82c)

In equation (3.80) it has to be summed over all four combinations of sign of the quantities xc and xs. For diagonal matrices Aklij the integral has a simpler form as the factor c1 = 0. Note that in equation (3.80) all Aklijσ and all pklijσ are the versions after the principle component analysis (3.68).

Up to here all derivations have been performed analytically. However, in general the two-dimensional integral (3.80) cannot be reduced further. In order to solve it we have to employ numerical methods, such as quadratures and expansions. The objective here is to minimize the amount of computational effort as much as possi-ble. In our studies we found a combination of a Taylor expansion of the Faddeeva

3.3. Dipolar potential

function with a Gauß-Chebyshev quadrature to be the appropriate method. The – quite subtle – details of this method will be discussed in section 3.3.1, whereas in appendix A.2.2 a review on numerical quadratures is given and their application to the integral (3.80) is discussed.

Before we address the general case and thereby the numerical solution in section 3.3.1 we notice that some special cases exist, where further simplifications are applicable that allow for avoiding the numerically expensive methods. In those cases that we deal with in section3.3.2, a reduction of the two-dimensional integral (3.80) to elliptic integrals is possible.

3.3.1. Numerical evaluation of J

σklij

In general, the integrals (3.80) have to be calculated numerically. As the r.h.s. vec-torr in equation (3.22) has to be constructed several times for every time step and it contains a large number of such integrals, a very efficient computational method is required. Concerning the x-integration, the application of Gauß-Chebyshev quadrature is self-evident due to the factor (1−x2)1/2 that is equivalent to the weight function of this quadrature rule (see appendixA.2.2). We show in appendix A.2.2 that although for the ρ-direction a quadrature is, in principle, possible nu-merical difficulties arise and we find a Taylor expansion of the Faddeeva function to be the fastest and most stable method.

In this sense, we make use of the Taylor expansion of the Faddeeva function at z = 0

w(iz) = X m=0

ξ(m) (2z)m = 1− 2

√πz+z2 − 4 3√

πz3+ 1

2z4+. . . , (3.83) with [82]

ξ(m) = −12m

Γ m2 + 1πmmod 22 1−(−1)

m

4 , m≥0, (3.84)

where Γ(x) is the gamma function [83], and find forw(iλρ) in equation (3.80)

w(iλρ) = X m=0

ξ(m) (2λρ)m . (3.85)

In terms of the abbreviations given in equations (3.82) we can express equation (3.80) by

Jσklij = 1 4π

Z1

−1

dxX

±xs

±xc

Z 0

dρ w(iλρ)ρ2e12A(x)ρ2+p±(x)ρfσ±(ρ, x)

√1−x2

= 1 4π

Z1

−1

dxX

±xs

±xc

√ 1 1−x2

X m=0

ξ(m) Z

0

dρ fσ±(ρ, x)ρ2+me12A(x)ρ2+p±(x)ρ

| {z }

≡Bσ±(m,x)

,

(3.86) where we replaced the dependency on (±xs,±xc) by the dependency on x and indicate the±by a superscript. The Taylor terms Bσ±(m, x) can be calculated an-alytically, and we find a recursion formula for the particular terms, see appendix A.2.3. Thereby the starting point of the recursion formula is given in terms of the Faddeeva function again and it is a remarkable result that thus only one (compu-tational expensive) evaluation of w(z) is necessary to gain all Taylor terms. With this result the ρ-integration can be considered given and only the x-integration remains. A Gauß-Chebyshev quadrature is suited best for the numerical compu-tation of this integral, see appendix A.2.2. The actual computation of the Taylor sum does, however, require more effort as described here. We have to consider the application of the Gauß-Chebyshev quadrature and we have to ensure the conver-gence of the Taylor series. This non-trivial task will be handled in the following.

In the practical use of the Taylor expansion (3.86) we sum over a finite number of terms P

m=0 → Pmmax

m=0. To provide for the convergence of the series in all possible configurations of the variational input parameters Aklij and pklij and to lower the number of mmax two further steps have to be taken. The first one is the application of a nonlinear summation method, the Pad´e approximation, the

‘best’ approximation of a function by a rational function of given order. Details about the Pad´e approximation and the numerical computation with the -Wynn algorithm can be found in appendix A.2.4. The second step that enhances the convergence properties even in cases, where the sum Pmmax

m=0 contains terms with alternating sign, is the interchanging of the Chebyshev quadrature with the Taylor summation

Jσklij = 1 4π

X m=0

Z1

1

dx 1

√1−x2ξ(m)X

±xs

±xc

B±σ(m, x). (3.87)

3.3. Dipolar potential

Although two finite sums are interchanged, the step is non-trivial as we apply the Pad´e approximation to the Taylor series, what implies the interchanging of this nonlinear summation method with the Chebyshev sum. To confirm the validity of this step, we applied extensive numerical tests for a wide range of external parameters ¯Aklij and ¯pklij used in equation (3.80). With the described procedure we obtained best results regarding both the stability of the algorithm and speed of convergence with a usual Taylor order of mmax≈12 and nquad ≈32 Chebyshev nodes.

3.3.2. Cases with analytic solutions for J

σklij

Equation (3.59b) shows that ¯pklij = 0 for all integrals with (i, j) = (k, l). In these cases the numerically integrated Jσklij integrals reduce to elliptic integrals. The following derivations are addressing the integrals with σ = 1 in equation (3.50a), whereas the integrals with σ 6= 1 are discussed at the end of this section. From reference [30] we know the result of the dipolar integral forpk = 0 andAklassumed to be diagonal, which reads for (i, j) = (k, l)

glVdklgk

= e−2γkl

r π3 8 detAkl

4π 3

hκ˜klx˜κklyRD

˜ κklα2

, κ˜klβ2

,1

−1i

, (3.88) where the abbreviations

˜ κklα2

= A˜¯klklα A˜¯klklβ

, α=x, y , β =z , (3.89) are used andRDdenotes the elliptic integral of second kind in Carlson form [84,85], see appendixA.2.5

RD(x, y, z) = 3 2

Z 0

p dt

(x+t)(y+t)(z+t)3 . (3.90) The tilde denotes the diagonal version of ¯Aklkl. The second summand in (3.88) has been dealt with already by introducing the effective dipolar integral in equation (3.64). The difference to the result of reference [30], given in equation (3.88), is made by the presence of the off-diagonal elements of ¯Aklij. It is therefore reasonable to express the quantities Jσklkl by elliptic integrals. If we compare the first term in equation (3.88) with the result of equation (3.64)

glVd,effkl gk

= I0kl2

J1klkl, (3.91)

This would also be the case, if all GWPs are located at the origin and possess zero momentum, however, in the scenarios dealt with in this thesis this is very unlikely to happen.

we immediately obtain J˜1klkl= 4

3

rdetAkl

8π ˜κklxκ˜klyRD

˜ κklα2

, κ˜klβ2

,1

, (3.92)

which is, however, only true for diagonal matrices ¯Aklkl. We may transform the square root in the prefactor as follows

rdetAkl

8π =

vu utdet

2 ¯Aklkl1

8π =

r 1

πdet ¯Aklkl =

s 1

πdet ˜¯Aklkl. (3.93) The integral (3.92) can be split in two terms after the diagonalization of ¯Aklij

J1klkl=c21Jeklkl(x) +c20Jeklkl(z), (3.94) with

Jeklkl(σ) = 4 3

s 1

πdet ˜¯Aklkl˜κklακ˜klβRD

˜ κklα2

, κ˜klβ2

,1

, ˜κklα,β2

= A˜¯klklα,β A˜¯klklσ , (3.95) where{α, β, σ}is an arbitrary permutation of {x, y, z}. Equation (3.95) simplifies to

Jeklkl(σ) = 4 3

vu ut 1

π

A˜¯klklσ 3RD

˜ κklα2

, ˜κklβ2

,1

. (3.96)

The integrals Jxxklkl, Jyyklkl, Jzzklkl and Jxzklkl can also be expressed in terms of elliptic integrals. The integrals Jxklkl and Jzklij vanish as can be seen easily when taking into account that the antisymmetric integrals yield zero. The calculation of these integrals can be found in appendix A.2.5.

The reduction to elliptic integrals can be done for (i, j) = (k, l) i.e. for the total number of N((N −1)/2 + 1) integrals.

3.3.3. Optimizations

The numerical implementation of all integrals has to be efficient for the reasons given above. We therefore want to avoid unnecessary evaluations of any integral and it is reasonable to apply the following procedure for every computation of the EOM. First, the integrated parameters have to be rewritten in the form of equation (3.31). Then, all integrals I0kl have to be calculated and with these the remaining

3.3. Dipolar potential

basic integrals given in section 3.2.1. With these integrals saved, it is now easy to calculate the external, scattering, and dipolar potentials. If all integrals are pre-calculated the matrix K and the vector r in equation (3.15) can be constructed and the EOM can be solved. One further advantage of this procedure is that all quantities of interest, e.g. the mean-field energy, can be calculated easily with this data.

The calculation of the integrals obtained by the Taylor expansion and the Gauß-Chebyshev quadrature – together with the elliptic integrals – are responsible for most of the time cost in the numerical integration. However, the integrals are not independent. Hence, it is appropriate to reduce the number of computed integrals to the minimal number.

In this section we will use the abbreviation “k” for the Gaussian gk and “l” for gl etc. If one takes a look at equation (3.51), interchangingk withl and simulta-neously i with j leads to the complex conjugate of the whole integral hgl|Vdij|gki. This also holds for any other of the six integrals

glσVdjigk

=

glσVdijgk

. (3.97)

For theJσklij-integrals we have to consider that with equation (3.59a) and equation (3.59b)

lkji = A¯klij

, p¯lkji= ¯pklij

. (3.98)

Therefore equation (A.7) leads to a different prefactor

n

∂p¯klijσ nexp

−1

4kTklij

k+1

2i ¯pklij

k

= ∂n

∂p¯klijσ nexp

−1

4kTklij

k+ 1

2 p¯klijT

k

= 1

2kσ n

exp

−1

4kTklijk+1

2i ¯pklijT

k

. (3.99) Now the Jσlkji-integrals can be expressed by Jσklij

J1lkji= J1klij

, Jxlkji =− Jxklij

, Jzlkji =− Jzklij

,

Jxxlkji = Jxxklij

, Jyylkji = Jyyklij

,

Jzzlkji = Jzzklij

, Jxzlkji = Jxzklij

. (3.100) Changing the index pairs (k, l) and (i, j) yields a minus sign for ¯pklij in equation (3.59b). This leads to a minus sign for Jxijkl and Jzijkl.

J1ijkl=J1klij, Jxijkl =−Jxklij, Jzijkl =−Jzklij,

Jxxijkl =Jxxklij, Jyyijkl =Jyyklij,

Jzzijkl =Jzzklij, Jxzijkl =Jxzklij.

(3.101)

Applying both index swaps yields J1jilk =

J1klij

, Jxjilk = Jxklij

, Jzjilk = Jzklij

,

Jxxjilk = Jxxklij

, Jyyjilk = Jyyklij

,

Jzzjilk= Jzzklij

, Jxzjilk= Jxzklij

. (3.102) We notice that for a given set (k, l, i, j) the integrals for the combinations (l, k, j, i), (i, j, k, l) and (j, i, l, k) are given. Therefore a total number ofCnumerical = (N4+ N2−2N)/4 integrals have to be calculated numerically and Celliptic =N(N+ 1)/2 can expressed in terms of elliptic integrals. The remaining N4 integrals can be obtained from these by the relations given above.

If the initial wave is an eigenfunction of the parity operator, the number of Gaussians can be reduced. In this case only half of the number of integrals have to be calculated. The vector r = (r0,rx,rz,rxx,ryy,rzz,rxz)T in equation (3.22) is then given by

r0l = XN k=1

glV(x)gk

= XN/2 k=1

glV(x)gk +

glV(x)Πgk

, (3.103)

r0l+N/2 = XN k=1

ΠglV(x)gk

= XN/2 k=1

ΠglV(x)gk +

ΠglV(x)Πgk

=rl0 , (3.104) and as can be shown easily

rl+N/2σ =s·rσl , (3.105)

wheres =−1 for σ= (x, z) ands = 1 otherwise.