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
See failing test case in #1875. A json Hugr is committed to the tree there, generated from this guppy program:
from guppylang import guppy, quantum, qubit from guppylang.std.angles import angle, angles from guppylang.std.builtins import result from guppylang.std.quantum import h, measure, rz guppy.load(quantum) guppy.load(angles) @guppy def rx(q: qubit, x: angle) -> None: # Implement Rx via Rz rotation h(q) rz(q, x) h(q) @guppy def main() -> None: q = qubit() rx(q, angle(1.5)) result("1", measure(q)) if __name__ == "__main__": print(guppy.get_module().compile().package.to_json())
The text was updated successfully, but these errors were encountered:
fix: determine correct bounds of custom types (#1888)
f7eab22
Import now determines the bound of the custom type correctly. Fixes #1876.
zrho
Successfully merging a pull request may close this issue.
See failing test case in #1875. A json Hugr is committed to the tree there, generated from this guppy program:
The text was updated successfully, but these errors were encountered: