In this tutorial we will investigate the valence $$3s\rightarrow 3p$$ excitation of the magnesium atom and investigate at what radial distances the corresponding electric dipole transition moments pick up contributions.

## Getting the wave function and transition moments¶

We use the following atom input (Mg.xyz):

1

Mg  0.0D0 0.0D0 0.0D0


together with the job input (Exc.inp):

**DIRAC
.WAVE FUNCTION
.PROPERTIES
.ANALYZE
**INTEGRALS
.UNCONT
**WAVE FUNCTION
.SCF
*SCF
.CLOSED SHELL
6 6
**PROPERTIES
*EXCITATION ENERGIES
.ANALYZE
.EXCITATION
2 3
.OPERATOR
'xdipvel'
XALPHA
OVERLAP
CMULT
.OPERATOR
'xdiplen'
DIAGONAL
XDIPLEN
FACTOR
-1.0D0
**ANALYZE
.MULPOP
*MULPOP
.VECPOP
1..oo
1..oo
**MOLECULE
*BASIS
.DEFAULT
dyall.ae3z
**END OF



to be discussed below. We run the job using the command

pam --inp=Exc --mol=Mg.xyz --get "DFCOEF PAMXVC"


such that we recover both the coefficient file DFCOEF and the file of solution vector PAMXVC.

The magnesium atom is a light atom, so we expect relativistic effects, spin-orbit interaction in particular, to be quite weak, and we can assume more or less pure singlets and triplets. Single excitations $$3s\rightarrow 3p$$ lead to

$\begin{split}\left(\begin{array}{c}2\\1\end{array}\right)\left(\begin{array}{c}6\\5\end{array}\right) = 12\end{split}$

microstates, of which 9 are triplets and 3 are singlets. The atomic calculation will be run in the $$D_{2h}$$ subgroup and we shall focus on excitations $$3s\rightarrow 3p$$ in the irrep $$B_{3u}$$, which is the symmetry of the $$x$$-coordinate. We start from a closed-shell reference, which is therefore totally symmetric. This means that the symmetry of the excitation is also the symmetry of the excited state. One should note that the symmetry refers to the total symmetry, including both spatial and spin symmetry. Singlets $$S$$ are totally symmetric, whereas the components $$(T_x,T_y,T_z)$$ of the triplet transform as the rotations. From further symmetry analysis we deduce that there will be three $$3s\rightarrow 3p$$ excitations $$B_{3u}$$: i) a $$3s\rightarrow 3p_y$$ transition of the $$T_z$$ triplet component, ii) a $$3s\rightarrow 3p_z$$ transition of the $$T_y$$ triplet component, and iii) a $$3s\rightarrow 3p_x$$ transition of singlet character. From Hund’s rules we expect the triplet excitations to be the lowest one and will therefore focus on the third, singlet excitation, which is not spin-forbidden. Indeed, when we look in the output we find

================================================================================

*** Excitations of boson symmetry 2 : B3u

--------------------------------------------------------------------------------
Excitation no.   1 excitation energy     0.04122747 a.u.    5.58E-06 (converged)
Linear symmetry:  1u                         1.1219 eV
*** Transition moments <0|A|n> for this excitation:

A - xdipvel              B3u  T-         0.73226613E-04 a.u.
A - xdiplen              B3u  T+         0.17945921E-02 a.u.
--------------------------------------------------------------------------------
Excitation no.   2 excitation energy     0.04161588 a.u.    5.58E-06 (converged)
Linear symmetry:  1u                         1.1324 eV
*** Transition moments <0|A|n> for this excitation:

A - xdipvel              B3u  T-        -0.17966513E-11 a.u.
A - xdiplen              B3u  T+         0.22401089E-09 a.u.
--------------------------------------------------------------------------------
Excitation no.   3 excitation energy     0.14917197 a.u.    1.65E-06 (converged)
Linear symmetry:  1u                         4.0592 eV
*** Transition moments <0|A|n> for this excitation:

