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 from NetQASMInstruction.

Subroutine s are executed by Executor s.

Parameters
netqasm_version: tuple
app_id: int
commands: List[netqasm.lang.instr.base.NetQASMInstruction]
property cstructs