matrix_operator_dense_local_attach_buffer#

cuquantum.bindings.cudensitymat.matrix_operator_dense_local_attach_buffer(
intptr_t handle,
intptr_t matrix_operator,
intptr_t buffer,
size_t buffer_size,
)[source]#

Attaches a buffer to the full dense local matrix operator (either batched or non-batched).

Parameters:
  • handle (intptr_t) – Library handle.

  • matrix_operator (intptr_t) – Full dense local matrix operator (either batched or non-batched).

  • buffer (intptr_t) – GPU-accessible pointer to the matrix operator elements storage.

  • buffer_size (size_t) – Size of the memory buffer in bytes.