Function Pennylane::LightningKokkos::Util::generateBitPatterns¶
Defined in File UtilKokkos.hpp
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
api/function_UtilKokkos_8hpp_1a11ec32e589063d065fd3b369ea550386
Download Python script
Download Notebook
View on GitHub