Skip to content

Commit

Permalink
introduce default jastrow as elec-elec pade jastrow
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoRenaud committed Dec 5, 2023
1 parent 07e1442 commit fab56a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion qmctorch/scf/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__( # pylint: disable=too-many-arguments
calculator (str, optional): selet scf calculator. Defaults to 'adf'.
- pyscf : PySCF calculator
- adf : ADF2020+ calculator
- adf2019 : ADF2019 calculatori
- adf2019 : ADF2019 calculator
scf (str, optional): select scf level of theory. Defaults to 'hf'.
- hf : perform a Hatree-Fock calculation to obtain the molecular orbital coefficients
- dft : perform a density functional theory using the local density approximation
Expand Down
5 changes: 3 additions & 2 deletions qmctorch/solver/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ def set_params_requires_grad(self, wf_params=True, geo_params=False):
self.wf.fc.weight.requires_grad = wf_params

if hasattr(self.wf, "jastrow"):
for param in self.wf.jastrow.parameters():
param.requires_grad = wf_params
if self.wf.jastrow is not None:
for param in self.wf.jastrow.parameters():
param.requires_grad = wf_params

# no opt the atom positions
self.wf.ao.atom_coords.requires_grad = geo_params
Expand Down

0 comments on commit fab56a9

Please sign in to comment.