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
Right now calling GuppyModule.compile throws an error if the module has already been compiled.
In some cases we may want to use a module multiple times, for example when generating multiple circuits from it.
Currently the work around is to manually keep the HUGR around, but it would be more straightforward if we can keep a reference to compiled hugr in the module.
@guppy(module)defmy_func():
pass@guppy(module)defmy_other_func():
passmake_circuit(module, "my_func")
make_circuit(module, "my_other_func") # This cannot access the hugr anymore
The text was updated successfully, but these errors were encountered:
Right now calling
GuppyModule.compile
throws an error if the module has already been compiled.In some cases we may want to use a module multiple times, for example when generating multiple circuits from it.
Currently the work around is to manually keep the HUGR around, but it would be more straightforward if we can keep a reference to compiled hugr in the module.
The text was updated successfully, but these errors were encountered: