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
Following the changes in #105, it would be nice if we could avoid gupply.load(...) calls and instead read of the imported Guppy modules from the Python environment.
fromguppyimportQubit@guppydeffoo(q: Qubit) ->Qubit:
...
guppy.compile() # Sees that `Qubit` is in scope, so automatically imports the corresponding `quantum` module
The text was updated successfully, but these errors were encountered:
Closes#133 and closes#462.
* When using implicit modules, automatically import definitions by
inspecting the `__dict__` of the containing Python module.
* Implicit modules are no longer discarded once they are compiled for
the first time.
* Updated examples to use implicit modules
BREAKING CHANGE: `guppy.take_module` renamed to `guppy.get_module` and
no longer removes the module from the state.
Following the changes in #105, it would be nice if we could avoid
gupply.load(...)
calls and instead read of the imported Guppy modules from the Python environment.The text was updated successfully, but these errors were encountered: