Skip to content

bloqade.analog.builder.pragmas.AddArgs

← Module overview

classAddArgssource

bloqade.analog.builder.pragmas.AddArgs

class AddArgs

methodargssource

bloqade.analog.builder.pragmas.AddArgs.args

def args(args_list: List[Union[str, Variable]]) -> Args

Add arguments to the current program.

Parameters

NameTypeDescription
args_listList[Union[str, Variable]]List of argument names or Variable objects to be added.

Returns

ArgsArgs: A new instance of the Args class with the specified arguments.

Raises

TypeDescription
TypeErrorIf args_list contains invalid types.

Note

This method is useful for deferring the value assignment of certain variables to runtime.

source