Skip to content

Commit

Permalink
Change EQ_TOLERANCE from 1e-12 to 1e-8 (#487)
Browse files Browse the repository at this point in the history
* change EQ_TOLERANCE from 1e-12 to 1e-8

* add back debug line
  • Loading branch information
kevinsung authored and babbush committed Nov 14, 2018
1 parent 3359fee commit 40ee750
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dev_tools/packaging/verify-published-package.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ for PYTHON_VERSION in python2 python3; do
"${tmp_dir}/${PYTHON_VERSION}/bin/python" -c "import openfermion; print(openfermion.QubitOperator((1, 'X')))" "${tmp_dir}/${PYTHON_VERSION}/bin/python" -c "import openfermion; print(openfermion.QubitOperator((1, 'X')))"


# Run tests. # Run tests.
echo Installing pytest
"${tmp_dir}/${PYTHON_VERSION}/bin/pip" install --quiet pytest "${tmp_dir}/${PYTHON_VERSION}/bin/pip" install --quiet pytest
PY_VER=$(ls "${tmp_dir}/${PYTHON_VERSION}/lib") PY_VER=$(ls "${tmp_dir}/${PYTHON_VERSION}/lib")
echo Running tests echo Running tests
Expand Down
2 changes: 1 addition & 1 deletion src/openfermion/config.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import os import os


# Tolerance to consider number zero. # Tolerance to consider number zero.
EQ_TOLERANCE = 1e-12 EQ_TOLERANCE = 1e-8


# Molecular data directory. # Molecular data directory.
THIS_DIRECTORY = os.path.dirname(os.path.realpath(__file__)) THIS_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
Expand Down

0 comments on commit 40ee750

Please sign in to comment.