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:start [2024/12/18 15:17] – Maurits W. Haverkort | documentation:language_reference:objects:responsefunction:start [2024/12/20 17:07] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{indexmenu_n> | {{indexmenu_n> | ||
====== Response function ====== | ====== Response function ====== | ||
+ | |||
+ | ### | ||
The ResponseFunction object in Quanty defines (linear) response functions. For Hamiltonian $H$, ground-state $| \psi_0 \rangle$ and a list of transition operators $T_i$ with $i \in [1,n]$ we define the response function $G(\omega, | The ResponseFunction object in Quanty defines (linear) response functions. For Hamiltonian $H$, ground-state $| \psi_0 \rangle$ and a list of transition operators $T_i$ with $i \in [1,n]$ we define the response function $G(\omega, | ||
Line 8: | Line 10: | ||
with $E_0 = \left\langle \psi_0 \middle| H \middle| \psi_0 \right\rangle$. One can calculate response functions using the Quanty function [[documentation: | with $E_0 = \left\langle \psi_0 \middle| H \middle| \psi_0 \right\rangle$. One can calculate response functions using the Quanty function [[documentation: | ||
- | ResponseFunctions are objects that can be evaluated at any frequency or imaginary | + | ### |
+ | |||
+ | |||
+ | ### | ||
+ | |||
+ | ResponseFunctions are objects that can be evaluated at any frequency or imaginary | ||
<code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
H = Matrix.ToOperator( Matrix.Diagonal({1, | H = Matrix.ToOperator( Matrix.Diagonal({1, | ||
Line 26: | Line 33: | ||
</ | </ | ||
i.e. the value of the response function for the first transition operator defined at $\omega=1.1$ and $\Gamma=0.01$. | i.e. the value of the response function for the first transition operator defined at $\omega=1.1$ and $\Gamma=0.01$. | ||
+ | |||
+ | ### | ||
+ | |||
+ | ### | ||
Besides single complex valued functions we can generate a response function that returns a matrix for each value of $\omega$. For example | Besides single complex valued functions we can generate a response function that returns a matrix for each value of $\omega$. For example | ||
Line 49: | Line 60: | ||
</ | </ | ||
i.e. a 5 by 5 matrix with matrix elements $G_{i, | i.e. a 5 by 5 matrix with matrix elements $G_{i, | ||
+ | |||
+ | ### | ||
+ | |||
+ | ### | ||
Response functions can be added, subtracted, scaled and many other functions are available to modify them. Response functions can be used to calculate self energies of systems and used for diagrammatic expansions of problems otherwise to involved to solve. | Response functions can be added, subtracted, scaled and many other functions are available to modify them. Response functions can be used to calculate self energies of systems and used for diagrammatic expansions of problems otherwise to involved to solve. | ||
+ | |||
+ | ### | ||
+ | |||
+ | ### | ||
Internally response functions can be stored in different formats. We need several formats as (1) transformations between the different formats take time (2) transformations between different formats can involve a loss of numerical accuracy and (3) different algorithms require the response function in different formats. The formats used in Quanty to store response functions are | Internally response functions can be stored in different formats. We need several formats as (1) transformations between the different formats take time (2) transformations between different formats can involve a loss of numerical accuracy and (3) different algorithms require the response function in different formats. The formats used in Quanty to store response functions are | ||
Line 56: | Line 75: | ||
- Tri-diagonal $$ G(\omega, | - Tri-diagonal $$ G(\omega, | ||
- Anderson $$ G(\omega, | - Anderson $$ G(\omega, | ||
- | - Natural Impurity. We define $G_{val}(\omega, | + | - Natural Impurity. We define $G_{val}(\omega, |
+ | |||
+ | ### | ||
+ | |||
+ | ### | ||
Whereby capital letters $A_i$ and $B_i$ refer to matrices equal to the dimension of $G(\omega, | Whereby capital letters $A_i$ and $B_i$ refer to matrices equal to the dimension of $G(\omega, | ||
+ | ### | ||
+ | |||
+ | ### | ||
+ | |||
+ | |||
+ | Below you find several functions, methods, properties and operations related to response functions. | ||
+ | |||
+ | Response functions can be stored internally as Lua tables with a metatable set to ResponseFunctionMeta, | ||
+ | ### | ||
===== Table of contents ===== | ===== Table of contents ===== | ||
{{indexmenu> | {{indexmenu> | ||