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
This is an alternative to #635, using pure-rust instead of calling to
python so we can keep the pytket decoder on the `tket2` crate.
Improves parsing of pytket operation parameters by defining a grammar
and parser for sympy expressions using `pest` (based on the [calculator
example](https://pest.rs/book/examples/calculator.html) for infix
operation precedence).
- Unrecognized operations are still put inside an opaque `SympyOp`, but
that should be easy to change in the future.
- I tested multiple sympy expressions to ensure we are able to parse
them, but unrecognized ones will also fallback to `SympyOp`.
This is still missing routing parameters to hugr inputs (#628), as it is
blocked by CQCL/hugr#1562.
drive-by: Move the pytket parameter encoding/decoding routines to
`::serialize::pytket::param::{de,en}code`.
Closes#637.
Closes#1562.
It's a chunk of code fiddling with the hugr internals, but it is
something specific to function definitions so I think it should be ok to
have it under `FunctionBuilder`.
Needed for CQCL/tket2#628, where we may need to define new parameter inputs while the circuit is being built.
The text was updated successfully, but these errors were encountered: