Skip to content

Commit cc5c15d

Browse files
committed
Merge branch 'master' of github.com:lkwagner/autogenv2
2 parents 593c110 + 82cc8ec commit cc5c15d

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,18 @@ Goal: Provide tools that make it easy to manage and store QWalk runs.
55

66
# Getting started.
77

8-
Run `setup.py` to fill in the locations of packages you may want to use with autogen, such as Crystal or PySCF.
9-
- without this step autogen will not be able to run any executibles.
8+
Copy paths_example.yaml to paths.yaml and edit for your locations.
9+
10+
Run `setup.py`
1011

1112
Check out the intro folder, which constains a set of jupyter notebooks to help you understand how this package works.
1213
Alternative python scripts (which are just python downloads of the notebooks) are also there.
1314

14-
Working through all the notebooks should only take ~10 minutes.
15-
1615
You can also checkout `tests/simple_test.py` for a more useful template to build scripts from.
1716

1817
# Troubleshooting
1918

20-
- autogen can't find an executible.
19+
- autogen can't find an executable.
2120
- Make sure you've run `setup.py`.
2221
- The notebooks keep saying 'file not found'?
2322
- If you have any error when running the notebook, try restarting the kernel.

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)