Template Function Pennylane::Algorithms::applyObservable¶
Defined in File AlgUtil.hpp
Function Documentation¶
-
template<typename T>
inline void Pennylane::Algorithms::applyObservable(StateVectorManagedCPU<T> &state, Observable<T> &observable)¶ Utility method to apply a given operations from given
ObsDatum<T>
object toStateVectorManagedCPU<T>
- Parameters
state – Statevector to be updated.
observable – Observable to apply.
api/function_AlgUtil_8hpp_1a602e266f23b0d3b7922d1c7c8dbc8879
Download Python script
Download Notebook
View on GitHub