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

Adding progress bars, on the fly plotting/saving and density matrix Observables #17

Merged
merged 11 commits into from
Feb 21, 2025

Conversation

emile-cochin
Copy link
Contributor

This adds:

  • Progress bars: implemented in a new src/ file called utilities.jl as a class on which one can iterate and which returns the time step so that we don't have to modify the run_... code too much. For 1TDVP this adds an ETA and for 2TDVP and DTDVP displays the maximum link size. To disable it them one has to add the parameter progressbar=false in runsim.

  • "On the fly": also implemented mainly in the utilities.jl file (and a little in each run_...). Used to display results during simulations or to save temporary data. Simply use the onthefly function, which returns a dictionary to be passed in kwarg onthefly= to the runsim function. This dictionary contains in particular the names of the observables to be saved/plotted, the plot in question, the function used to process the observable and make it possible to graph it, a possible point of comparison on the plot and the number of steps to wait between two saves/graphs. All this is then used by the ontheflysave and ontheflyplot functions in the bodies of the run_... functions.

  • Documentation: everything added above is detailled under the "Advanced" subsection of Methods

  • RhoReduced which is a new Observable that allows to measure several density matrices reduced to 1 or 2 sites.

@tfmlaX tfmlaX requested a review from BrieucLD February 20, 2025 15:53
@tfmlaX tfmlaX added the enhancement New feature or request label Feb 20, 2025
@tfmlaX tfmlaX self-assigned this Feb 20, 2025
@tfmlaX tfmlaX merged commit caa2482 into shareloqs:master Feb 21, 2025
1 check passed
@tfmlaX
Copy link
Member

tfmlaX commented Feb 21, 2025

Thank you Emile for your contributions and new functionalities! Your work is very much appreciated :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants