cuquantum.bindings.cudensitymat.operator_compute_action

cuquantum.bindings.cudensitymat.operator_compute_action(intptr_t handle, intptr_t superoperator, double time, int32_t num_params, 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.

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

  • params (object) –

    Variable parameters defined by the user. It can be:

    • an int as the pointer address to the array, or

    • a Python sequence of float.

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