Function Pennylane::LightningKokkos::Util::generateBitPatterns

Function Documentation

inline auto Pennylane::LightningKokkos::Util::generateBitPatterns(const std::vector<std::size_t> &wires, const std::size_t num_qubits) -> std::vector<std::size_t>

Generate bit patterns for multi-qubit operations TODO: parallelize with LK.

Parameters
  • wires – List of target wires.

  • num_qubits

Returns

std::vector List of indices containing control bit patterns