netqasm.lang.subroutine¶
NetQASM subroutine definitions.
This module contains the Subroutine class which represents a static (not being executed) NetQASM subroutine.
-
class
netqasm.lang.subroutine.
Subroutine
(netqasm_version, app_id, commands)¶ Bases:
object
A
Subroutine
object represents a subroutine consisting of valid instructions, i.e. objects deriving fromNetQASMInstruction
.Subroutine
s are executed byExecutor
s.- Parameters
netqasm_version (
tuple
) –app_id (
int
) –commands (
List
[NetQASMInstruction
]) –
-
netqasm_version
: tuple¶
-
app_id
: int¶
-
commands
: List[netqasm.lang.instr.base.NetQASMInstruction]¶
-
property
cstructs
¶