Defines Accelerator::execute(buffer, baseState, rotationBasis) and implements it for qsim. This is more efficient because avoids calling Observable::observe() multiple times, effectively calling it only once.
Updated VQE to work with measurement basis rotations, which is enabled via the cache-measurement-basis key in the VQE parameters, and take a bool as value.
This PR:
Accelerator::execute(buffer, baseState, rotationBasis)
and implements it for qsim. This is more efficient because avoids callingObservable::observe()
multiple times, effectively calling it only once.cache-measurement-basis
key in the VQE parameters, and take abool
as value.