cuquantum.cutensornet.state_get_attribute_dtype¶
- cuquantum.cutensornet.state_get_attribute_dtype(int attr)[source]¶
Get the Python data type of the corresponding state attribute.
- Parameters
attr (StateAttribute) – The attribute to query. The enum CUTENSORNET_STATE_MPS_SVD_CONFIG_ALGO is not supported, the dtype of which can be queried by
tensor_svd_algo_params_get_dtype().- Returns
The data type of the queried attribute. The returned dtype is always a valid NumPy dtype object.
Note
This API has no C counterpart and is a convenient helper for allocating memory for
state_configure().