When I try to use the quantum trajectories time evolution method, my code errors out saying that the output file wasn't found. For example, when I try to fetch the results, I get an error:
Traceback (most recent call last): File "/Users/caseyhaack/Desktop/openmps/openmps/tfimsteadystate3.py", line 94, in <module> if results['converged']==False: File "/Users/caseyhaack/Desktop/openmps/openmps/MPSPyLib/obsterms.py", line 3695, in __getitem__ Res = self.read() File "/Users/caseyhaack/Desktop/openmps/openmps/MPSPyLib/obsterms.py", line 3853, in read flnm + '.') Exception: File not found for dynamic results testoutput/testB_1.0_g_1.0ObsOutDynamics/Dynamics_1step_000100.dat.
But when I look at the output folder, here called 'testoutput', I find that the outputs are there but they have an extra tab in their name. For example:
testoutput/testB_1.0_g_1.0ObsOutDynamics/Dynamics_1step_000100 .dat
I've attached my code to see if others can reproduce this error.
Regards,
Casey Haack
Hi Casey,
for instance you can add an additional key 'QT' to the parameters dictionary with an integer, i.e., the number of quantum trajectories. Then, there is a bug in the MPO measurements and you'd have to replace them with site or correlation measurements. The z-compoment would be
myObservables.AddObservable('site', 'sigmaz', '<z>')
and in the post processing
mags.append(np.mean(results['<z>']</z>))</z>
The convergence flag is only available for statics and cannot be accessed in a result of a quench. I will see if I can get the MPO measurements working.
Best regards,
Daniel