pauli_expansion_view_prepare_trace_with_expansion_view#

cuquantum.bindings.cupauliprop.pauli_expansion_view_prepare_trace_with_expansion_view(
intptr_t handle,
intptr_t view1,
intptr_t view2,
int64_t max_workspace_size,
intptr_t workspace,
)[source]#

Updates the given workspace descriptor in preparation for computing the trace of the product of two Pauli expansion views.

Parameters:
  • handle (intptr_t) – Library handle.

  • view1 (intptr_t) – First Pauli expansion view to be traced.

  • view2 (intptr_t) – Second Pauli expansion view to be traced.

  • 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.