operator_compute_action#

cuquantum.bindings.cudensitymat.operator_compute_action(
intptr_t handle,
intptr_t superoperator,
double time,
int64_t batch_size,
int32_t num_params,
intptr_t params,
intptr_t state_in,
intptr_t state_out,
intptr_t workspace,
intptr_t stream,
)[source]#

Computes the action of the operator on a given input quantum state, accumulating the result in the output quantum state (accumulative action).

Parameters:
  • handle (intptr_t) – Library handle.

  • superoperator (intptr_t) – Operator.

  • time (double) – Time value.

  • batch_size (int64_t) – Batch size (>=1).

  • num_params (int32_t) – Number of variable parameters defined by the user.

  • params (intptr_t) – GPU-accessible pointer to an F-order 2d-array of user-defined real parameter values: params[num_params, batch_size].

  • state_in (intptr_t) – Input quantum state (or a batch of input quantum states).

  • state_out (intptr_t) – Updated resulting quantum state which accumulates operator action on the input quantum state.

  • workspace (intptr_t) – Allocated workspace descriptor.

  • stream (intptr_t) – CUDA stream.