@@ -743,12 +743,6 @@ def log_network(*args, **kwargs):
743743 # Construct loss and optimizer
744744 laplacian_method = cfg .optim .get ('laplacian' , 'default' )
745745 if cfg .system .make_local_energy_fn :
746- if laplacian_method != 'default' :
747- raise NotImplementedError (f'Laplacian method { laplacian_method } '
748- 'not yet supported by custom local energy fns.' )
749- if cfg .optim .objective == 'vmc_overlap' :
750- raise NotImplementedError ('Overlap penalty not yet supported for custom'
751- 'local energy fns.' )
752746 local_energy_module , local_energy_fn = (
753747 cfg .system .make_local_energy_fn .rsplit ('.' , maxsplit = 1 ))
754748 local_energy_module = importlib .import_module (local_energy_module )
@@ -758,7 +752,12 @@ def log_network(*args, **kwargs):
758752 charges = charges ,
759753 nspins = nspins ,
760754 use_scan = False ,
755+ complex_output = use_complex ,
756+ laplacian_method = laplacian_method ,
761757 states = cfg .system .get ('states' , 0 ),
758+ state_specific = (cfg .optim .objective == 'vmc_overlap' ),
759+ pp_type = cfg .system .get ('pp' , {'type' : 'ccecp' }).get ('type' ),
760+ pp_symbols = pp_symbols if cfg .system .get ('use_pp' ) else None ,
762761 ** cfg .system .make_local_energy_kwargs )
763762 else :
764763 pp_symbols = cfg .system .get ('pp' , {'symbols' : None }).get ('symbols' )
0 commit comments