Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:language_reference:functions:partialmeanfieldoperator [2018/08/03 15:07] – created Simon Heinze | documentation:language_reference:functions:partialmeanfieldoperator [2018/09/24 15:51] (current) – removed "fall 2018" statement Simon Heinze | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PartialMeanFieldOperator ====== | ====== PartialMeanFieldOperator ====== | ||
- | |||
- | (will be published in fall 2018) | ||
### | ### | ||
Line 25: | Line 23: | ||
==== Input ==== | ==== Input ==== | ||
<code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
- | -- some example code | + | NF = 4 |
+ | |||
+ | rho = {{0.8, | ||
+ | |||
+ | print(" | ||
+ | print(rho) | ||
+ | |||
+ | op1 = NewOperator(" | ||
+ | op2 = NewOperator(" | ||
+ | |||
+ | print(" | ||
+ | print(" | ||
+ | print(op1) | ||
+ | print(" | ||
+ | print(PartialMeanFieldOperator(op1, | ||
+ | print(" | ||
+ | print(" | ||
+ | print(op2) | ||
+ | print(" | ||
+ | print(PartialMeanFieldOperator(op2, | ||
+ | print(" | ||
+ | print(PartialMeanFieldOperator(op2, | ||
+ | print(" | ||
+ | print(PartialMeanFieldOperator(op2, | ||
</ | </ | ||
==== Result ==== | ==== Result ==== | ||
<file Quanty_Output> | <file Quanty_Output> | ||
- | text produced as output | + | Rho: |
+ | { { 0.8 , 0.3 , 0 , 0 } , | ||
+ | { 0.3 , 0.7 , 0 , 0 } , | ||
+ | { 0 , 0 , 0.4 , (0 + 0.5 I) } , | ||
+ | { 0 , 0 , (-0 - 0.5 I) , 0.2 } } | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | op1: | ||
+ | |||
+ | 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 | ||
+ | |||
+ | |||
+ | PartialMeanFieldOperator(op1, | ||
+ | |||
+ | 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 | ||
+ | | 8.150000000000000E+00 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 A 1 | -3.900000000000000E+00 | ||
+ | C 1 A 0 | 1.500000000000000E+00 | ||
+ | C 0 A 1 | 1.500000000000000E+00 | ||
+ | C 0 A 0 | -3.500000000000000E+00 -0.000000000000000E+00 | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | op2: | ||
+ | |||
+ | 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 | ||
+ | C 1 A 1 | 1.000000000000000E-05 | ||
+ | C 2 A 2 | 1.000000000000000E+00 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 C 0 A 3 A 2 | -3.000000000000000E+00 | ||
+ | C 1 C 0 A 1 A 0 | -5.000000000000000E+00 | ||
+ | |||
+ | |||
+ | PartialMeanFieldOperator(op2, | ||
+ | |||
+ | 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 | ||
+ | | 5.150000000000000E+00 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 A 1 | -3.999990000000000E+00 | ||
+ | C 2 A 2 | 1.000000000000000E+00 | ||
+ | C 1 A 0 | 1.500000000000000E+00 | ||
+ | C 0 A 1 | 1.500000000000000E+00 | ||
+ | C 0 A 0 | -3.500000000000000E+00 -0.000000000000000E+00 | ||
+ | |||
+ | |||
+ | PartialMeanFieldOperator(op2, | ||
+ | |||
+ | 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 | ||
+ | | 5.150000000000000E+00 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 A 1 | -3.416656666666666E+00 | ||
+ | C 2 A 2 | 1.333333333333333E+00 | ||
+ | C 1 A 0 | 1.500000000000000E+00 | ||
+ | C 0 A 1 | 1.500000000000000E+00 | ||
+ | C 0 A 0 | -2.833333333333333E+00 -0.000000000000000E+00 | ||
+ | C 3 A 3 | 1.666666666666667E-01 | ||
+ | |||
+ | |||
+ | PartialMeanFieldOperator(op2, | ||
+ | |||
+ | 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 | ||
+ | | -0.000000000000000E+00 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 A 1 | 1.000000000000000E-05 | ||
+ | C 2 A 2 | 1.000000000000000E+00 | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 1 C 0 A 1 A 0 | -5.000000000000000E+00 | ||
+ | |||
+ | |||
</ | </ | ||