quantumgizmos / ldpc

Software for decoding classical and quantum codes
MIT License
81 stars 28 forks source link

pybind11 instead of cython? (suggestion) #23

Closed alexandrupaler closed 7 months ago

alexandrupaler commented 11 months ago

I have tried to disable OSD (see #22 ) and looked into the Cython code necessary for using the C++ lib from Python.

This is just a suggestion: if the Cython is used only for exposing the API to Python, then Pybind11 https://github.com/pybind/pybind11 might be significantly easier to use and maintain.

I have used Pybind11 for qflex https://github.com/ngnrsaa/qflex/tree/master/qflexcirq and it was great and straightforward to use. Another example using Pybind11 is qsim https://github.com/quantumlib/qsim/tree/master/pybind_interface