Skip to content

Commit

Permalink
Update packages/openfermion/quri_parts/openfermion/ansatz/uccsd.py
Browse files Browse the repository at this point in the history
remove redundant attributes

Co-authored-by: Toru Shibamiya <[email protected]>
  • Loading branch information
dchung0741 and toru4838 authored Jan 25, 2024
1 parent a9474b3 commit a3b01b8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/openfermion/quri_parts/openfermion/ansatz/uccsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ def __init__(
), "n_spin_orbitals and n_fermions must not be None for ansatz construction."
n_vir_sorbs = n_spin_orbitals - n_fermions

self._n_spin_orbitals = n_spin_orbitals
self._n_fermions = n_fermions
self._delta_sz = delta_sz

if n_fermions % 2 and singlet_excitation:
raise ValueError(
"Singlet excitation is not supported when "
Expand Down

0 comments on commit a3b01b8

Please sign in to comment.