You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calculation of 2-time correlation is understandably slow. There are two things that can improve _correlation_3op_dm(solver, state0, tlist, taulist, A, B, C) a bit.
In my experience tlist is usually chosen so that at tlist[-1] all correlations are already gone. Calculate them up to tlist[-1] + taulist[-1] is often superfluous. An option can be passed to make last tau dependent on t to make each subsequent simulation shorter. An example could be something like this (but with more thinking about edge cases):
Even better way would be to make simulations along taulist in parallel. It seems that it's possible to have different runs of mcsolve at the same time, so here the same framework could be used.
The text was updated successfully, but these errors were encountered:
(2) It should be easy. We could reuse the parallel_map as you said. I would make a good first contribution.
(1) We need to be careful about this.
I can see case where the user think the correlation is gone by tlist[-1] but it is not, so it should be clear which output are 0 and which are not computed.
Also if we do that, maybe finer control could be given. We could have a variable max_t_plus_tau with default np.inf.
Describe the Issue!
Calculation of 2-time correlation is understandably slow. There are two things that can improve
_correlation_3op_dm(solver, state0, tlist, taulist, A, B, C)
a bit.tlist
is usually chosen so that attlist[-1]
all correlations are already gone. Calculate them up totlist[-1] + taulist[-1]
is often superfluous. An option can be passed to make lasttau
dependent ont
to make each subsequent simulation shorter. An example could be something like this (but with more thinking about edge cases):taulist
in parallel. It seems that it's possible to have different runs of mcsolve at the same time, so here the same framework could be used.The text was updated successfully, but these errors were encountered: