Function Pennylane::Util::revWireParity(const std::vector<std::size_t>&)

Function Documentation

inline auto Pennylane::Util::revWireParity(const std::vector<std::size_t> &wire_list) -> std::vector<std::size_t>

Return integers with leading/trailing ones at positions specified by a list of target wires.

Parameters

wire_list – Target wires.