Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:language_reference:objects:responsefunction:functions:calculateselfenergy [2024/09/16 11:53] – created Maurits W. Haverkort | documentation:language_reference:objects:responsefunction:functions:calculateselfenergy [2024/10/30 18:43] (current) – Aleksandrs Zacinskis | ||
---|---|---|---|
Line 3: | Line 3: | ||
### | ### | ||
- | alligned paragraph text | + | ResponseFunction.CalculateSelfEnergy($G_0$, |
+ | \begin{equation} | ||
+ | \Sigma = G_0^{-1} - G^{-1} | ||
+ | \end{equation} | ||
### | ### | ||
+ | ===== Input ===== | ||
+ | * $G_0$ : ResponseFunction object | ||
+ | * $G$ : ResponseFunction object | ||
+ | * Possible options are: | ||
+ | * " | ||
+ | ===== Output ===== | ||
+ | * $\Sigma$ : ResponseFunction object | ||
===== Example ===== | ===== Example ===== | ||
- | |||
### | ### | ||
- | description text | ||
### | ### | ||
- | |||
==== Input ==== | ==== Input ==== | ||
- | <code Quanty | + | <code Quanty |
- | -- some example code | + | |
+ | -- H0, H1, Npsi, TPes, TIPes are defined beforehand | ||
+ | psiList = Eigensystem(H0, | ||
+ | |||
+ | G0PESIPES_Spectra, | ||
+ | G0 = G0PESIPES_ResponseFunction[2] | ||
+ | |||
+ | Eigensystem(H0+H1, | ||
+ | --For memory efficiency, this way of calling Eigensystem overwrites Ansatz wavefunction with a new one. | ||
+ | |||
+ | GPESIPES_Spectra, | ||
+ | G = GPESIPES_ResponseFunction[2] | ||
+ | |||
+ | Sigma = ResponseFunction.CalculateSelfEnergy(G0, | ||
+ | |||
+ | print(ResponseFunction.ToTable(Sigma)) | ||
</ | </ | ||
==== Result ==== | ==== Result ==== | ||
<file Quanty_Output> | <file Quanty_Output> | ||
- | text produced as output | + | { { 0.5 , 6.9374060711003e-16 , 3.0413812651491 } , |
- | </ | + | { 0.085601012694643 , 0.16439898730536 } , |
+ | name = Self energy , | ||
+ | mu = 0 , | ||
+ | type = ListOfPoles } | ||
+ | </ | ||
===== Table of contents ===== | ===== Table of contents ===== | ||
{{indexmenu> | {{indexmenu> | ||