Template Function Pennylane::Algorithms::applyOperations

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 to StateVectorManagedCPU<T>

Parameters
  • state – Statevector to be updated.

  • operations – Operations to apply.

  • adj – Take the adjoint of the given operations.