operator_prepare_action_backward_diff#

cuquantum.bindings.cudensitymat.operator_prepare_action_backward_diff(
intptr_t handle,
intptr_t superoperator,
intptr_t state_in,
intptr_t state_out_adj,
int compute_type,
size_t workspace_size_limit,
intptr_t workspace,
intptr_t stream,
)[source]#

Prepares backward differentiation of the operator action on a quantum state.

Parameters:
  • handle (intptr_t) – Library handle.

  • superoperator (intptr_t) – Operator.

  • state_in (intptr_t) – Representative input quantum state on which the operator is supposed to act. The actual quantum state acted on during computation may be different, but it has to be of the same shape, kind, and factorization structure (topology, bond dimensions, etc).

  • state_out_adj (intptr_t) – Representative adjoint of the output quantum state produced by the action of the operator on the input quantum state. The actual output quantum state acted on during computation may be different, but it has to be of the same shape, kind, and factorization structure (topology, bond dimensions, etc).

  • compute_type (ComputeType) – Desired compute type.

  • workspace_size_limit (size_t) – Workspace buffer size limit (bytes).

  • workspace (intptr_t) – Empty workspace descriptor on entrance. The workspace size required for the computation will be set on exit.

  • stream (intptr_t) – CUDA stream.