Template Function Pennylane::Algorithms::applyOperationsAdj¶
Defined in File AlgUtil.hpp
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.
api/function_AlgUtil_8hpp_1a0da2beb2fab07831ec223c7d0f6230b5
Download Python script
Download Notebook
View on GitHub