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

143 lines
4.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

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
---
# 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">
Bases: `qiskit.aqua.algorithms.algorithm_result.AlgorithmResult`
Molecular chemistry Result
Energies are in Hartree and dipole moments in A.U unless otherwise stated.
## Methods
### clear
<Function id="qiskit.chemistry.core.MolecularChemistryResult.clear" signature="MolecularChemistryResult.clear()">
**Return type**
`None`
</Function>
### combine
<Function id="qiskit.chemistry.core.MolecularChemistryResult.combine" signature="MolecularChemistryResult.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>
### copy
<Function id="qiskit.chemistry.core.MolecularChemistryResult.copy" signature="MolecularChemistryResult.copy()" />
### fromkeys
<Function id="qiskit.chemistry.core.MolecularChemistryResult.fromkeys" signature="MolecularChemistryResult.fromkeys(iterable, value=None)" modifiers="classmethod" />
### get
<Function id="qiskit.chemistry.core.MolecularChemistryResult.get" signature="MolecularChemistryResult.get(k[, d]) → D[k] if k in D, else d. d defaults to None." />
### items
<Function id="qiskit.chemistry.core.MolecularChemistryResult.items" signature="MolecularChemistryResult.items() → a set-like object providing a view on Ds items" />
### keys
<Function id="qiskit.chemistry.core.MolecularChemistryResult.keys" signature="MolecularChemistryResult.keys() → a set-like object providing a view on Ds keys" />
### pop
<Function id="qiskit.chemistry.core.MolecularChemistryResult.pop" signature="MolecularChemistryResult.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="MolecularChemistryResult.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="MolecularChemistryResult.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="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
**Return type**
`None`
</Function>
### values
<Function id="qiskit.chemistry.core.MolecularChemistryResult.values" signature="MolecularChemistryResult.values() → an object providing a view on Ds values" />
## Attributes
### algorithm\_result
<Attribute id="qiskit.chemistry.core.MolecularChemistryResult.algorithm_result">
Returns raw algorithm result
**Return type**
`AlgorithmResult`
</Attribute>
### hartree\_fock\_energy
<Attribute id="qiskit.chemistry.core.MolecularChemistryResult.hartree_fock_energy">
Returns Hartree-Fock energy
**Return type**
`float`
</Attribute>
### 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>
</Class>