nkdsl.UpdateProgram¶
- class UpdateProgram(ops=<factory>)[source]¶
Ordered immutable sequence of site-update operations.
- Parameters:
ops (tuple)
Methods
__init__([ops])append(op)Returns a new program with one appended operation.
extend(other)Returns a new program with another program appended.
has_invalidate()Returns whether this program contains any invalidate_branch op.
Attributes
op_countReturns number of update operations.