diff --git a/test/second_q/mappers/test_bksf_mapper.py b/test/second_q/mappers/test_bksf_mapper.py index 71aff36c4..a98355d80 100644 --- a/test/second_q/mappers/test_bksf_mapper.py +++ b/test/second_q/mappers/test_bksf_mapper.py @@ -100,7 +100,7 @@ def test_bksf_edge_op_aij(self): def test_h2(self): """Test H2 molecule""" with self.subTest("Excitation edges 1"): - assert np.alltrue( + assert np.all( _bksf_edge_list_fermionic_op( FermionicOp({"+_0 -_1 +_2 -_3": 1}, num_spin_orbitals=4), 4, @@ -109,7 +109,7 @@ def test_h2(self): ) with self.subTest("Excitation edges 2"): - assert np.alltrue( + assert np.all( _bksf_edge_list_fermionic_op( FermionicOp({"+_0 -_1 -_2 +_3": 1}, num_spin_orbitals=4), 4,