estimate_expectation
fireopal.estimate_expectation(circuits, shot_count, credentials, backend_name, observables, parameters=None, run_options=None)
Estimate the expectation value of the given observables for a batch of circuits. The precision of the estimation is determined by the shot_count.
Parameters
- circuits (str or list [ str ]) – Quantum circuit(s) in the form of QASM string(s). You can use Qiskit to generate these strings.
- shot_count (int) – Number of bitstrings that are sampled from the final quantum state.
- credentials (Credentials) – The credentials for running circuits. See the credentials module for functions to generate credentials for your desired provider.
- backend_name (str) – The backend device name that should be used to run circuits.
- observables (dict [ str , float ] or list [ tuple [ str , float ] ] or list [ str ] or str) – The observables for which to compute the expectation value.
- parameters (dict [ str , float ] or list [ dict [ str , float ] ] or None , optional) – The list of parameters for the circuit(s), if they’re parametric. Defaults to None.
- run_options (RunOptions or None , optional) – Additional options for circuit execution. See the run_options module for classes to store run options for your desired provider. Defaults to None
Returns
FireOpalJob – A job object for querying the results.