From caed565179dc5ac88405c0e2507ceb519014844c Mon Sep 17 00:00:00 2001 From: Minh Tran Date: Mon, 13 Jan 2025 10:18:07 -0700 Subject: [PATCH] reformat fermion_operator_test.py --- tests/python/operators/fermion_operator_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/python/operators/fermion_operator_test.py b/tests/python/operators/fermion_operator_test.py index 8f4550516..952b9db5d 100644 --- a/tests/python/operators/fermion_operator_test.py +++ b/tests/python/operators/fermion_operator_test.py @@ -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 @@ -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) - -