qiskit-documentation/docs/api/qiskit/0.32/qiskit.chemistry.drivers.Ga...

115 lines
3.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: GaussianLogResult
description: API reference for qiskit.chemistry.drivers.GaussianLogResult
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.chemistry.drivers.GaussianLogResult
---
# GaussianLogResult
<Class id="qiskit.chemistry.drivers.GaussianLogResult" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/chemistry/drivers/gaussiand/gaussian_log_result.py" signature="GaussianLogResult(log)" modifiers="class">
Bases: `object`
Result for Gaussian™ 16 log driver.
This result allows access to selected data from the log file that is not available via the use Gaussian 16 interfacing code when using the MatrixElement file. Since this parses the text output it is subject to the format of the log file.
**Parameters**
**log** (`Union`\[`str`, `List`\[`str`]]) The log contents conforming to Gaussian™ 16 format either as a single string containing new line characters, or as a list of strings. If the single string has no new line characters it is treated a file name and the file contents will be read (a valid log file would be multiple lines).
**Raises**
**ValueError** Invalid Input
## Methods
### get\_watson\_hamiltonian
<Function id="qiskit.chemistry.drivers.GaussianLogResult.get_watson_hamiltonian" signature="GaussianLogResult.get_watson_hamiltonian(normalize=True)">
Get the force constants as a WatsonHamiltonian
**Parameters**
**normalize** (`bool`) Whether to normalize the factors or not
**Return type**
`WatsonHamiltonian`
**Returns**
A WatsonHamiltonian
</Function>
## Attributes
### a\_to\_h\_numbering
<Attribute id="qiskit.chemistry.drivers.GaussianLogResult.a_to_h_numbering">
A to H numbering mapping.
**Return type**
`Dict`\[`str`, `int`]
**Returns**
Dictionary mapping string A numbering such as 1, 3a etc from forces modes to H integer numbering
</Attribute>
### cubic\_force\_constants
<Attribute id="qiskit.chemistry.drivers.GaussianLogResult.cubic_force_constants">
Cubic force constants. (3 indices, 3 values)
**Return type**
`List`\[`Tuple`\[`str`, `str`, `str`, `float`, `float`, `float`]]
**Returns**
A list of tuples each with 3 index values and 3 constant values. An empty list is returned if no such data is present in the log.
</Attribute>
### log
<Attribute id="qiskit.chemistry.drivers.GaussianLogResult.log">
The complete Gaussian log in the form of a list of strings.
**Return type**
`List`\[`str`]
</Attribute>
### quadratic\_force\_constants
<Attribute id="qiskit.chemistry.drivers.GaussianLogResult.quadratic_force_constants">
Quadratic force constants. (2 indices, 3 values)
**Return type**
`List`\[`Tuple`\[`str`, `str`, `float`, `float`, `float`]]
**Returns**
A list of tuples each with 2 index values and 3 constant values. An empty list is returned if no such data is present in the log.
</Attribute>
### quartic\_force\_constants
<Attribute id="qiskit.chemistry.drivers.GaussianLogResult.quartic_force_constants">
Quartic force constants. (4 indices, 3 values)
**Return type**
`List`\[`Tuple`\[`str`, `str`, `str`, `str`, `float`, `float`, `float`]]
**Returns**
A list of tuples each with 4 index values and 3 constant values. An empty list is returned if no such data is present in the log.
</Attribute>
</Class>