Template Function Pennylane::Algorithms::applyOperationAdj

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

Parameters
  • state – Statevector to be updated.

  • operations – Operations to apply.

  • op_idx – Adjointed operation index to apply.