Skip to content
Open
Show file tree
Hide file tree
Changes from 4 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
6 changes: 3 additions & 3 deletions src/openfermion/ops/representations/doci_hamiltonian_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import unittest

import numpy
import pytest

from openfermion.config import EQ_TOLERANCE
from openfermion.chem.molecular_data import MolecularData
Expand All @@ -24,11 +25,9 @@
from openfermion.linalg import get_sparse_operator
from openfermion.ops.representations.doci_hamiltonian import (
DOCIHamiltonian,
get_tensors_from_doci,
get_projected_integrals_from_doci,
get_doci_from_integrals,
)
from openfermion import get_fermion_operator, InteractionOperator, normal_ordered
from openfermion import get_fermion_operator, InteractionOperator

numpy.set_printoptions(linewidth=2000, threshold=sys.maxsize)

Expand All @@ -55,6 +54,7 @@ def test_integrals_self_inverse(self):
self.assertTrue(numpy.allclose(hr1, hr1_test))
self.assertTrue(numpy.allclose(hr2, hr2_test))

@pytest.mark.slow
def test_fermionic_hamiltonian_from_integrals(self):
constant = self.molecule.nuclear_repulsion
doci_constant = constant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import numpy as np
import pytest

Expand Down Expand Up @@ -252,6 +253,7 @@ def test_G_vector_mapping_single_translation():
assert np.allclose(delta_G_expected, delta_G)


@pytest.mark.slow
Comment thread
mhucka marked this conversation as resolved.
Outdated
@pytest.mark.skipif(not HAVE_DEPS_FOR_RESOURCE_ESTIMATES, reason='pyscf and/or jax not installed.')
def test_kpoint_isdf_double_translation():
cell = gto.Cell()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

import unittest

import pytest

from openfermion.hamiltonians import fermi_hubbard
from openfermion.chem import MolecularData
from openfermion.transforms.opconversions import get_fermion_operator
Expand Down Expand Up @@ -83,6 +85,7 @@ def number_of_qubits(qubit_hamiltonian, unreduced_orbitals):
class ReduceSymmetryQubitsTest(unittest.TestCase):
# Check whether fermionic and reduced qubit Hamiltonians
# have the same energy for LiH
@pytest.mark.slow
def test_energy_reduce_symmetry_qubits(self):
# Generate the fermionic Hamiltonians,
# number of orbitals and number of electrons.
Expand Down