cuquantum.cutensornet.expectation_get_attribute_dtype¶
- cuquantum.cutensornet.expectation_get_attribute_dtype(int attr)[source]¶
Get the Python data type of the corresponding expectation attribute.
- Parameters
attr (ExpectationAttribute) – The attribute to query.
- 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
expectation_configure()
.