Function Pennylane::Gates::getIndicesAfterExclusion¶
Defined in File GateUtil.hpp
Function Documentation¶
-
auto Pennylane::Gates::getIndicesAfterExclusion(const std::vector<size_t> &indicesToExclude, size_t num_qubits) -> std::vector<size_t>¶
Get indices of statevector data not participating in application operation.
- Parameters
indicesToExclude – Indices to exclude from this call.
num_qubits – Total number of qubits for statevector.
- Returns
std::vector<size_t>
api/function_namespacePennylane_1_1Gates_1a4cfabdc4179d279d2c1b38df83d2c9e7
Download Python script
Download Notebook
View on GitHub