cuquantum.bindings.cudensitymat.operator_action_compute¶
- cuquantum.bindings.cudensitymat.operator_action_compute(intptr_t handle, intptr_t operator_action, double time, int32_t num_params, params, state_in, intptr_t state_out, intptr_t workspace, intptr_t stream)[source]¶
Executes the action of one or more operators constituting the aggreggate operator(s) action on the same number of input quantum states, accumulating the results into a single output quantum state.
- Parameters
handle (intptr_t) – Library handle.
operator_action (intptr_t) – Operator(s) action.
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, ora Python sequence of
float
.
state_in (object) –
Input quantum state(s). Each input quantum state can be a batch of quantum states, in general. It can be:
state_out (intptr_t) – Updated output quantum state which accumulates operator action(s) on all input quantum state(s).
workspace (intptr_t) – Allocated workspace descriptor.
stream (intptr_t) – CUDA stream.
See also