-
Notifications
You must be signed in to change notification settings - Fork 141
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
Support multi step WFopt #4169
Merged
Merged
Support multi step WFopt #4169
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0a7ced5
Support multi-step WFOpt
ye-luo 50f6a02
Add WFopt variational_subset parameter to manual.
ye-luo 7262246
Merge remote-tracking branch 'origin/develop' into support-continue-opt
ye-luo 7dfc92a
Correct typo.
ye-luo 62ffa57
Trap invalid variational_subset entries.
ye-luo 18b771b
Add a test for invalid variatioal_subset.
ye-luo 81a1297
Merge branch 'develop' into support-continue-opt
ye-luo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?xml version="1.0"?> | ||
<qmcsystem> | ||
<wavefunction name="psi0" target="e"> | ||
<determinantset type="MolecularOrbital" name="LCAOBSet" transform="yes" source="ion0"> | ||
<basisset name="LCAOBSet"> | ||
<atomicBasisSet name="Gaussian-G2" angular="cartesian" type="Gaussian" elementType="H" normalized="no"> | ||
<grid type="log" ri="1.e-6" rf="1.e2" npts="1001"/> | ||
<!-- Possible substitution H00 by a Slater-type orbital | ||
<basisGroup rid="H00" n="0" l="0" type="Slater"> | ||
<radfunc exponent="1.31826" contraction="1.0"/> | ||
</basisGroup> | ||
--> | ||
<basisGroup rid="H00" n="0" l="0" type="Gaussian"> | ||
<radfunc exponent="3.425250900000e+00" contraction="1.543289672950e-01"/> | ||
<radfunc exponent="6.239137000000e-01" contraction="5.353281422820e-01"/> | ||
<radfunc exponent="1.688554000000e-01" contraction="4.446345421850e-01"/> | ||
</basisGroup> | ||
</atomicBasisSet> | ||
</basisset> | ||
<sposet basisset="LCAOBSet" name="spo-up" size="3"> | ||
<occupation mode="ground"/> | ||
<coefficient size="4" id="updetC"> | ||
5.04668000000000e-01 4.50114000000000e-01 3.58423000000000e-01 1.26449000000000e-01 | ||
-2.40452000000000e-01 -3.20413000000000e-01 4.66777000000000e-01 7.03549000000000e-01 | ||
8.80080000000000e-02 -5.04842000000000e-01 8.07522000000000e-01 -7.19301000000000e-01 | ||
1.03323500000000e+00 -8.77213000000000e-01 -3.90492000000000e-01 2.12318000000000e-01 | ||
</coefficient> | ||
</sposet> | ||
<sposet basisset="LCAOBSet" name="spo-dn" size="3"> | ||
<occupation mode="ground"/> | ||
<coefficient size="4" id="downdetC"> | ||
5.04668000000000e-01 4.50114000000000e-01 3.58423000000000e-01 1.26449000000000e-01 | ||
-2.40452000000000e-01 -3.20413000000000e-01 4.66777000000000e-01 7.03549000000000e-01 | ||
8.80080000000000e-02 -5.04842000000000e-01 8.07522000000000e-01 -7.19301000000000e-01 | ||
1.03323500000000e+00 -8.77213000000000e-01 -3.90492000000000e-01 2.12318000000000e-01 | ||
</coefficient> | ||
</sposet> | ||
<multideterminant optimize="yes" spo_up="spo-up" spo_dn="spo-dn"> | ||
<detlist size="2" type="CSF" nca="0" ncb="0" nea="2" neb="2" nstates="3" cutoff="0.2"> | ||
<csf id="CSFcoeff_0" exctLvl="0" coeff="0.605818" qchem_coeff="0.955818" occ="220"> | ||
<det id="csf_0-0" coeff="1" alpha="110" beta="110"/> | ||
</csf> | ||
<csf id="CSFcoeff_1" exctLvl="2" coeff="-5.2056644665606530e-01" qchem_coeff="-0.276685" occ="202"> | ||
<det id="csf_1-0" coeff="1" alpha="101" beta="101"/> | ||
</csf> | ||
</detlist> | ||
</multideterminant> | ||
</determinantset> | ||
<jastrow name="J2" type="Two-Body" function="Bspline" print="yes"> | ||
<correlation rcut="10" size="10" speciesA="u" speciesB="u"> | ||
<coefficients id="uu" type="Array"> 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 </coefficients> | ||
</correlation> | ||
<correlation rcut="10" size="10" speciesA="u" speciesB="d"> | ||
<coefficients id="ud" type="Array"> 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 </coefficients> | ||
</correlation> | ||
</jastrow> | ||
<jastrow name="J1" type="One-Body" function="Bspline" source="ion0" print="yes"> | ||
<correlation rcut="5" size="10" cusp="1" elementType="H"> | ||
<coefficients id="eH" type="Array"> 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 </coefficients> | ||
</correlation> | ||
</jastrow> | ||
<jastrow function="polynomial" name="J3" print="yes" source="ion0" type="eeI"> | ||
<correlation esize="3" especies="u" isize="3" ispecies="H" rcut="10"> | ||
<coefficients id="uuH" type="Array"> </coefficients> | ||
</correlation> | ||
<correlation esize="3" especies1="u" especies2="d" isize="3" ispecies="H" rcut="10"> | ||
<coefficients id="udH" type="Array"> </coefficients> | ||
</correlation> | ||
</jastrow> | ||
</wavefunction> | ||
</qmcsystem> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?xml version="1.0"?> | ||
<simulation> | ||
<project id="H4-OneShiftOnly" series="0"> | ||
<parameter name="driver_version">batch</parameter> | ||
</project> | ||
<!--random seed="605"/--> | ||
<!-- input from gaussian converter --> | ||
<include href="H4.ptcl.xml"/> | ||
<include href="H4.wfs_j123.xml"/> | ||
<hamiltonian name="h0" type="generic" target="e"> | ||
<pairpot name="ElecElec" type="coulomb" source="e" target="e"/> | ||
<pairpot name="IonElec" type="coulomb" source="ion0"/> | ||
<constant name="IonIon" type="coulomb" source="ion0" target="ion0"/> | ||
</hamiltonian> | ||
|
||
<loop max="4"> | ||
<qmc method="linear" move="pbyp" checkpoint="-1" gpu="no"> | ||
<parameter name="walkers_per_rank"> 16 </parameter> | ||
<parameter name="blocks"> 128 </parameter> | ||
<parameter name="warmupsteps"> 5 </parameter> | ||
<parameter name="steps"> 128 </parameter> | ||
<parameter name="substeps"> 5 </parameter> | ||
<parameter name="timestep"> 0.5 </parameter> | ||
<parameter name="useDrift"> yes </parameter> | ||
<parameter name="samples"> 262144 </parameter> | ||
<cost name="energy"> 1.00 </cost> | ||
<cost name="unreweightedvariance"> 0.00 </cost> | ||
<cost name="reweightedvariance"> 0.00 </cost> | ||
<estimator name="LocalEnergy" hdf5="no"/> | ||
<parameter name="MinMethod">OneShiftOnly</parameter> | ||
<parameter name="variational_subset"> uu ud </parameter> | ||
</qmc> | ||
</loop> | ||
|
||
<loop max="4"> | ||
<qmc method="linear" move="pbyp" checkpoint="-1" gpu="no"> | ||
<parameter name="walkers_per_rank"> 16 </parameter> | ||
<parameter name="blocks"> 128 </parameter> | ||
<parameter name="warmupsteps"> 5 </parameter> | ||
<parameter name="steps"> 128 </parameter> | ||
<parameter name="substeps"> 5 </parameter> | ||
<parameter name="timestep"> 0.5 </parameter> | ||
<parameter name="useDrift"> yes </parameter> | ||
<parameter name="samples"> 262144 </parameter> | ||
<cost name="energy"> 1.00 </cost> | ||
<cost name="unreweightedvariance"> 0.00 </cost> | ||
<cost name="reweightedvariance"> 0.00 </cost> | ||
<estimator name="LocalEnergy" hdf5="no"/> | ||
<parameter name="MinMethod">OneShiftOnly</parameter> | ||
<parameter name="variational_subset"> uu ud eH </parameter> | ||
</qmc> | ||
</loop> | ||
|
||
<loop max="4"> | ||
<qmc method="linear" move="pbyp" checkpoint="-1" gpu="no"> | ||
<parameter name="walkers_per_rank"> 16 </parameter> | ||
<parameter name="blocks"> 128 </parameter> | ||
<parameter name="warmupsteps"> 5 </parameter> | ||
<parameter name="steps"> 128 </parameter> | ||
<parameter name="substeps"> 5 </parameter> | ||
<parameter name="timestep"> 0.5 </parameter> | ||
<parameter name="useDrift"> yes </parameter> | ||
<parameter name="samples"> 262144 </parameter> | ||
<cost name="energy"> 1.00 </cost> | ||
<cost name="unreweightedvariance"> 0.00 </cost> | ||
<cost name="reweightedvariance"> 0.00 </cost> | ||
<estimator name="LocalEnergy" hdf5="no"/> | ||
<parameter name="MinMethod">OneShiftOnly</parameter> | ||
<parameter name="variational_subset"> uu ud eH CI </parameter> | ||
</qmc> | ||
</loop> | ||
|
||
<loop max="4"> | ||
<qmc method="linear" move="pbyp" checkpoint="-1" gpu="no"> | ||
<parameter name="walkers_per_rank"> 16 </parameter> | ||
<parameter name="blocks"> 128 </parameter> | ||
<parameter name="warmupsteps"> 5 </parameter> | ||
<parameter name="steps"> 128 </parameter> | ||
<parameter name="substeps"> 5 </parameter> | ||
<parameter name="timestep"> 0.5 </parameter> | ||
<parameter name="useDrift"> yes </parameter> | ||
<parameter name="samples"> 262144 </parameter> | ||
<cost name="energy"> 1.00 </cost> | ||
<cost name="unreweightedvariance"> 0.00 </cost> | ||
<cost name="reweightedvariance"> 0.00 </cost> | ||
<estimator name="LocalEnergy" hdf5="no"/> | ||
<parameter name="MinMethod">OneShiftOnly</parameter> | ||
<parameter name="variational_subset"> uu ud eH uuH udH </parameter> | ||
</qmc> | ||
</loop> | ||
|
||
</simulation> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.