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 may be required to extract pytket circuits from hugrs with float/rotation parameter manipulation.
We should be able to match on the to_halfturns op followed by a conditional to unwrap or panic emitted by guppy.
The general case is harder, as it may require type changing rewrites (as the Option<float> may be passed around).
The alternative to this is to track option<float> as parameters in the pytket encoder, and have a constant folding that interprets panics as undefined behaviour (so the failing branch can be ignored).
The text was updated successfully, but these errors were encountered:
This is an operation that we are able to process while encoding pytket
circuits.
We expect guppy to emit this instead of adding explicit panics to unwrap
the fallible result.
The pytket encoder should now support float wires.
Closes#630
I'll open a followup issue on guppy
This may be required to extract pytket circuits from hugrs with float/rotation parameter manipulation.
We should be able to match on the
to_halfturns
op followed by a conditional to unwrap or panic emitted by guppy.The general case is harder, as it may require type changing rewrites (as the
Option<float>
may be passed around).The alternative to this is to track
option<float>
as parameters in the pytket encoder, and have a constant folding that interprets panics as undefined behaviour (so the failing branch can be ignored).The text was updated successfully, but these errors were encountered: