Expectation value API for simulators #3492
Labels
area/expectation-value
area/simulation
kind/feature-request
Describes new functionality
triage/accepted
A consensus emerged that this bug report, feature request, or other action should be worked on
Is your feature request related to a use case or problem? Please describe.
Currently, finding expectation values from a simulator in Cirq requires implementing the
SimulatesFinalState
interface and using the resulting state vector to get the expectation values. If simulators provide a more efficient way of producing expectation values, we should prefer that instead.Describe the solution you'd like
In addition to
SimulatesFinalState
,SimulatesAmplitudes
, etc., Cirq should offer aSimulatesExpectationValues
interface for simulators that generate expectation values.What is the urgency from your perspective for this issue? Is it blocking important work?
P2 - we should do it in the next couple of quarters. The current workaround is to continue using
SimulatesFinalState
, but as noted above this may be inefficient.The text was updated successfully, but these errors were encountered: