CQCL / guppylang

Pythonic quantum-classical programming language
https://pypi.org/project/guppylang
Apache License 2.0
33 stars 3 forks source link

builtin function for swapping two inout arguments #652

Closed ss2165 closed 4 days ago

ss2165 commented 4 days ago

def swap(x: L, y: L) -> None where L = guppy.type_var("L", linear=True)