Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace np.alltrue() with np.all() #1371

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/second_q/mappers/test_bksf_mapper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of a Qiskit project.
#
# (C) Copyright IBM 2021, 2023.
# (C) Copyright IBM 2021, 2025.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Loading