Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK. Go to the latest version

Estimator

class Estimator(circuits, observables, parameters=None)

GitHub

Bases: qiskit.primitives.base_estimator.BaseEstimator

Estimator class

Creating an instance of an Estimator, or using one in a with context opens a session that holds resources until the instance is close() ed or the context is exited.

Parameters

  • circuits – quantum circuits that represent quantum states
  • observables – observables
  • parameters – parameters of quantum circuits, specifying the order in which values
  • be bound. (will) – Defaults to [circ.parameters for circ in circuits] The indexing is such that parameters[i, j] is the j-th formal parameter of circuits[i].

Raises

QiskitError – for mismatch of circuits and parameters list.


Methods

close

Estimator.close()

Close the session and free resources


Attributes

circuits

Quantum circuits that represents quantum states.

Returns

quantum circuits

observables

Observables to be estimated

Returns

observables

parameters

Parameters of quantum circuits

Returns

parameters, where parameters[i][j] is the j-th parameter of the i-th circuit.

Was this page helpful?
Report a bug or request content on GitHub.