Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Oct 30, 2023
1 parent c59fbd1 commit 6cca7e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/trotter/qdrift_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ def test_simulate_qdrift_double_factorized_h_chain(
occupied_orbitals = (range(n_alpha), range(n_beta))
initial_state = ffsim.slater_determinant(norb, occupied_orbitals)
original_state = initial_state.copy()
one_rdm = ffsim.slater_determinant_one_rdm(norb, occupied_orbitals)
one_rdm = ffsim.slater_determinant_one_rdm(
norb, occupied_orbitals, spin_summed=False
)

# compute exact state
exact_state = scipy.sparse.linalg.expm_multiply(
Expand Down Expand Up @@ -372,7 +374,9 @@ def test_simulate_qdrift_double_factorized_random(
occupied_orbitals = (range(n_alpha), range(n_beta))
initial_state = ffsim.slater_determinant(norb, occupied_orbitals)
original_state = initial_state.copy()
one_rdm = ffsim.slater_determinant_one_rdm(norb, occupied_orbitals)
one_rdm = ffsim.slater_determinant_one_rdm(
norb, occupied_orbitals, spin_summed=False
)

# compute exact state
exact_state = scipy.sparse.linalg.expm_multiply(
Expand Down

0 comments on commit 6cca7e3

Please sign in to comment.