Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notebook test import #116

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,16 @@
"outputs": [],
"source": [
"Print = True\n",
"import os\n",
"import sys\n",
"from openfermion import FermionOperator, MolecularData\n",
"from openfermion.utils import hermitian_conjugated\n",
"import numpy\n",
"import fqe\n",
"from fqe.unittest_data import build_lih_data\n",
"\n",
"top_dir = os.path.abspath(fqe.__file__).replace('src/fqe/__init__.py','')\n",
"sys.path.append(os.path.join(top_dir, 'tests'))\n",
"from unittest_data import build_lih_data\n",
"numpy.set_printoptions(floatmode='fixed', precision=6, linewidth=80, suppress=True)\n",
"numpy.random.seed(seed=409)\n",
"\n",
Expand Down Expand Up @@ -505,7 +510,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -519,7 +524,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
"version": "3.8.12"
}
},
"nbformat": 4,
Expand Down