exit

guppylang.std.builtins.exit(msg: str, signal: int, *args)[source]

Exit, reporting the given message and signal, and immediately exit the program. Subsequent shots may still run.

Return type is arbitrary, as this function never returns.

On Quantinuum systems only signals in the range 1<=signal<=1000 are supported.

Args:

msg: The message to display. Must be a string literal. args: Arbitrary extra inputs, will not affect the message. Only useful for consuming linear values.