Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:language_reference:functions:createspectra [2016/10/10 09:41] – external edit 127.0.0.1 | documentation:language_reference:functions:createspectra [2024/01/12 10:56] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 6: | Line 6: | ||
\langle \psi | O_2^{\dagger} \frac{1}{(\omega + \mathrm{i} \Gamma/2 + E_0 - O_1)} O_2 | \psi \rangle, | \langle \psi | O_2^{\dagger} \frac{1}{(\omega + \mathrm{i} \Gamma/2 + E_0 - O_1)} O_2 | \psi \rangle, | ||
\end{equation} | \end{equation} | ||
- | with E0=⟨ψ|O1|ψ⟩ and returns the result as a spectrum object and as a tri-diagonal matrix. O1 and O2 are allowed to be tables of operators or tables of wavefunctions. CreateSpectra can take a forth element specifying options. | + | with E0=⟨ψ|O1|ψ⟩ and returns the result as a spectrum object and as a tri-diagonal matrix. O1 and O2 are allowed to be tables of operators or tables of wavefunctions. CreateSpectra can take a fourth |
### | ### | ||
Line 12: | Line 12: | ||
* O1 : Operator | * O1 : Operator | ||
- | * O2 : Operator | + | * O2 : Operator |
- | * ψ : Wavefunction | + | * ψ : Wavefunction |
* Possible options are: | * Possible options are: | ||
- | * " | + | * " |
- | * " | + | * " |
* " | * " | ||
- | * " | + | * " |
- | * " | + | * " |
- | * " | + | * " |
- | * " | + | * " |
- | * " | + | * " |
+ | * " | ||
===== Output ===== | ===== Output ===== | ||
- | * //G// : Spectrum object | + | * //G// : Spectrum object. In the case that both a list of operators {Oa2,Ob2} as well as a list of Wavefunctions {ψ1,ψ2,ψ3} is given the output order first the Wavefunctions and then the operators, i.e. {Ia1,Ia2,Ia3,Ib1,Ib2,Ib3} with a and b referring to the index of the operators and 1,2,3 to the index of the Wavefunctions. |
+ | * //T// : List representing a tri-diagonal matrix, whose resolvent is the spectral function | ||
===== Example ===== | ===== Example ===== |