Skip to content

Commit

Permalink
Bring OF-psi4 into compliance with OF reorg (#51)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ncrubin authored Dec 22, 2020
1 parent 6b8e9ef commit 8b8de94
Show file tree
Hide file tree
Showing 10 changed files with 291 additions and 553 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@ ENV/
/site

*.lprof

# no pycharm
.idea*
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ OpenFermion-PySCF
.. image:: https://badge.fury.io/py/openfermionpyscf.svg
:target: https://badge.fury.io/py/openfermionpyscf

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


`OpenFermion <http://openfermion.org>`__ is an open source library (licensed under Apache 2) for compiling and analyzing quantum algorithms which simulate fermionic systems.
This plugin library allows the electronic structure package `PySCF <http://github.com/sunqm/pyscf>`__ (licensed under BSD-2-Clause) to interface with OpenFermion.
Expand Down
2 changes: 1 addition & 1 deletion examples/generate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""This is a simple script for generating data."""
import os

from openfermion.hamiltonians import make_atomic_ring
from openfermion.chem import make_atomic_ring

from openfermionpyscf import run_pyscf

Expand Down
2 changes: 1 addition & 1 deletion examples/generate_diatomic.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""This is a simple script for generating data."""
import os

from openfermion.hamiltonians import MolecularData
from openfermion.chem import MolecularData

from openfermionpyscf import run_pyscf

Expand Down
821 changes: 278 additions & 543 deletions examples/openfermionpyscf_demo.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import numpy
import warnings

from openfermion.hamiltonians import (make_atom, make_atomic_ring,
MolecularData, periodic_table)
from openfermion.chem import (make_atom, make_atomic_ring,
MolecularData, periodic_table)


def latex_name(molecule):
Expand Down
2 changes: 1 addition & 1 deletion openfermionpyscf/_pyscf_molecular_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from pyscf import ao2mo
from pyscf import scf
from pyscf.cc.addons import spatial2spin
from openfermion.hamiltonians import MolecularData
from openfermion.chem import MolecularData


class PyscfMolecularData(MolecularData):
Expand Down
1 change: 0 additions & 1 deletion openfermionpyscf/_run_pyscf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from functools import reduce

import numpy
import pyscf
from pyscf import gto, scf, ao2mo, ci, cc, fci, mp

from openfermion import MolecularData
Expand Down
2 changes: 1 addition & 1 deletion openfermionpyscf/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
# limitations under the License.

"""Define version number here and read it from setup.py automatically"""
__version__ = "0.4"
__version__ = "0.5"
2 changes: 1 addition & 1 deletion openfermionpyscf/tests/_run_pyscf_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""Tests many modules to call pyscf functions."""
from __future__ import absolute_import

from openfermion.hamiltonians import MolecularData
from openfermion.chem import MolecularData
from openfermionpyscf import run_pyscf
from openfermionpyscf import PyscfMolecularData

Expand Down

0 comments on commit 8b8de94

Please sign in to comment.