Skip to content

Commit

Permalink
Fix pylint error
Browse files Browse the repository at this point in the history
  • Loading branch information
chmwzc committed May 28, 2024
1 parent cfa9fc9 commit 659e32f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qibochem/ansatz/hf_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def hf_circuit(n_qubits, n_electrons, ferm_qubit_map=None):
raise KeyError("Fermon-to-qubit mapping must be either 'jw' or 'bk'")

# Occupation number of SOs
mapped_occ_n = None
occ_n = np.concatenate((np.ones(n_electrons), np.zeros(n_qubits - n_electrons)))
if ferm_qubit_map == "jw":
mapped_occ_n = occ_n
Expand Down

0 comments on commit 659e32f

Please sign in to comment.