Closed babbush closed 7 years ago
This probably is the best practice: http://stackoverflow.com/questions/1383239/can-i-use-init-py-to-define-global-variables @babbush @damiansteiger
I see the tolerance in LocalTerm and LocalOperator is 1e-10 instead of 1e-12 as others (which are now moved to config.py) - is there a reason for the difference?
No. Go ahead with 1e-12 everywhere.
Sent a pull request for this.
Please let me know for other constants to put into config.
Throughout the code there are a few variables that we should really have in a global config file. I believe that the location of the /data/ directory as well as the tolerance parameter in LocalTerms/LocalOperators/ used in deciding whether to consider numbers as zero or not are examples of this. Maybe even whether to use Psi4 or pyscf as the default parameters.
Perhaps Wei can help with this when he gets a chance but I want to make sure this is okay with Damian.