Closed Lazersmoke closed 2 weeks ago
Here is a list of what this PR adds/changes (can be condensed into some versions.md
lines):
negative_energies=true
support to the binning interface. (Required to be able to evaluate the sum rule, which requires integrating over [-fs/2,fs/2]
, and make this test pass)intensities_binned
to correctly incorporate the bin size. (Required for binned sum rule to be satisfied)unilateral_to_bilateral
transformation" to the Contraction
s interface. (Required for agreement between LSWT (=true
) and SampledCorrelations (=false
). See here for the important part. Amounts to a factor of x2 in intensities in some cases)intensities_band_structure
, which returns the LSWT intensities in a neat struct bs::BandStructure
with bs.dispersion
and bs.intensities
fields. The idea is that the normalization of these "delta function" intensities requires some verbal explanation (currently located in a comment), which can be given in a docstring for BandStructure
later. (also adds show instance for this previously internal type).1/natoms
factor, c. replacing an extraneous 1/n_omega
with the correct 1/(T - |t|)
, d. enabling an optional cosine-squared window function which may be useful for systems which do not naturally decorrelate. These changes (correctly) alter the normalization of the intensities, and this change is documented in the test suite. (Required to make the test from (6.) pass)This feature is currently out of scope, but can be revisited if there is sufficient user demand.
This is #174 but fixed up and rebased onto modern Sunny