# weight of each configuration

asked by Stefano Agrestini (2018/06/11 12:37)

Dear Developers,

Is there a way to tell Quanty to calculate the weight of each configuration d^nL^10, d^(n+1)L^9, d^(n+2)L^8, etc. for the ground state? Thank you very much

, 2018/07/02 21:18

Yes there is

, 2018/07/02 21:32

The way to calculate the weight of each configuration is to use restrictions in the operator. An operator can be restricted to certain occupations of given orbitals. The notation used is the same as the restrictions set for the calculation of the ground-state or spectra.

You can find more information on this feature in the documentation on Operators and setting restrictions.

The way to go is to define the identity operator and restrict it to a given configuration. For example the $d^9$ configuration. If you act then with this operator on a state all determinants that do not have 9 electrons in the d shell will be removed and the expectation value of this operator will be the weight of the $d^9$ configuration.

For example on a basis with a p-shell, a d-shell and a ligand shell (also 10 spin-orbitals) one can define the following operators to measure the weight of the $d^9$ and $d^8$ configuration:

RestrictedOperator.Quanty
Oppd9   = NewOperator("Identity"   ,NF)
Oppd9.Restrictions = {NF,NB,{"000000 1111111111 0000000000", 9, 9}}
Oppd8   = NewOperator("Identity"   ,NF)
Oppd8.Restrictions = {NF,NB,{"000000 1111111111 0000000000", 8, 8}}

You can see operators with restrictions in action in the example where we calculate partial XAS spectra.