83 lines
4.6 KiB
Plaintext
83 lines
4.6 KiB
Plaintext
---
|
||
title: ChemistryOperator
|
||
description: API reference for qiskit.chemistry.core.ChemistryOperator
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.chemistry.core.ChemistryOperator
|
||
---
|
||
|
||
<span id="qiskit-chemistry-core-chemistryoperator" />
|
||
|
||
# qiskit.chemistry.core.ChemistryOperator
|
||
|
||
<Class id="qiskit.chemistry.core.ChemistryOperator" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.8/qiskit/chemistry/core/chemistry_operator.py" signature="ChemistryOperator" modifiers="class">
|
||
Base class for ChemistryOperator.
|
||
|
||
### \_\_init\_\_
|
||
|
||
<Function id="qiskit.chemistry.core.ChemistryOperator.__init__" signature="__init__()" modifiers="abstract">
|
||
Initialize self. See help(type(self)) for accurate signature.
|
||
</Function>
|
||
|
||
## Methods
|
||
|
||
| | |
|
||
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
|
||
| [`__init__`](#qiskit.chemistry.core.ChemistryOperator.__init__ "qiskit.chemistry.core.ChemistryOperator.__init__")() | Initialize self. |
|
||
| [`process_algorithm_result`](#qiskit.chemistry.core.ChemistryOperator.process_algorithm_result "qiskit.chemistry.core.ChemistryOperator.process_algorithm_result")(algo\_result) | Takes the algorithm result and processes it as required, e.g. |
|
||
| [`run`](#qiskit.chemistry.core.ChemistryOperator.run "qiskit.chemistry.core.ChemistryOperator.run")(qmolecule) | Convert the qmolecule, according to the ChemistryOperator, into an Operator that can be given to a QuantumAlgorithm |
|
||
|
||
## Attributes
|
||
|
||
| | |
|
||
| --------------------------------------------------------------------------------------------------------------------------------- | --------------------- |
|
||
| `INFO_NUM_ORBITALS` | |
|
||
| `INFO_NUM_PARTICLES` | |
|
||
| `INFO_TWO_QUBIT_REDUCTION` | |
|
||
| `INFO_Z2SYMMETRIES` | |
|
||
| [`molecule_info`](#qiskit.chemistry.core.ChemistryOperator.molecule_info "qiskit.chemistry.core.ChemistryOperator.molecule_info") | returns molecule info |
|
||
|
||
### molecule\_info
|
||
|
||
<Attribute id="qiskit.chemistry.core.ChemistryOperator.molecule_info">
|
||
returns molecule info
|
||
</Attribute>
|
||
|
||
### process\_algorithm\_result
|
||
|
||
<Function id="qiskit.chemistry.core.ChemistryOperator.process_algorithm_result" signature="process_algorithm_result(algo_result)">
|
||
Takes the algorithm result and processes it as required, e.g. by combination of any parts that were classically computed, for the final result.
|
||
|
||
**Parameters**
|
||
|
||
**algo\_result** (`Union`\[`dict`, `MinimumEigensolverResult`, `EigensolverResult`]) – Result from algorithm
|
||
|
||
**Return type**
|
||
|
||
`Union`\[`Tuple`\[`List`\[`str`], `dict`], `MolecularGroundStateResult`, `MolecularExcitedStatesResult`]
|
||
|
||
**Returns**
|
||
|
||
Final chemistry result computed from the algorithm result
|
||
</Function>
|
||
|
||
### run
|
||
|
||
<Function id="qiskit.chemistry.core.ChemistryOperator.run" signature="run(qmolecule)" modifiers="abstract">
|
||
Convert the qmolecule, according to the ChemistryOperator, into an Operator that can be given to a QuantumAlgorithm
|
||
|
||
**Parameters**
|
||
|
||
**qmolecule** ([*QMolecule*](qiskit.chemistry.QMolecule "qiskit.chemistry.QMolecule")) – from a chemistry driver
|
||
|
||
**Returns**
|
||
|
||
(qubit\_op, aux\_ops)
|
||
|
||
**Return type**
|
||
|
||
Tuple
|
||
</Function>
|
||
</Class>
|
||
|