Skip to content

Commit 600878a

Browse files
committed
Moved paths.yaml to paths_example.yaml. Also qwalk now plots. :)
1 parent e371004 commit 600878a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

intro/05-qwalk.py

+6
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,13 @@
8181
while not vopt_manager.completed:
8282
vopt_manager.nextstep()
8383

84+
print(vopt_manager.reader.output['sigma'])
85+
import matplotlib.pyplot as plt
8486

87+
plt.plot(vopt_manager.reader.output['sigma'])
88+
plt.ylabel("Standard deviation of energy")
89+
plt.xlabel("Optimization iteration")
90+
plt.savefig("05-qwalk_variance.pdf",bbox_inches='tight')
8591
# So what just happened here?
8692
# After setting up the calculation, we called `nextstep` repeatedly and the QWalk manager:
8793
# * Noticed the PySCF run was not complete, and ran the PySCF run.

paths.yaml paths_example.yaml

File renamed without changes.

0 commit comments

Comments
 (0)