sandialabs / pyGSTi

A python implementation of Gate Set Tomography
http://www.pygsti.info
Apache License 2.0
133 stars 56 forks source link

Numpy version dependency #470

Open manavbabel opened 1 month ago

manavbabel commented 1 month ago

Describe the bug When importing pygsti in an environment with numpy==2.0.0, an error is thrown saying the module numpy.lib.arraysetops is not found. I think this was removed in that version of numpy. The bug is fixed when numpy version 1.26.0 is used, so I suggest modifying the requirements file to specify this.

To Reproduce In terminal: pip install numpy pygsti # installs version 2.0.0 or above In the Python environment: import pygsti Result: ModuleNotFoundError: No module named 'numpy.lib.arraysetops' Fixed with: pip install numpy==1.26.0

Environment (please complete the following information):

coreyostrove commented 1 month ago

Thanks for your report. This will be fixed with PR #458, and the fix should be available on the develop branch within the next few days. If you run into any other numpy 2.0 related issues please don't hesitate to let us know.