operator_spectrum_configure#
-
cuquantum.
bindings. cudensitymat. operator_spectrum_configure( - intptr_t handle,
- intptr_t spectrum,
- int attribute,
- intptr_t attribute_value,
- size_t attribute_value_size,
Configures the eigen-spectrum computation object.
- Parameters:
handle (intptr_t) – Library handle.
spectrum (intptr_t) – Eigen-spectrum computation object.
attribute (OperatorSpectrumConfig) – Attribute to configure.
attribute_value (intptr_t) – CPU-accessible pointer to the attribute value.
attribute_value_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_operator_spectrum_config_dtype()
.