Open cgranade opened 2 years ago
@ScottCarda-MS worked on the lambda lifting, do you know if there's a way to identify a lifted lambda?
The lifted lambdas are meant to not be any different from if the callables were written manually. Maybe we could add an internal attribute that we could add to all generated callables to identify them as generated?
I think such an attribute would be really helpful for interop with Python hosts, yeah. It's a bit confusing to list automatically lifted callables next to callables that the user intended to define and make available directly to other code.
Describe the bug When running a Q# code cell in a Q# notebook, operations and functions lifted from lambda expressions appear in user-facing output as part of the contents of that cell.
To Reproduce
Expected behavior The lifted lambda operation
_0f141307913a4d19bd95bb7f235180d5_ApplyWithDistributedControlled
should not appear in the user-facing output.System information
Additional context @samarsha: Do you know if there's any property set on the AST representation of lifted lambdas that could be used to filter them out from the IQ# kernel side? Thanks!