Deduplicate expectation value code in simulators #4209
Labels
area/expectation-value
complexity/low
introduces/modifies 1-2 concepts, should take 1-2 days max for an advanced contributor
kind/health
For CI/testing/release process/refactoring/technical debt items
skill-level/advanced
One or more of the areas need a solid understanding.
Milestone
After PR #3979, we will have separate but near-identical implementations of
simulate_expectation_values_sweep
defined insparse_simulator
anddensity_matrix_simulator
. it should be possible to deduplicate this code by moving it into a mutual parent class of these simulators - eitherSimulatorBase
or a new subclass of it.The text was updated successfully, but these errors were encountered: