Template Function Pennylane::Algorithms::applyOperations¶
Defined in File AlgUtil.hpp
Function Documentation¶
-
template<typename T>
inline void Pennylane::Algorithms::applyOperations(StateVectorManagedCPU<T> &state, const OpsData<T> &operations, bool adj = false)¶ Utility method to apply all operations from given
OpsData<T>
object toStateVectorManagedCPU<T>
- Parameters
state – Statevector to be updated.
operations – Operations to apply.
adj – Take the adjoint of the given operations.
api/function_AlgUtil_8hpp_1af282248fb27864764e0ff13532519c99
Download Python script
Download Notebook
View on GitHub