Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion check/pylint
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(git rev-parse --show-toplevel)"

pylint --rcfile=dev_tools/conf/.pylintrc $@ src dev_tools examples
pylint --rcfile=dev_tools/conf/.pylintrc $@ src dev_tools
1 change: 0 additions & 1 deletion src/openfermion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
sy_operator,
sz_operator,
majorana_operator,
number_operator,
)

from openfermion.linalg import (
Expand Down
2 changes: 1 addition & 1 deletion src/openfermion/hamiltonians/richardson_gaudin_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from openfermion.hamiltonians import RichardsonGaudin
from openfermion.ops import QubitOperator
from openfermion.transforms import get_fermion_operator
#from openfermion.transforms import get_fermion_operator
from openfermion.transforms import jordan_wigner
from openfermion.linalg import get_sparse_operator
from openfermion import get_fermion_operator, InteractionOperator, normal_ordered
Expand Down
3 changes: 2 additions & 1 deletion src/openfermion/resource_estimates/sf/factorize_sf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# coverage:ignore
""" Single factorization of the ERI tensor """
"""Single factorization of the ERI tensor"""
import sys
import numpy as np
from openfermion.resource_estimates.utils import eigendecomp

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_form(self):
random_operator = get_fermion_operator(random_interaction_operator(n_qubits))
chemist_operator = chemist_ordered(random_operator)
for term, _ in chemist_operator.terms.items():
if len(term) == 2 or not len(term):
if len(term) == 2 or not term:
pass
else:
self.assertTrue(term[0][1])
Expand Down