Function Pennylane::LightningQubit::Gates::generateBitPatterns¶
Defined in File GateIndices.hpp
Function Documentation¶
-
auto Pennylane::LightningQubit::Gates::generateBitPatterns(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_namespacePennylane_1_1LightningQubit_1_1Gates_1ab0ecfad177a5c3ab7919da7a4d6b0c47
Download Python script
Download Notebook
View on GitHub