concepts.dsl.tensor_state.StateObjectDistribution#

class StateObjectDistribution[source]#

Bases: StateObjectList

Methods

clone([dtype])

Attributes

array_accessor

element_type

is_qindex

dtype

The type of the value.

values

The values.

distribution

A distribution of the objects.

__init__(dtype, values, distribution)[source]#

Initialize the Value object.

Parameters:
__len__()#
__new__(**kwargs)#
clone(dtype=None)#
Parameters:

dtype (ListType | None)

Return type:

StateObjectList

property array_accessor: Sequence[int] | slice#
distribution: Any#

A distribution of the objects. Since it’s a distribution over a list, the distribution is a list of probabilities, which can be represented as a numpy array, a list, etc.

dtype: ListType#

The type of the value.

property element_type: ObjectType#
property is_qindex: bool#
values: Tuple[StateObjectReference, ...] | slice#

The values.