117 lines
6.4 KiB
Plaintext
117 lines
6.4 KiB
Plaintext
---
|
||
title: EnergySurface1DSpline
|
||
description: API reference for qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline
|
||
---
|
||
|
||
# qiskit.chemistry.algorithms.pes\_samplers.EnergySurface1DSpline
|
||
|
||
<Class id="qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/chemistry/algorithms/pes_samplers/potentials/energy_surface_spline.py" signature="EnergySurface1DSpline" modifiers="class">
|
||
A simple cubic spline interpolation for the potential energy surface.
|
||
|
||
A spline interpolation method for data fitting.
|
||
|
||
This allows for fitting BOPES sampler results or potential energy surfaces.
|
||
|
||
### \_\_init\_\_
|
||
|
||
<Function id="qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.__init__" signature="__init__()">
|
||
A spline interpolation method for data fitting.
|
||
|
||
This allows for fitting BOPES sampler results or potential energy surfaces.
|
||
</Function>
|
||
|
||
## Methods
|
||
|
||
| | |
|
||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
|
||
| [`__init__`](#qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.__init__ "qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.__init__")() | A spline interpolation method for data fitting. |
|
||
| [`eval`](#qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.eval "qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.eval")(x) | After fitting the data to the fit function, predict the energy at a point x. |
|
||
| [`fit`](#qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.fit "qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.fit")(xdata, ydata\[, initial\_vals, bounds\_list]) | Fits surface to data. |
|
||
| [`get_equilibrium_geometry`](#qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.get_equilibrium_geometry "qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.get_equilibrium_geometry")(\[scaling]) | Returns the geometry for the minimal energy (scaled by ‘scaling’) Default units (scaling=1.0) are Angstroms. |
|
||
| [`get_minimal_energy`](#qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.get_minimal_energy "qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.get_minimal_energy")(\[scaling]) | Returns the value of the minimal energy (scaled by ‘scaling’) Default units (scaling=1.0) are J/mol. |
|
||
| [`get_trust_region`](#qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.get_trust_region "qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.get_trust_region")() | Get the trust region. |
|
||
|
||
### eval
|
||
|
||
<Function id="qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.eval" signature="eval(x)">
|
||
After fitting the data to the fit function, predict the energy at a point x.
|
||
|
||
**Parameters**
|
||
|
||
**x** (`float`) – Value to be evaluated
|
||
|
||
**Return type**
|
||
|
||
`float`
|
||
|
||
**Returns**
|
||
|
||
Value of surface fit in point x.
|
||
</Function>
|
||
|
||
### fit
|
||
|
||
<Function id="qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.fit" signature="fit(xdata, ydata, initial_vals=None, bounds_list=None)">
|
||
Fits surface to data.
|
||
|
||
**Parameters**
|
||
|
||
* **xdata** (`List`\[`float`]) – x data to be fitted
|
||
* **ydata** (`List`\[`float`]) – y data to be fitted
|
||
* **initial\_vals** (`Optional`\[`List`\[`float`]]) – Initial values for fit parameters. None for default. Order of parameters is d\_e, alpha, r\_0 and m\_shift (see fit\_function implementation)
|
||
* **bounds\_list** (`Optional`\[`Tuple`\[`List`\[`float`], `List`\[`float`]]]) – Bounds for the fit parameters. None for default. Order of parameters is d\_e, alpha, r\_0 and m\_shift (see fit\_function implementation)
|
||
|
||
**Return type**
|
||
|
||
`None`
|
||
</Function>
|
||
|
||
### get\_equilibrium\_geometry
|
||
|
||
<Function id="qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.get_equilibrium_geometry" signature="get_equilibrium_geometry(scaling=1.0)">
|
||
Returns the geometry for the minimal energy (scaled by ‘scaling’) Default units (scaling=1.0) are Angstroms. Scale by 1E-10 to get meters. :type scaling: `float` :param scaling: scaling factor
|
||
|
||
**Return type**
|
||
|
||
`float`
|
||
|
||
**Returns**
|
||
|
||
equilibrium geometry
|
||
</Function>
|
||
|
||
### get\_minimal\_energy
|
||
|
||
<Function id="qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.get_minimal_energy" signature="get_minimal_energy(scaling=1.0)">
|
||
Returns the value of the minimal energy (scaled by ‘scaling’) Default units (scaling=1.0) are J/mol. Scale appropriately for Hartrees. :type scaling: `float` :param scaling: scaling factor
|
||
|
||
**Return type**
|
||
|
||
`float`
|
||
|
||
**Returns**
|
||
|
||
minimum energy
|
||
</Function>
|
||
|
||
### get\_trust\_region
|
||
|
||
<Function id="qiskit.chemistry.algorithms.pes_samplers.EnergySurface1DSpline.get_trust_region" signature="get_trust_region()">
|
||
Get the trust region.
|
||
|
||
Returns the bounds of the region (in space) where the energy surface implementation can be trusted. When doing spline interpolation, for example, that would be the region where data is interpolated (vs. extrapolated) from the arguments of fit().
|
||
|
||
**Return type**
|
||
|
||
`Tuple`\[`float`, `float`]
|
||
|
||
**Returns**
|
||
|
||
The trust region between bounds.
|
||
</Function>
|
||
</Class>
|
||
|