cuquantum.cutensornet.accessor_configure¶
- cuquantum.cutensornet.accessor_configure(intptr_t handle, intptr_t accessor, int attr, intptr_t buf, size_t size)[source]¶
Configures computation of the tensor network state accessor.
- Parameters
handle (intptr_t) – The library handle.
accessor (intptr_t) – The tensor network state accessor computation handle.
attr (AccessorAttribute) – The attribute to configure.
buf (intptr_t) – The pointer address (as Python
int
) for storing the returned attribute value.size (size_t) – The size of
buf
(in bytes).
Note
To compute
size
, use the itemsize of the corresponding data type, which can be queried usingaccessor_get_attribute_dtype()
.See also