We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The code snippet below is incorrect. The mistake is that in the last line we need to do module1.compile() rather than guppy.compile_module().
module1.compile()
guppy.compile_module()
from guppylang import guppy, GuppyModule from guppylang.std.quantum import qubit, h module1 = GuppyModule(name="module1") module1.load(qubit, h) @guppy(module1) def generate_plus() -> qubit: q = qubit() return h(q) guppy.compile_module()
From the error message its not clear how to correct this
--------------------------------------------------------------------------- GuppyError Traceback (most recent call last) ......... GuppyError: VarNotDefinedError(span=<ast.Name object at 0x114beab90>, _parent=None, children=[], var='qubit')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The code snippet below is incorrect. The mistake is that in the last line we need to do
module1.compile()
rather thanguppy.compile_module()
.From the error message its not clear how to correct this
The text was updated successfully, but these errors were encountered: