nkdsl.UpdateProgram

class UpdateProgram(ops=<factory>)[source]

Ordered immutable sequence of site-update operations.

Parameters:

ops (tuple)

ops

Ordered update-operation tuple.

Type:

tuple

__init__(ops=<factory>)
Parameters:

ops (tuple)

Return type:

None

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_count

Returns number of update operations.

ops