qiskit-documentation/docs/api/qiskit/0.25/qiskit.chemistry.core.Molec...

162 lines
11 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: MolecularChemistryResult
description: API reference for qiskit.chemistry.core.MolecularChemistryResult
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.chemistry.core.MolecularChemistryResult
---
# qiskit.chemistry.core.MolecularChemistryResult
<Class id="qiskit.chemistry.core.MolecularChemistryResult" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/chemistry/core/chemistry_operator.py" signature="MolecularChemistryResult(a_dict=None)" modifiers="class">
Molecular chemistry Result
Energies are in Hartree and dipole moments in A.U unless otherwise stated.
### \_\_init\_\_
<Function id="qiskit.chemistry.core.MolecularChemistryResult.__init__" signature="__init__(a_dict=None)">
Initialize self. See help(type(self)) for accurate signature.
</Function>
## Methods
| | |
| ---------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`__init__`](#qiskit.chemistry.core.MolecularChemistryResult.__init__ "qiskit.chemistry.core.MolecularChemistryResult.__init__")(\[a\_dict]) | Initialize self. |
| [`clear`](#qiskit.chemistry.core.MolecularChemistryResult.clear "qiskit.chemistry.core.MolecularChemistryResult.clear")() | **rtype**`None` |
| [`combine`](#qiskit.chemistry.core.MolecularChemistryResult.combine "qiskit.chemistry.core.MolecularChemistryResult.combine")(result) | Any property from the argument that exists in the receiver is updated. |
| `copy`() | |
| `fromkeys`(iterable\[, value]) | |
| [`get`](#qiskit.chemistry.core.MolecularChemistryResult.get "qiskit.chemistry.core.MolecularChemistryResult.get")(k\[,d]) | |
| [`items`](#qiskit.chemistry.core.MolecularChemistryResult.items "qiskit.chemistry.core.MolecularChemistryResult.items")() | |
| [`keys`](#qiskit.chemistry.core.MolecularChemistryResult.keys "qiskit.chemistry.core.MolecularChemistryResult.keys")() | |
| [`pop`](#qiskit.chemistry.core.MolecularChemistryResult.pop "qiskit.chemistry.core.MolecularChemistryResult.pop")(key\[, default]) | If key is not found, d is returned if given, otherwise KeyError is raised. |
| [`popitem`](#qiskit.chemistry.core.MolecularChemistryResult.popitem "qiskit.chemistry.core.MolecularChemistryResult.popitem")() | as a 2-tuple; but raise KeyError if D is empty. |
| [`setdefault`](#qiskit.chemistry.core.MolecularChemistryResult.setdefault "qiskit.chemistry.core.MolecularChemistryResult.setdefault")(k\[,d]) | |
| [`update`](#qiskit.chemistry.core.MolecularChemistryResult.update "qiskit.chemistry.core.MolecularChemistryResult.update")(\*args, \*\*kwargs) | If E present and has a .keys() method, does: for k in E: D\[k] = E\[k] If E present and lacks .keys() method, does: for (k, v) in E: D\[k] = v In either case, this is followed by: for k, v in F.items(): D\[k] = v |
| [`values`](#qiskit.chemistry.core.MolecularChemistryResult.values "qiskit.chemistry.core.MolecularChemistryResult.values")() | |
## Attributes
| | |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| [`algorithm_result`](#qiskit.chemistry.core.MolecularChemistryResult.algorithm_result "qiskit.chemistry.core.MolecularChemistryResult.algorithm_result") | Returns raw algorithm result |
| [`hartree_fock_energy`](#qiskit.chemistry.core.MolecularChemistryResult.hartree_fock_energy "qiskit.chemistry.core.MolecularChemistryResult.hartree_fock_energy") | Returns Hartree-Fock energy |
| [`nuclear_dipole_moment`](#qiskit.chemistry.core.MolecularChemistryResult.nuclear_dipole_moment "qiskit.chemistry.core.MolecularChemistryResult.nuclear_dipole_moment") | Returns nuclear dipole moment X,Y,Z components in A.U when available from driver |
| [`nuclear_repulsion_energy`](#qiskit.chemistry.core.MolecularChemistryResult.nuclear_repulsion_energy "qiskit.chemistry.core.MolecularChemistryResult.nuclear_repulsion_energy") | Returns nuclear repulsion energy when available from driver |
### algorithm\_result
<Attribute id="qiskit.chemistry.core.MolecularChemistryResult.algorithm_result">
Returns raw algorithm result
**Return type**
`AlgorithmResult`
</Attribute>
### clear
<Function id="qiskit.chemistry.core.MolecularChemistryResult.clear" signature="clear()">
**Return type**
`None`
</Function>
### combine
<Function id="qiskit.chemistry.core.MolecularChemistryResult.combine" signature="combine(result)">
Any property from the argument that exists in the receiver is updated. :type result: `AlgorithmResult` :param result: Argument result with properties to be set.
**Raises**
**TypeError** Argument is None
**Return type**
`None`
</Function>
### get
<Function id="qiskit.chemistry.core.MolecularChemistryResult.get" signature="get(k[, d]) → D[k] if k in D, else d. d defaults to None." />
### hartree\_fock\_energy
<Attribute id="qiskit.chemistry.core.MolecularChemistryResult.hartree_fock_energy">
Returns Hartree-Fock energy
**Return type**
`float`
</Attribute>
### items
<Function id="qiskit.chemistry.core.MolecularChemistryResult.items" signature="items() → a set-like object providing a view on Ds items" />
### keys
<Function id="qiskit.chemistry.core.MolecularChemistryResult.keys" signature="keys() → a set-like object providing a view on Ds keys" />
### nuclear\_dipole\_moment
<Attribute id="qiskit.chemistry.core.MolecularChemistryResult.nuclear_dipole_moment">
Returns nuclear dipole moment X,Y,Z components in A.U when available from driver
**Return type**
`Optional`\[`Tuple`\[`Optional`\[`float`], `Optional`\[`float`], `Optional`\[`float`]]]
</Attribute>
### nuclear\_repulsion\_energy
<Attribute id="qiskit.chemistry.core.MolecularChemistryResult.nuclear_repulsion_energy">
Returns nuclear repulsion energy when available from driver
**Return type**
`Optional`\[`float`]
</Attribute>
### pop
<Function id="qiskit.chemistry.core.MolecularChemistryResult.pop" signature="pop(key, default=None)">
If key is not found, d is returned if given, otherwise KeyError is raised.
**Return type**
`object`
</Function>
### popitem
<Function id="qiskit.chemistry.core.MolecularChemistryResult.popitem" signature="popitem()">
as a 2-tuple; but raise KeyError if D is empty.
**Return type**
`Tuple`\[`object`, `object`]
</Function>
### setdefault
<Function id="qiskit.chemistry.core.MolecularChemistryResult.setdefault" signature="setdefault(k[, d]) → D.get(k,d), also set D[k]=d if k not in D" />
### update
<Function id="qiskit.chemistry.core.MolecularChemistryResult.update" signature="update(*args, **kwargs)">
If E present and has a .keys() method, does: for k in E: D\[k] = E\[k] If E present and lacks .keys() method, does: for (k, v) in E: D\[k] = v In either case, this is followed by: for k, v in F.items(): D\[k] = v
**Return type**
`None`
</Function>
### values
<Function id="qiskit.chemistry.core.MolecularChemistryResult.values" signature="values() → an object providing a view on Ds values" />
</Class>