tenpy.simulations.post_processing.pp_spectral_function(DL: DataLoader, *, correlation_key, conjugate_correlation=False, **kwargs)[source]

Given a time dependent correlation function C(t, r), calculate its Spectral Function.

After a run of TimeDependentCorrelation, a DataLoader instance should be passed, from which the underlying lattice and additional parameters (e.g. dt) can be extracted. The correlation_key must coincide with the key of the time-dep. correlation function in the output of the Simulation.