Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| documentation:language_reference:functions:meanfieldoperator [2018/06/21 15:21] – created Simon Heinze | documentation:language_reference:functions:meanfieldoperator [2025/11/20 03:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ### | ### | ||
| - | alligned paragraph text | + | // |
| + | $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,n} U (\langle a^\dagger_m a^{\phantom{\dagger}}_n \rangle)^{T} a^\dagger_m a^{\phantom{\dagger}}_n | ||
| + | \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 ===== | ===== Input ===== | ||
| - | * bla : Integer | + | * $O$ : Operator |
| - | * bla2 : Real | + | * $rho$ : Matrix (Table of Table of length $O.NF$) of doubles |
| + | * Possible options are: | ||
| + | * " | ||
| ===== Output ===== | ===== Output ===== | ||
| - | * bla : real | + | * $O_{MF}$ The mean-field approximated operator |
| ===== Example ===== | ===== Example ===== | ||
| - | ### | + | |
| - | description text | + | |
| - | ### | + | |
| ==== Input ==== | ==== Input ==== | ||
| <code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
| - | -- some example code | + | NF = 4 |
| + | op = NewOperator(" | ||
| + | rho = {{0.7, | ||
| + | |||
| + | print(" | ||
| + | print(op) | ||
| + | print(" | ||
| + | print(rho) | ||
| + | print(" | ||
| + | print( MeanFieldOperator(op, | ||
| + | print(" | ||
| + | print( MeanFieldOperator(op, | ||
| </ | </ | ||
| ==== Result ==== | ==== Result ==== | ||
| <file Quanty_Output> | <file Quanty_Output> | ||
| - | text produced as 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 | ||
| </ | </ | ||