no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionLast revision | |||
— | documentation:language_reference:functions:meanfieldoperator [2018/07/23 17:08] – Created Simon Heinze | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== MeanFieldOperator ====== | ||
+ | |||
+ | ### | ||
+ | // | ||
+ | $rho$ stores the expectation values of $a^{\dagger}_{\tau}a^{\phantom{\dagger}}_{\tau' | ||
+ | |||
+ | Any two particle parts of the operator will be replaced in mean-field, using the Hartree-Fock approximation by: | ||
+ | \begin{eqnarray} | ||
+ | a^{\dagger}_{i}a^{\dagger}_{j}a^{\phantom{\dagger}}_{k}a^{\phantom{\dagger}}_{l} & | ||
+ | \nonumber &-& a^{\dagger}_{i}a^{\phantom{\dagger}}_{k} \langle a^{\dagger}_{j}a^{\phantom{\dagger}}_{l} \rangle \\ | ||
+ | \nonumber &+& a^{\dagger}_{i}a^{\phantom{\dagger}}_{l} \langle a^{\dagger}_{j}a^{\phantom{\dagger}}_{k} \rangle \\ | ||
+ | \nonumber &+& a^{\dagger}_{j}a^{\phantom{\dagger}}_{k} \langle a^{\dagger}_{i}a^{\phantom{\dagger}}_{l} \rangle \\ | ||
+ | \nonumber &-& a^{\dagger}_{j}a^{\phantom{\dagger}}_{l} \langle a^{\dagger}_{i}a^{\phantom{\dagger}}_{k} \rangle \\ | ||
+ | \nonumber &-& \langle a^{\dagger}_{i}a^{\phantom{\dagger}}_{l} \rangle \langle a^{\dagger}_{j}a^{\phantom{\dagger}}_{k} \rangle \\ | ||
+ | \nonumber &+& \langle a^{\dagger}_{i}a^{\phantom{\dagger}}_{k} \rangle \langle a^{\dagger}_{j}a^{\phantom{\dagger}}_{l} \rangle | ||
+ | \end{eqnarray} | ||
+ | |||
+ | If the option AddDFTSelfInteraction was set to true more terms are added to the Mean-Field Operator, namely | ||
+ | \begin{equation} | ||
+ | \sum_{m} U \langle a^\dagger_m a^{\phantom{\dagger}}_m \rangle a^\dagger_m a^{\phantom{\dagger}}_m | ||
+ | \end{equation} | ||
+ | where | ||
+ | \begin{equation} | ||
+ | U | ||
+ | = | ||
+ | \left( | ||
+ | \frac{N_{Fermion} (N_{Fermion}-1)}{2} | ||
+ | \right)^{-1} | ||
+ | \sum_m | ||
+ | \left( | ||
+ | U_{m\, | ||
+ | - | ||
+ | U_{m\, | ||
+ | \right) | ||
+ | \end{equation} | ||
+ | is the average interaction energy electrons have with one another. | ||
+ | ### | ||
+ | |||
+ | ===== Input ===== | ||
+ | |||
+ | * $O$ : Operator | ||
+ | * $rho$ : Matrix (Table of Table of length $O.NF$) of doubles | ||
+ | * Possible options are: | ||
+ | * " | ||
+ | |||
+ | ===== Output ===== | ||
+ | |||
+ | * $O_{MF}$ The mean-field approximated operator | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | |||
+ | |||
+ | ==== Input ==== | ||
+ | <code Quanty Example.Quanty> | ||
+ | NF = 4 | ||
+ | op = NewOperator(" | ||
+ | rho = {{0.7, | ||
+ | |||
+ | print(" | ||
+ | print(op) | ||
+ | print(" | ||
+ | print(rho) | ||
+ | print(" | ||
+ | print( MeanFieldOperator(op, | ||
+ | print(" | ||
+ | print( MeanFieldOperator(op, | ||
+ | </ | ||
+ | |||
+ | ==== Result ==== | ||
+ | <file Quanty_Output> | ||
+ | Full Operator: | ||
+ | |||
+ | Operator: CrAn | ||
+ | QComplex | ||
+ | MaxLength | ||
+ | NFermionic modes = 4 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis) | ||
+ | NBosonic modes | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | | 3.000000000000000E+00 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 A 1 | 1.000000000000000E-01 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 C 0 A 1 A 0 | -5.000000000000000E+00 | ||
+ | |||
+ | |||
+ | |||
+ | Density: | ||
+ | { { 0.7 , (0.3 + 1 I) , 0 , 0 } , | ||
+ | { (0.3 - 1 I) , 0.4 , 0 , 0 } , | ||
+ | { 0 , 0 , 0 , 0 } , | ||
+ | { 0 , 0 , 0 , 0 } } | ||
+ | |||
+ | MeanFieldOperator: | ||
+ | |||
+ | Operator: | ||
+ | QComplex | ||
+ | MaxLength | ||
+ | NFermionic modes = 4 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis) | ||
+ | NBosonic modes | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | | 1.255000000000000E+01 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 A 1 | -3.400000000000000E+00 | ||
+ | C 1 A 0 | 1.500000000000000E+00 | ||
+ | C 0 A 1 | 1.500000000000000E+00 -5.000000000000000E+00 | ||
+ | C 0 A 0 | -2.000000000000000E+00 | ||
+ | |||
+ | |||
+ | |||
+ | MeanFieldOperator with electron self-interaction: | ||
+ | |||
+ | Operator: | ||
+ | QComplex | ||
+ | MaxLength | ||
+ | NFermionic modes = 4 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis) | ||
+ | NBosonic modes | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | | 1.255000000000000E+01 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 A 1 | -3.066666666666666E+00 | ||
+ | C 1 A 0 | 1.500000000000000E+00 | ||
+ | C 0 A 1 | 1.500000000000000E+00 -5.000000000000000E+00 | ||
+ | C 0 A 0 | -1.416666666666667E+00 | ||
+ | </ | ||
+ | |||
+ | ===== Table of contents ===== | ||
+ | {{indexmenu> | ||