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
is really lambda abstraction and while if can be used directly as circuit by "piping" with : into it, it diagrams as an abstraction still.
If we try to convert/instantiate it to a circuit on _ inputs it's less than straightforward.
//just2no = just2A(_,_); // this has 3 inputs!
just2 = route(2,3,(1,1),(1,2),(2,3)) : just2A(_,_); /// ok, but manually routed
This diagrams as a circuit now.
Is there a way to get the 2nd result without the manual routing expression? Automatic routing with <: doesn't work here because we're not duplicating an exact multiple of the inputs.
I mean in general for an arbitrary lambda expression. Here it's trivial to write just by itself, knowing how many outputs to cut.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
is really lambda abstraction and while if can be used directly as circuit by "piping" with
:into it, it diagrams as an abstraction still.If we try to convert/instantiate it to a circuit on
_inputs it's less than straightforward.This diagrams as a circuit now.
Is there a way to get the 2nd result without the manual routing expression? Automatic routing with
<:doesn't work here because we're not duplicating an exact multiple of the inputs.I mean in general for an arbitrary lambda expression. Here it's trivial to write just by itself, knowing how many outputs to cut.
Beta Was this translation helpful? Give feedback.
All reactions