Function Pennylane::LightningTensor::TNCuda::Util::create_swap_wire_pair_queue

Function Documentation

inline auto Pennylane::LightningTensor::TNCuda::Util::create_swap_wire_pair_queue(const std::vector<std::size_t> &wires) -> std::tuple<std::vector<std::size_t>, std::vector<std::vector<std::vector<std::size_t>>>>

Create a queue of swap operations to be performed on the MPS.

Parameters

wires – The target wires.

Returns

A tuple containing the local target wires and the swap wire queue.