Function Pennylane::LightningGPU::Util::compute_local_index¶
Defined in File cuStateVec_helpers.hpp
Function Documentation¶
-
inline std::size_t Pennylane::LightningGPU::Util::compute_local_index(const std::size_t index, const std::size_t num_qubits)¶
Compute the local index from a given index in multi-gpu workflow.
- Parameters
index – Global index of the target element.
num_qubits – Number of wires within the local devices.
- Returns
local_index Local index of the target element.
api/function_cuStateVec__helpers_8hpp_1a54037da379455d906d93d80f36eea426
Download Python script
Download Notebook
View on GitHub