Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.chemistry.algorithms.BOPESSampler

class BOPESSampler(gss, tolerance=0.001, bootstrap=True, num_bootstrap=None, extrapolator=None)

GitHub

Class to evaluate the Born-Oppenheimer Potential Energy Surface (BOPES).

Parameters

  • gss (GroundStateSolver) – GroundStateSolver
  • tolerance (float) – Tolerance desired for minimum energy.
  • bootstrap (bool) – Whether to warm-start the solution of variational minimum eigensolvers.
  • num_bootstrap (Optional[int]) – Number of previous points for extrapolation and bootstrapping. If None and a list of extrapolators is defined, the first two points will be used for bootstrapping. If no extrapolator is defined and bootstrap is True, all previous points will be used for bootstrapping.
  • extrapolator (Optional[Extrapolator]) – Extrapolator objects that define space/window and method to extrapolate variational parameters.

Raises

AquaError – If num_boostrap is an integer smaller than 2, or if num_boostrap is larger than 2 and the extrapolator is not an instance of WindowExtrapolator.

__init__

__init__(gss, tolerance=0.001, bootstrap=True, num_bootstrap=None, extrapolator=None)

Parameters

  • gss (GroundStateSolver) – GroundStateSolver
  • tolerance (float) – Tolerance desired for minimum energy.
  • bootstrap (bool) – Whether to warm-start the solution of variational minimum eigensolvers.
  • num_bootstrap (Optional[int]) – Number of previous points for extrapolation and bootstrapping. If None and a list of extrapolators is defined, the first two points will be used for bootstrapping. If no extrapolator is defined and bootstrap is True, all previous points will be used for bootstrapping.
  • extrapolator (Optional[Extrapolator]) – Extrapolator objects that define space/window and method to extrapolate variational parameters.

Raises

AquaError – If num_boostrap is an integer smaller than 2, or if num_boostrap is larger than 2 and the extrapolator is not an instance of WindowExtrapolator.


Methods

__init__(gss[, tolerance, bootstrap, …])type gssGroundStateSolver
sample(driver, points)Run the sampler at the given points, potentially with repetitions.

sample

sample(driver, points)

Run the sampler at the given points, potentially with repetitions.

Parameters

  • driver (BaseDriver) – BaseDriver specific for the problem. The driver should be based on a Molecule object that has perturbations to be varied.
  • points (List[float]) – The points along the degrees of freedom to evaluate.

Return type

BOPESSamplerResult

Returns

BOPES Sampler Result

Raises

AquaError – if the driver does not have a molecule specified.

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