qiskit-community / qiskit-machine-learning

Quantum Machine Learning
https://qiskit-community.github.io/qiskit-machine-learning/
Apache License 2.0
693 stars 328 forks source link

Revert Numpy to the latest version in CI environment once UTF bug in PyTorch is fixed #815

Closed edoaltamura closed 3 months ago

edoaltamura commented 4 months ago

What should we add?

Revert the Numpy pinned version 1.x, done in https://github.com/qiskit-community/qiskit-machine-learning/pull/814, to the latest 2.x once PyTorch 2.2.2 can be released following the fix of https://github.com/pytorch/pytorch/issues/124897.

The versions of Numpy and PyTorch were pinned because of the UTF-8 issue that breaks the Windows CI tests. However, PyTorch 2.2.2 is not compatible with Numpy 2.x, therefore requiring the pinning of Numpy to 1.x.

This issue can be resolved together with https://github.com/qiskit-community/qiskit-machine-learning/issues/797.