Function Pennylane::Util::generateBitsPatterns¶
Defined in File Util.hpp
Function Documentation¶
-
inline auto Pennylane::Util::generateBitsPatterns(const std::vector<std::size_t> &qubitIndices, std::size_t num_qubits) -> std::vector<std::size_t>¶
Generate indices for applying operations.
This method will return the statevector indices participating in the application of a gate to a given set of qubits.
- Parameters
qubitIndices – Indices of the qubits to apply operations.
num_qubits – Number of qubits in register.
- Returns
std::vector<std::size_t>
api/function_Util_8hpp_1a12b8e64b1ae3a4c47972f14ab63b3aa6
Download Python script
Download Notebook
View on GitHub