Function Pennylane::LightningQubit::Gates::getIndicesAfterExclusion

Function Documentation

auto Pennylane::LightningQubit::Gates::getIndicesAfterExclusion(const std::vector<std::size_t> &indicesToExclude, std::size_t num_qubits) -> std::vector<std::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<std::size_t>