Function Pennylane::Gates::generateBitPatterns¶
Defined in File GateUtil.hpp
Function Documentation¶
-
auto Pennylane::Gates::generateBitPatterns(const std::vector<size_t> &qubitIndices, size_t num_qubits) -> std::vector<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<size_t>
api/function_namespacePennylane_1_1Gates_1ae05334e8f81a606224381f6daa2702c1
Download Python script
Download Notebook
View on GitHub