-
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
Add a python-defined layer over the bindings. #350
Comments
First step towards #350. Deinterlaces the rust-binded modules from the pure python ones. And puts them in `_tket` For now, we still re-export everything directly, I'll add the python wrappers and missing typing info in a following PR.
Summary of in-person discussion: |
Closing this, as it will be included in any new tket2 bindings support / replaced by hugr-py uses. |
Move the bindings to a
tket2._tket2
submodule and re-define all structures from python, backed by their binded counterparts.See Quantomatic/quizx for an example.
This gives us more flexibility on the python interface, where we can define methods that better reflect the python conventions.
Additionally, typing information is simpler and less error-prone; we only need the hand-written .pyi for the reduced binded methods and missing values will not affect the external API.
The text was updated successfully, but these errors were encountered: