Template Function Pennylane::Algorithms::applyOperationsAdj

Function Documentation

template<typename T>
inline void Pennylane::Algorithms::applyOperationsAdj(std::vector<StateVectorManagedCPU<T>> &states, const OpsData<T> &operations, size_t op_idx)

OpenMP accelerated application of adjoint operations to statevectors.

Parameters
  • states – Vector of all statevectors; 1 per observable

  • operations – Operations list.

  • op_idx – Index of given operation within operations list to take adjoint of.