cuquantum.bindings.cudensitymat.state_compute_trace¶
- cuquantum.bindings.cudensitymat.state_compute_trace(intptr_t handle, intptr_t state, intptr_t trace, intptr_t stream)[source]¶
Computes the trace(s) of the quantum state(s).
- Parameters
handle (intptr_t) – Library handle.
state (intptr_t) – Quantum state (or a batch of quantum states).
trace (intptr_t) – Pointer to the trace(s) vector storage in the GPU-accessible RAM (same data type as used by the state).
stream (intptr_t) – CUDA stream.
See also