operator_action_configure#
-
cuquantum.
bindings. cudensitymat. operator_action_configure( - intptr_t handle,
- intptr_t operator_action,
- int attribute,
- intptr_t attribute_value,
- size_t attribute_size,
Configures the operator action object with a configuration attribute.
- Parameters:
handle (intptr_t) – Library handle.
operator_action (intptr_t) – Operator action object.
attribute (StateFittingAttribute) – Attribute to set.
attribute_value (intptr_t) – Pointer to the attribute value.
attribute_size (size_t) – Size of the attribute value in bytes.
Note
To compute the attribute size, use the itemsize of the corresponding data type, which can be queried using
get_state_fitting_attribute_dtype().