quantum_operator_attach_cotangent_buffer#

cuquantum.bindings.cupauliprop.quantum_operator_attach_cotangent_buffer(
intptr_t handle,
intptr_t oper,
intptr_t cotangent_buffer,
int64_t cotangent_buffer_size,
int data_type,
int location,
)[source]#

Attaches a cotangent buffer to a quantum operator.

Parameters:
  • handle (intptr_t) – Library handle.

  • oper (intptr_t) – Quantum operator.

  • cotangent_buffer (intptr_t) – Pointer to user-owned cotangent buffer.

  • cotangent_buffer_size (int64_t) – Size of the buffer in bytes.

  • data_type (int) – Data type of elements in the cotangent buffer.

  • location (Memspace) – Memory location of the buffer (host or device).