A - xdipvel              B3u  T-         0.358852917641 a.u.
A - xdiplen              B3u  T+         2.403791564532 a.u.
================================================================================


showing that the first two excitations have essentially no oscillator strength, in contrast to the final one.

The oscillator strength is given by

$f_{fi}=\frac{2\omega}{\hbar e^2}\left|\langle f|\hat{T}(\omega_{fi})|i\rangle\right|^2$

where the excitation energy is given by $$\Delta E = \hbar\omega_{fi}$$. Within the electric dipole approximation the reduced interaction operator $$\hat{T}$$ is given by

$\hat{T}_{L}=\boldsymbol{\mu}\cdot\boldsymbol{\epsilon};\quad \boldsymbol{\mu}=-e\mathbf{r},$

in the length representation and

$\hat{T}_{V}=\frac{e}{\omega}c\boldsymbol{\alpha}\cdot\boldsymbol{\epsilon}$

in the velocity representation. When the vector $$\boldsymbol{\epsilon}$$ indicating the (polarization) orientation of the electric field component of the incident light is set to the Cartesian unit vector $$\boldsymbol{e}_{x}$$, the interaction operator span the $$B_{3u}$$ irrep. These are the operators specified in the input. However, in the velocity representation the reduced interaction operator $$\hat{T}_{V}$$ is frequency-dependent, and since we do not know excitation energies before running our calculation, this part was not specified. The transition moments of the two interaction operators are therefore strikingly different. However, is we take the transition moment of 0.358852917641 a.u. in the velocity representation and divide by the excitation energy 0.14917197 a.u., we get 2.4056323560049524 a.u., which is rather close to the transition moment of 2.403791564532 a.u. obtained in the length representation. It is close, but not identical, because we are using finite basis sets. The interaction operator in the two representations may have different basis set requirements and this is what we shall investigate by looking at their radial distribution.

As a reference we will use the number density of the atom, but we will scale all quantities such that they integrate to one, in order to facilitate comparison. We start by getting the radial distribution for the number density. The input (dens.inp) reads

**DIRAC
**INTEGRALS
.UNCONT
**WAVE FUNCTION
.SCF
*SCF
.CLOSED SHELL
6 6
**VISUAL
.DSCALE
12.0
.DENSITY
DFCOEF
0.0D0 0.0D0 0.0D0
10.0
500
.3D_INT
**MOLECULE
*BASIS
.DEFAULT
dyall.ae3z
**END OF



where we scale the density down by the 12 electrons of magnesium. We run the job using:

pam --inp=dens --mol=Mg.xyz --put DFCOEF --get "plot.radial.scalar=dens.dat"


Next we turn to the transition moment densities. This requires a little bit more thought. Let us have a look at the file PAMXVC of solution vectors. This is an unformatted file, but each entry comes with a label which can be read by the utility program rspread.x. Assuming the program is in your path, you read this information by running:

rspread.x PAMXVC


The output is


Solution vectors found on file : PAMXVC

** Solution vector : PP EXCITATIONB3u Irrep:   2 Trev:   1
1 Type : E+ Freq.:     0.041227 Rnorm:   0.56E-05 Length:       300
2 Type : E+ Freq.:     0.041616 Rnorm:   0.56E-05 Length:       300
3 Type : E+ Freq.:     0.149172 Rnorm:   0.17E-05 Length:       300
4 Type : E- Freq.:     0.041227 Rnorm:   0.56E-05 Length:       300
5 Type : E- Freq.:     0.041616 Rnorm:   0.56E-05 Length:       300
6 Type : E- Freq.:     0.149172 Rnorm:   0.17E-05 Length:       300
7 Type : P+ Freq.:     0.041227 Rnorm:   0.56E-05 Length:       318
8 Type : P+ Freq.:     0.041616 Rnorm:   0.56E-05 Length:       318
9 Type : P+ Freq.:     0.149172 Rnorm:   0.17E-05 Length:       318
10 Type : P- Freq.:     0.041227 Rnorm:   0.56E-05 Length:       318
11 Type : P- Freq.:     0.041616 Rnorm:   0.56E-05 Length:       318
12 Type : P- Freq.:     0.149172 Rnorm:   0.17E-05 Length:       318


