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:
objectA
Subroutineobject represents a subroutine consisting of valid instructions, i.e. objects deriving fromNetQASMInstruction.Subroutines are executed byExecutors.- 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¶