Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dchung0741 committed Jan 25, 2024
1 parent 4995192 commit 6bd1785
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/openfermion/quri_parts/openfermion/ansatz/uccsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ def __init__(

if n_fermions % 2 and singlet_excitation:
raise ValueError(
"Singlet excitation is not supported when "
"number of electron is odd."
"Singlet excitation is not supported when " "number of electron is odd."
)

if n_vir_sorbs <= 0:
Expand Down
3 changes: 1 addition & 2 deletions packages/openfermion/tests/openfermion/ansatz/test_uccsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,7 @@ def test_singlet_uccsd_invalid_input(self) -> None:
with pytest.raises(
ValueError,
match=(
"Singlet excitation is not supported when "
"number of electron is odd."
"Singlet excitation is not supported when " "number of electron is odd."
),
):
TrotterUCCSD(4, 3, singlet_excitation=True)
Expand Down

0 comments on commit 6bd1785

Please sign in to comment.