Skip to content

Commit

Permalink
Update tests/test_pauli_string.py
Browse files Browse the repository at this point in the history
Co-authored-by: James E T Smith <[email protected]>
  • Loading branch information
stand-by and jamesETsmith authored Aug 7, 2024
1 parent 8064110 commit f007b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_pauli_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def test_expected_value(
)

coeff = generate_random_complex(1)[0]
psis = generate_random_complex(n_dim, n_states)
psis = generate_random_complex(n_states, n_dim)
expected = np.einsum("ti,ij,tj->t", psi.conj(), naive_pauil_converter(s), psi)
np.testing.assert_allclose(
PauliString(s).expected_value(psis, coeff),
Expand Down

0 comments on commit f007b1d

Please sign in to comment.