guppylang
guppylang copied to clipboard
Transversal overloads of builtin quantum operations
Overload single qubit operations in guppylang.std.quantum to accept arrays of qubit. Same for measurment and discarding
Before:
for i in range(n):
h(qs[i])
for q in qs:
discard(q)
After:
h(qs)
discard(qs)
More radical proposal: Every single argument function should automatically map over arrays?