Function Pennylane::LightningGPU::MPI::createWirePairs(int, int, std::vector<int>&, std::vector<int>&)¶
Defined in File MPI_helpers.hpp
Function Documentation¶
-
inline std::vector<int2> Pennylane::LightningGPU::MPI::createWirePairs(int numLocalQubits, int numTotalQubits, std::vector<int> &tgts, std::vector<int> &statusWires)¶
Create wire pairs for bit index swap and transform all target wires to local ones.
- Parameters
numLocalQubits – Number of local qubits.
numTotalQubits – Number of total qubits.
tgts – Vector of target wires.
- Returns
wirePairs Wire pairs to be passed to SV bit index swap worker.
api/function_MPI__helpers_8hpp_1a536e2dbaa7443edd79405514d951b942
Download Python script
Download Notebook
View on GitHub