Although there are 3 excitations, there are in fact 12 entries. This is because each solution vector is split into contributions $$E$$ corresponding to e-e rotations, and contributions $$P$$ corresponding to e-p rotations. Each component is further split into contributions $$X+$$ that are time symmetric and contributions $$X-$$ that are time antisymmetric. The transition moments are obtained by contracting solution vectors with property gradients (see [Bast2009] for details). A time-(anti)symmetric operator gives a non-zero contribution only by contraction with the time-(anti)symmetric part of the solution vector. The reduced interaction operator in the lenght and velocity representations is time-symmetric and time-antisymmetric, respectively. With this in mind we set up the following input (length.inp) for generating the radial distribution of the transition moment in the length representation

**DIRAC
**INTEGRALS
.UNCONT
**WAVE FUNCTION
.SCF
*SCF
.CLOSED SHELL
6 6
**GRID
.ULTRAFINE
**VISUAL
.DSCALE
-2.403791564532
.EDIPX
PAMXVC 3
.EDIPX
PAMXVC 9
0.0D0 0.0D0 0.0D0
10.0
500
.3D_INT
**MOLECULE
*BASIS
.DEFAULT
dyall.ae3z
**END OF



and run the job using:

pam --inp=length --mol=Mg.xyz --put "DFCOEF PAMXVC" --get "plot.radial.scalar=length.dat"


Using the same reasoning, the input (velocity.inp) for generating the radial distribution of the transition moment in the velocity representation reads

**DIRAC
**INTEGRALS
.UNCONT
**WAVE FUNCTION
.SCF
*SCF
.CLOSED SHELL
6 6
**VISUAL
.DSCALE
-0.358852917641
.JX
PAMXVC 6
.JX
PAMXVC 12
0.0D0 0.0D0 0.0D0
10.0
500
.3D_INT
**MOLECULE
*BASIS
.DEFAULT
dyall.ae3z
**END OF



and we run the job using:

pam --inp=velocity --mol=Mg.xyz --put "DFCOEF PAMXVC" --get "plot.radial.scalar=velocity.dat"


In both cases the densities are scaled such that the transition moments integrate up to one. Note that we have to also include a sign change. For the length representation this is because the keyword .EDIPX does not include the negative electron charge. For the velocity representation this is because the keyword .JX asks for the density of the $$x$$-component of the current density, which does include the negative electron charge, whereas the interaction operator in the velocity operator does not. In the output of the first (length) calculation we find:

The radial distribution integrates to:   0.98530240054333240


The integration is not very precise since the radial integration uses an even-spaced grid. This is why we have also requested proper 3D integration using the (ultrafine) DFT grid. It shows:

    scalar              x-component         y-component         z-component

0.1000000000E+01    0.0000000000E+00    0.0000000000E+00    0.0000000000E+00


showing that the normalization is correct.

We now have three formatted files containing the radial distributions on our specified grid and you may now plot them using your favourite plotting program (I used xmgrace .)

Compared to the number density, the transition moment densities are very diffuse and it is clear that you may need to extend your basis set with diffuse functions in order to properly describe them. We may also note that the transition moment density in the velocity representation is more compact than the one in the length representation; we can in part understand this by the fact that the interaction operator contains a Dirac $$\alpha$$ matrix which couple large components to the rather compact small components.

Before closing it is interesting to compare the above plot with the one obtained by looking at core excitations $$1s\rightarrow 3p$$ rather than valence $$3s\rightarrow 3p$$ ones. We straightforwardly obtain these excitations by specifying what occupied orbitals we may excite from in the excitation energy section, that is:

*EXCITATION ENERGIES
.OCCUP
1

[...]


This gives the plot below

The transition moment radial distributions are seen to be very much more compact (note the change of axes). We can understand this since the transition moment density now includes a compact core orbital.