pauli_expansion_get_storage_buffer#

cuquantum.bindings.cupauliprop.pauli_expansion_get_storage_buffer(
intptr_t handle,
intptr_t pauli_expansion,
) → tuple[source]#

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: Number of terms in the calling process’s local

    segment (its share of the full expansion, when distributed, or the entire expansion in single-process execution). The first num_local_terms entries in both returned storage buffers define that segment.

  • int: Storage location of the Pauli operator expansion (whether

    it is on the host or device).

Return type:

A 6-tuple containing