quantumlib / OpenFermion-PySCF

OpenFermion plugin to interface with the electronic structure package PySCF.
Apache License 2.0
105 stars 44 forks source link

Set parse_arg option of pyscf.gto.mole.Mole.build to False #50

Open kwkbtr opened 4 years ago

kwkbtr commented 4 years ago

pyscf.gto.mole.Mole.build method has parse_arg option, which specifies whether pyscf should parse command line arguments or not:

https://sunqm.github.io/pyscf/gto.html#pyscf.gto.mole.Mole.build

The default value of the option is True and it sometimes results in a conflict with command line arguments parsed by a user script. cf. pyscf/pyscf#470

I think the root problem is on pyscf side (they should set the default value to False), but I think it is good to specify the argument explicitly in OpenFermion-PySCF; for example here: https://github.com/quantumlib/OpenFermion-PySCF/blob/b1081b90a372afc68ee8b265d7585afdcbe94c7b/openfermionpyscf/_run_pyscf.py#L43