oscarhiggott / PyMatching

PyMatching: A Python/C++ library for decoding quantum error correcting codes with minimum-weight perfect matching.
Apache License 2.0
186 stars 32 forks source link

Fix Windows Python 3.10 build #24

Closed oscarhiggott closed 2 years ago

oscarhiggott commented 2 years ago

Building the wheels for Python 3.10 on Windows fails with the error:

D:\a\PyMatching\PyMatching\lib\pybind11\include\pybind11/numpy.h(36,22): error C2065: 'ssize_t': undeclared identifier (compiling source file D:\a\PyMatching\PyMatching\src\pymatching\lemon_mwpm.cpp) [D:\a\PyMatching\PyMatching\build\temp.win-amd64-3.10\Release\_cpp_mwpm.vcxproj]