Open royess opened 5 months ago
Hi. Thanks for pointing this out. I think the problem is that that numpy 2.0.0 doesn't support the np.int_t type for some reason. I've changed the default output type to np.uint8_t
and it seems to work for me locally. Could you test the fix in branch issue40
?
The new branch seems to work well. It no longer triggers errors. I also tested decoding a small repetition code, which returned an expected result. Thanks for this fixing!
Any chance of getting this fix merged and released as a new version (before the v2 release)? That will also directly fix #43.
Potentially, besides the fix for numpy 2.0 compatibility, wheels for Python 3.12 would be great and should be easy to do.
@burgholzer I've made pull request #44 to ship this? Could you confirm it works in your environment? Then it can be shipped 🚢
uv venv --python 3.12 .venv312
source .venv312/bin/activate
uv pip install git+https://github.com/quantumgizmos/ldpc@issue40
succeeds without issues om my Linux machine as well as my Windows and my Apple arm64 machine. Also briefly tested the new version over in our QECC repo and everything builds fine and also runs fine. So definitely "go" from my side.
Thanks @burgholzer pr #44 is now integrated and uploaded to PyPi!
Many thanks 🙏🏼 Already integrated the new version in mqt-qecc and it works like a charm ✨
Incompatible problem with the newly released numpy 2.0.0 (https://pypi.org/project/numpy/2.0.0/#history).
Versions: python==3.12, ldpc==0.1.51, numpy=2.0.0, scipy==1.13.1