You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having this is nice for avoiding unnecessary roundtrips, but it'd be nice to be able to use this interchangeably with TKET1 circs. Open an issue to investigate options?
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`)
Adds a `tket1`/`tket2` to the `with_hugr` helpers, so we always know
what format to output afterwards.
The more noisy part of this commit changing all the GIL-independent
types to capturing references, so we don't have to manually lock
multiple times per call.
Closes#178.
Originally posted by @aborgna-q in https://github.com/CQCL-DEV/tket2/pull/177#discussion_r1350269565
The text was updated successfully, but these errors were encountered: