Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:language_reference:objects:responsefunction:functions:calculateselfenergy [2024/09/27 11:26] – Aleksandrs Zacinskis | 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 ===== | ||
- | |||
### | ### | ||
- | G = GPESDn[1] + ResponseFunction.InvertEnergy(GPESDn[1])### | + | ### |
==== 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> | ||