Skip to content

Commit

Permalink
Merge pull request #11 from kemperlab/norman
Browse files Browse the repository at this point in the history
Fix test_generate_paulis_from_fermionic_ops()
  • Loading branch information
anormanhogan authored Mar 2, 2024
2 parents 809a383 + 24cd6e0 commit 0f0f0c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_normalize():

def test_generate_paulis_from_fermionic_ops():
test_operators = {"0^ 1": 1.0, "1^ 0": 1.0, "0^ 0": 3.0}
N_sites = 1
N_sites = 2
expected_coeffs = np.array([0.5 + 0.0j, 0.5 + 0.0j, 1.5 + 0.0j, -1.5 + 0.0j])
expected_paulis = ["YY", "XX", "--", "Z-"]
coeffs, paulis = generate_paulis_from_fermionic_ops(test_operators, N_sites)
Expand Down

0 comments on commit 0f0f0c6

Please sign in to comment.