Skip to content

Commit

Permalink
reformat fermion_operator_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
minhctran committed Jan 13, 2025
1 parent cd9ce59 commit caed565
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/python/operators/fermion_operator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ def test_mapping_methods():
((ffsim.cre_b(2), ffsim.des_b(1)), 1 - 0.5j),
}


def test_trace():
rng = np.random.default_rng(12345)
# compare for random_diagonal_coulomb_hamiltonian
Expand All @@ -660,5 +661,3 @@ def test_trace():
ham = ffsim.random.random_molecular_hamiltonian(norb, seed=rng, dtype=float)
t1 = ffsim.trace(ffsim.fermion_operator(ham), norb=norb, nelec=nelec)
t2 = ffsim.trace(ham, norb=norb, nelec=nelec)


0 comments on commit caed565

Please sign in to comment.