You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test TestBravyiKitaevSuperFastMapper::test_h2 from test/second_q/mappers/test_bksf_mapper.py fails because it uses np.alltrue(), which was deprecated in NumPy 1.25.0 and removed in NumPy 2.0.
How can we reproduce the issue?
Try to run the tests with a recent version of NumPy.
What should happen?
Test works on supported versions of NumPy
Any suggestions?
Replace np.alltrue() with np.all() as explained in the NumPy 2.0 migration guidelines.
The text was updated successfully, but these errors were encountered:
numpy.alltrue() was deprecated in NumPy 1.25.0 and removed in NumPy 2.0.
Because of this, test_h2 fails on recent versions of NumPy.
Fixes: qiskit-community#1370
Environment
What is happening?
The test
TestBravyiKitaevSuperFastMapper::test_h2
fromtest/second_q/mappers/test_bksf_mapper.py
fails because it usesnp.alltrue()
, which was deprecated in NumPy 1.25.0 and removed in NumPy 2.0.How can we reproduce the issue?
Try to run the tests with a recent version of NumPy.
What should happen?
Test works on supported versions of NumPy
Any suggestions?
Replace
np.alltrue()
withnp.all()
as explained in the NumPy 2.0 migration guidelines.The text was updated successfully, but these errors were encountered: