2013-07-17 19:24:07 +02:00
|
|
|
.. index::
|
|
|
|
single: Transforming Green's functions
|
|
|
|
|
|
|
|
|
|
|
|
Fourier and Legendre to Matsubara transforms
|
|
|
|
============================================
|
|
|
|
|
|
|
|
Here are the different ways to transform Green's functions of one type into a different type.
|
|
|
|
|
|
|
|
Time to frequency
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
The command ``Fourier`` (``InverseFourier``) allows you to initialize a block
|
|
|
|
Green's function defined in frequency (time) from a block Green's function defined
|
|
|
|
in time (frequency). Here's a simple example:
|
|
|
|
|
2014-10-17 18:15:19 +02:00
|
|
|
.. plot:: reference/gfs/py/fourier.py
|
2013-07-17 19:24:07 +02:00
|
|
|
:include-source:
|
|
|
|
:scale: 70
|
|
|
|
|
|
|
|
The same command can be used for real-time, real-frequency transformations.
|
|
|
|
|
|
|
|
Legendre to Matsubara
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
The commands ``MatsubaraToLegendre`` and ``LegendreToMatsubara`` allow to
|
|
|
|
initialize a Matsubara Green's function (either in imaginary time or in
|
|
|
|
imaginary frequencies) from a Legendre Green's function and conversely.
|
|
|
|
Example:
|
|
|
|
|
2014-10-17 18:15:19 +02:00
|
|
|
.. plot:: reference/gfs/py/legendre.py
|
2013-07-17 19:24:07 +02:00
|
|
|
:include-source:
|
|
|
|
:scale: 70
|