Note
This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.
MemoryToCounts¶
- class MemoryToCounts(validate=True)[source]¶
A data action that takes discriminated data and transforms it into a counts dict.
This node is intended to be used after the
DiscriminatorNode
node. It will convert the classified memory into a list of count dictionaries wrapped in a numpy array.Create new node.
- Parameters:
validate (
bool
) – If set to False the DataAction will not validate its input.
Methods
MemoryToCounts.__call__
(data)Call the data action of this node on the data.
MemoryToCounts.__call__
(data)Call the data action of this node on the data.