Skip to content

Commit 8b8de94

Browse files
authored
Bring OF-psi4 into compliance with OF reorg (#51)
* Bring OF-psi4 into compliance with OF reorg OF-psi4 now correctly imports MolecularData gitignore is updated to ignore pycharm files * Update version for OF-parity + Clean up badge and non-used imports
1 parent 6b8e9ef commit 8b8de94

File tree

10 files changed

+291
-553
lines changed

10 files changed

+291
-553
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,6 @@ ENV/
7373
/site
7474

7575
*.lprof
76+
77+
# no pycharm
78+
.idea*

README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ OpenFermion-PySCF
44
.. image:: https://badge.fury.io/py/openfermionpyscf.svg
55
:target: https://badge.fury.io/py/openfermionpyscf
66

7-
.. image:: https://travis-ci.org/quantumlib/OpenFermion-PySCF.svg?branch=master
8-
:target: https://travis-ci.org/quantumlib/OpenFermion-PySCF
7+
.. image:: https://github.com/quantumlib/OpenFermion-PySCF/workflows/Continuous%20Integration/badge.svg
8+
:target: https://github.com/quantumlib/OpenFermion-PySCF/actions?query=workflow%3A%22Continuous+Integration%22
9+
910

1011
`OpenFermion <http://openfermion.org>`__ is an open source library (licensed under Apache 2) for compiling and analyzing quantum algorithms which simulate fermionic systems.
1112
This plugin library allows the electronic structure package `PySCF <http://github.com/sunqm/pyscf>`__ (licensed under BSD-2-Clause) to interface with OpenFermion.

examples/generate_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"""This is a simple script for generating data."""
1414
import os
1515

16-
from openfermion.hamiltonians import make_atomic_ring
16+
from openfermion.chem import make_atomic_ring
1717

1818
from openfermionpyscf import run_pyscf
1919

examples/generate_diatomic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"""This is a simple script for generating data."""
1414
import os
1515

16-
from openfermion.hamiltonians import MolecularData
16+
from openfermion.chem import MolecularData
1717

1818
from openfermionpyscf import run_pyscf
1919

examples/openfermionpyscf_demo.ipynb

Lines changed: 278 additions & 543 deletions
Large diffs are not rendered by default.

examples/plotter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import numpy
1616
import warnings
1717

18-
from openfermion.hamiltonians import (make_atom, make_atomic_ring,
19-
MolecularData, periodic_table)
18+
from openfermion.chem import (make_atom, make_atomic_ring,
19+
MolecularData, periodic_table)
2020

2121

2222
def latex_name(molecule):

openfermionpyscf/_pyscf_molecular_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from pyscf import ao2mo
1818
from pyscf import scf
1919
from pyscf.cc.addons import spatial2spin
20-
from openfermion.hamiltonians import MolecularData
20+
from openfermion.chem import MolecularData
2121

2222

2323
class PyscfMolecularData(MolecularData):

openfermionpyscf/_run_pyscf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from functools import reduce
1818

1919
import numpy
20-
import pyscf
2120
from pyscf import gto, scf, ao2mo, ci, cc, fci, mp
2221

2322
from openfermion import MolecularData

openfermionpyscf/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
# limitations under the License.
1212

1313
"""Define version number here and read it from setup.py automatically"""
14-
__version__ = "0.4"
14+
__version__ = "0.5"

openfermionpyscf/tests/_run_pyscf_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"""Tests many modules to call pyscf functions."""
1414
from __future__ import absolute_import
1515

16-
from openfermion.hamiltonians import MolecularData
16+
from openfermion.chem import MolecularData
1717
from openfermionpyscf import run_pyscf
1818
from openfermionpyscf import PyscfMolecularData
1919

0 commit comments

Comments
 (0)