result

guppylang.std.builtins.result(tag: str, value)

Report an output with the given tag and value.

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

Parameters:
  • tag – The tag of the output. Must be a string literal.

  • value – The value of the output. Currently supported value types are int,

  • nat

  • float

  • bool

  • types. (and arrays of those)