cuquantum.bindings.cudensitymat.operator_prepare_action¶
- cuquantum.bindings.cudensitymat.operator_prepare_action(intptr_t handle, intptr_t superoperator, intptr_t state_in, intptr_t state_out, int compute_type, size_t workspace_size_limit, intptr_t workspace, intptr_t stream)[source]¶
Prepares the operator for an 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 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 (intptr_t) – Representative output quantum state produced by the action of the operator on the input quantum state. The actual 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.
See also