Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:language_reference:objects:responsefunction:start [2024/09/16 11:44] – created Maurits W. Haverkort | documentation:language_reference:objects:responsefunction:start [2024/12/20 17:07] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 3: | Line 3: | ||
### | ### | ||
- | Operators define quantum mechanical operators implemented | + | |
- | $$ \begin{align} | + | The ResponseFunction object |
- | O& | + | $$ |
- | & | + | G_{i,j}(\omega,\Gamma) = \left\langle |
- | & | + | $$ |
- | & + \sum_{\tau_1,\tau_2, | + | with $E_0 = \left\langle |
- | &+ \dots | + | |
- | \end{align} | + | |
- | Note that as $a^{\dagger}_{\tau_1}a^{\phantom{\dagger}}_{\tau_2} = \delta_{\tau_1,\tau_2}-a^{\phantom{\dagger}}_{\tau_2}a^{\dagger}_{\tau_1}$ for Fermions | + | |
### | ### | ||
- | ### | + | |
- | Operators can act on Fermions and Bosons. An operator //O// has //O.NF// Fermions and //O.NB// Bosons. The Fermions are indexed from //0// to //O.NF-1//, the Bosons are indexed from //O.NF// to // | + | |
### | ### | ||
+ | ResponseFunctions are objects that can be evaluated at any frequency or imaginary offset. For example: | ||
+ | <code Quanty Example.Quanty> | ||
+ | H = Matrix.ToOperator( Matrix.Diagonal({1, | ||
+ | psi = NewWavefunction(5, | ||
+ | T = {} | ||
+ | for i=0,4 do | ||
+ | T[i+1] = NewOperator(5, | ||
+ | end | ||
+ | S, G = CreateSpectra(H, | ||
+ | omega = 1.1 | ||
+ | gamma = 0.01 | ||
+ | print(G[1](omega, | ||
+ | </ | ||
+ | returns | ||
+ | <file Quanty_Output> | ||
+ | (9.9750623441396 - 0.49875311720698 I) | ||
+ | </ | ||
+ | i.e. the value of the response function for the first transition operator defined at $\omega=1.1$ and $\Gamma=0.01$. | ||
- | ===== Table of contents ===== | + | ### |
- | {{indexmenu> | + | |
- | ==== Result | + | ### |
+ | |||
+ | Besides single complex valued functions we can generate a response function that returns a matrix for each value of $\omega$. For example | ||
+ | <code Quanty Example.Quanty> | ||
+ | H = Matrix.ToOperator( Matrix.Diagonal({1, | ||
+ | psi = NewWavefunction(5, | ||
+ | T = {} | ||
+ | for i=0,4 do | ||
+ | T[i+1] | ||
+ | end | ||
+ | S, G = CreateSpectra(H, | ||
+ | omega = 1.1 | ||
+ | gamma = 0.01 | ||
+ | print(G(omega, | ||
+ | </ | ||
+ | returns | ||
<file Quanty_Output> | <file Quanty_Output> | ||
- | text produced as output | + | { { (9.9750623441396 - 0.49875311720698 I) , 0 , 0 , 0 , 0 } , |
+ | { 0 , (-1.1110768186167 - 0.0061726489923151 I) , 0 , 0 , 0 } , | ||
+ | { 0 , 0 , (-0.52631214465274 - 0.0013850319596125 I) , 0 , 0 } , | ||
+ | { 0 , 0 , 0 , (-0.34482656115767 - 0.00059452855372011 I) , 0 } , | ||
+ | { 0 , 0 , 0 , 0 , (-0.25640983496082 - 0.00032873055764208 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. | ||
+ | |||
+ | ### | ||
+ | |||
+ | ### | ||
+ | |||
+ | 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 | ||
+ | - List of poles $$ G(\omega, | ||
+ | - Tri-diagonal $$ G(\omega, | ||
+ | - Anderson $$ G(\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, | ||
+ | |||
+ | ### | ||
+ | |||
+ | ### | ||
+ | |||
+ | |||
+ | 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> |