Function Pennylane::LightningGPU::MPI::tgtsVecProcess¶
Defined in File MPI_helpers.hpp
Function Documentation¶
-
inline void Pennylane::LightningGPU::MPI::tgtsVecProcess(const std::size_t numLocalQubits, const std::size_t numTotalQubits, const std::vector<std::vector<std::size_t>> &tgts, std::vector<std::vector<std::size_t>> &localTgts, std::vector<std::size_t> &tgtsSwapStatus, std::vector<std::vector<int2>> &tgtswirePairs)¶
Create wire pairs for bit index swap and transform all target wires to local ones for a vector of targets.
- Parameters
numLocalQubits – Number of local qubits.
numTotalQubits – Number of total qubits.
tgts – Vector of target wires vector.
localTgts – Vector of local target wires vector.
tgtsSwapStatus – Vector of swap status.
tgtswirePairs – Vector of wire pairs for MPI operation.
api/function_MPI__helpers_8hpp_1a4d41b68a5e79fbe968902212efebb20e
Download Python script
Download Notebook
View on GitHub