guppylang
guppylang copied to clipboard
Pythonic quantum-classical programming language
a way to decorate functions indicate that optimisation-by-rewriting shouldn't be done on a function (especially important for quantum functions). This likely needs to translate in to a reserved metadata tag...
Replaces the local `RawHugr`. https://pypi.org/project/hugr/ The `quantinuum_hugr` python package version `0.1.0a1` implements the serialization format `v1`, so it may require non-trivial changes here (and an update to the unpublished `0.3.0`...
I would like to write a guppy program such as: ``` @guppy.global(float) rot = 1.0 @guppy main() -> float: return rot ``` which compiles to a hugr containing a global...
Should make recursive circuit definitions nicer see: https://arxiv.org/abs/2311.01725
avoid needless Tag(0, MakeTuple()) calls
https://github.com/CQCL/guppylang/blob/main/examples/demo.ipynb For example, guppy.compile_module() calls are now required to get hugr