pauli_expansion_view_prepare_sort#

cuquantum.bindings.cupauliprop.pauli_expansion_view_prepare_sort(
intptr_t handle,
intptr_t view_in,
int sort_order,
int64_t max_workspace_size,
intptr_t workspace,
)[source]#

Updates the given workspace descriptor in preparation for sorting of the given view.

Parameters:
  • handle (intptr_t) – Library handle.

  • view_in (intptr_t) – Pauli expansion view to be sorted.

  • sort_order (SortOrder) – Sort order to apply.

  • max_workspace_size (int64_t) – Maximum workspace size limit in bytes.

  • workspace (intptr_t) – Workspace descriptor to be updated with the required workspace buffer size.