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