Function Pennylane::LightningTensor::TNCuda::Util::create_swap_wire_pair_queue¶
Defined in File tncuda_helpers.hpp
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.
api/function_tncuda__helpers_8hpp_1a599b0255d20532b9ab1532429cc4f675
Download Python script
Download Notebook
View on GitHub