Qiskit / rustworkx

A high performance Python graph library implemented in Rust.
https://www.rustworkx.org
Apache License 2.0
1.03k stars 145 forks source link

Test `rustworkx` with free-threaded Python #1251

Open IvanIsCoding opened 1 month ago

IvanIsCoding commented 1 month ago

What is the expected enhancement?

Starting with 3.13, we should test rustworkx with https://py-free-threading.github.io/ to make sure it at least work with a single-thread setting. I don't think we should make our data structures thread-safe (that is a lot of overhead).

Of course this will heavily depend on PyO3 and their API offerings. But so far they have made progress on removing the GIL

IvanIsCoding commented 1 month ago

And we are blocked until NumPy releases a new version supporting free threaded Python anyway: https://py-free-threading.github.io/tracking/.

gulldan commented 1 week ago

https://github.com/numpy/numpy/releases/tag/v2.1.0