Skip to content

Commit f007b1d

Browse files
Update tests/test_pauli_string.py
Co-authored-by: James E T Smith <[email protected]>
1 parent 8064110 commit f007b1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pauli_string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def test_expected_value(
247247
)
248248

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

0 commit comments

Comments
 (0)