Template Function Pennylane::Algorithms::applyOperationAdj¶
Defined in File AlgUtil.hpp
Function Documentation¶
-
template<typename T>
inline void Pennylane::Algorithms::applyOperationAdj(StateVectorManagedCPU<T> &state, const OpsData<T> &operations, size_t op_idx)¶ Utility method to apply the adjoint indexed operation from
OpsData<T>
object toStateVectorManagedCPU<T>
.- Parameters
state – Statevector to be updated.
operations – Operations to apply.
op_idx – Adjointed operation index to apply.
api/function_AlgUtil_8hpp_1ac3f001d299cdc2c1aac57c9050d8eb52
Download Python script
Download Notebook
View on GitHub