Function Pennylane::LightningGPU::MPI::tgtsVecProcess

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.