pauli_expansion_view_prepare_trace_with_expansion_view_backward_diff#
-
cuquantum.
bindings. cupauliprop. pauli_expansion_view_prepare_trace_with_expansion_view_backward_diff( - intptr_t handle,
- intptr_t view1,
- intptr_t view2,
- int64_t max_workspace_size,
- intptr_t workspace,
Updates the given workspace descriptor in preparation for backward differentiation of 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.
- Returns:
int64_t: Required size (in bytes) of the X and Z bits output buffer for
cotangentExpansion1.int64_t: Required size (in bytes) of the coefficients output buffer for
cotangentExpansion1.int64_t: Required size (in bytes) of the X and Z bits output buffer for
cotangentExpansion2.int64_t: Required size (in bytes) of the coefficients output buffer for
cotangentExpansion2.
- Return type:
A 4-tuple containing