-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move src/portmatching/pyo3.rs to pyrs #148
Comments
Half of the code there is implementing The other half of the code defines I'll close this as WONTDO. We can review it in the future if we want to refactor the API in a way that doesn't require those impls. |
Reopening this as it's useful for #178 |
Adds transparent wrappers on `tket2-py` that derive pyclass themselves. This has multiple goals: - Cleans up the code. Python stuff goes into the python crate. Now `tket2:pyo3` and `hugr:pyo3` are only used for the python error implementations. (We could potentially move this too, and avoid us the `pyo3` dependency headache). - Let's us use the `tket2-py` conversion methods for tket1 and tket2 circuits. This is required for #178, which is in turn required for all the python bindings in #204 that require stable indices. Closes #148 --- The code is mostly the same, asides from: - replacing the custom implementation of `PyPatternMatch` with a transparent wrapper. (There was a TODO for this). - updating to tket-json-rs 0.3 (cleans up some calls that use `Python::with_gil`)
There is no reason this should live within
tket2
.The text was updated successfully, but these errors were encountered: