pauli_expansion_get_storage_buffer#
-
cuquantum.
bindings. cupauliprop. pauli_expansion_get_storage_buffer( - intptr_t handle,
- intptr_t pauli_expansion,
Gets access to the storage of a Pauli operator expansion.
- Parameters:
handle (intptr_t) – Library handle.
pauli_expansion (intptr_t) – Pauli operator expansion.
- Returns:
intptr_t: Pointer to a user-owned memory buffer used by the Pauli operator expansion for storing the X and Z bits for each Pauli operator term.
int64_t: Size (in bytes) of the memory buffer for X and Z bits.
intptr_t: Pointer to a user-owned memory buffer used by the Pauli operator expansion for storing the coefficients for each Pauli operator term.
int64_t: Size (in bytes) of the memory buffer for storing the coefficients.
int64_t: Current number of Pauli operator terms in the Pauli operator expansion (first
numTermsterms define the current Pauli operator expansion).int: Storage location of the Pauli operator expansion (whether it is on the host or device).
- Return type:
A 6-tuple containing