When using approximate simulation methods, it is important to inform the user of a lower bound to the final fidelity of their state. This is a float between 0 and 1. For full expressivity we would like to return the fidelity per shot, but it is also acceptable to return a single float for the whole collection: the minimum of the fidelities for all shots.
Users need to be able to access this fidelity information via BackendResult. We could either:
add a field fidelity to BackendResult that is only relevant when using approximate simulation backends, or
add an info field that holds a dict[str, Any] where the fidelity may be included as info["fidelity"].
When using approximate simulation methods, it is important to inform the user of a lower bound to the final fidelity of their state. This is a float between 0 and 1. For full expressivity we would like to return the fidelity per shot, but it is also acceptable to return a single float for the whole collection: the minimum of the fidelities for all shots.
Users need to be able to access this fidelity information via
BackendResult
. We could either:fidelity
toBackendResult
that is only relevant when using approximate simulation backends, orinfo
field that holds adict[str, Any]
where the fidelity may be included asinfo["fidelity"]
.