Function Pennylane::LightningGPU::MPI::createWirePairs(int, int, std::vector<int>&, std::vector<int>&)

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.