result

guppylang.std.platform.result(tag: str, value)[source]

Report a result with the given tag and value.

This is the primary way to report results from the program back to the user. On Quantinuum systems a single shot execution will return a list of pairs of (tag, value).

Args:

tag: The tag of the result. Must be a string literal value: The value of the result. Currently supported value types are int, nat, float, and bool.