Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spectral functions #366

Merged
merged 86 commits into from
Mar 14, 2024
Merged

Spectral functions #366

merged 86 commits into from
Mar 14, 2024

Conversation

jhauschild
Copy link
Member

Continuation of Spectral functions, Replaces and closes #293

jhauschild and others added 30 commits August 29, 2023 16:41
change .gitignore
Also add reciprocal basis vectors to the Lattice base class and more
plotting functions.
Simple first draft of SpectralSimulation. Processing on the output
i.e. fourier transforms, etc. will be done in seperate helper class
SimulationPostProcessor
Better handle loading ground state data, improve readability of class and
minor fixes.
Furthermore introduce subclass SpectralSimulationExperimental in
time_evolution.py which utilizes the MPSEnvironmentJW.
Introduce a base class SimulationPostProcessor and a SpectralFunctionProcessor
class.
…on_processing.py

Functions for linear prediction are introduced on the module level and
only called by the post-processing class, for a potential usage outside of the class.
…sing.py

Call post-processing by default in SpectralSimulation in time_evolution.py
Combine separate classes for 1D and 2D into one and use conditional checks.
Furthermore, make methods to reduce points more flexible.
Change docstring and minor code improvements
Change intervace to SpectralSimulation s.t. ground_state_filename can be passed in options.
Rename simulation_processing to post_processing
Change function that caused a linting error in processing.py
Rename SpectralSimulation example
Fix typos in Simulation
Improvements regarding saving results and avoiding doctest fails in github
Fix issues with unexpected indentation
Changes in mps.py and lattice.py adjusting for some reviewed changes
by jhauschild to comply with tenpy coding conventions.
Some typos in lattice.py
Change post_processing accordingly and change docstrings.
…on.py

Furthermore correct docstrings involving Config objects.
Keep SpectralSimulation as a subclass of TimeDependentCorrelation
This new module makes use of a DataLoader class, only giving
functionality towards loading and saving (from simulation results).
Custom functions should then be used with the DataLoader class.
Minor changes in docstrings.
Furthermore fix bug in mps.py of MPSEnvironmentJW
Fix docstrings, new naming conventions...
Reduce the number of (unnecessary) parameters for linear prediction.
The updated code is much simpler and allows linear prediction only
on one-dimensional time series, however, an axis can be chosen.
p-thoma and others added 28 commits February 29, 2024 17:28
Furthermore simplify loading gs_data for the same class
furthermore improve its docstring
The TimeDependentCorrelationExperimental and SpectralSimulationExperimental
are removed. The simplified logic is incorporated in the TimeDependentCorrelation
class. The feature to instantiate two engines is removed in order to simplify the class.
This reverts commit e26ef71. As this commit
broke the notebook test.
Together with the class SpectralSimulationEvolveBraKet. Those two simulations use
two engines, one for the evolution of the bra and one for the ket.
This also adds tests for TimeDependentCorrelationEvolveBraKet, since
the SpectralSimulation classes run all code of the TimeDependentCorrelation classes.
For Simulations include a function `_display_errors_during_run` that displays errors
that occured during the run (i.e. in a post-processing step) which are stored in the
attribute errors_during_run.
Furthermore include the `default_post_processing` list as class-attribute in Simulation.
Overwrite `init_measurements` instead of `_connect_measurements` in class `TimeDependentCorrelation`
The function `apply_local_op` of the MPS class now automatically adds a JW-string.
The same holds true for the `MPSEnvironment.expectation_value` as of merging excitation_science_and_vumps
…ronment.expectation_value when charges are given
@jhauschild jhauschild merged commit c24ce99 into main Mar 14, 2024
9 of 10 checks passed
@jhauschild jhauschild deleted the spectral_functions branch March 14, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants