qiskit-documentation/docs/api/qiskit/0.29/qiskit.chemistry.algorithms...

98 lines
3.8 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: GroundStateEigensolver
description: API reference for qiskit.chemistry.algorithms.GroundStateEigensolver
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.chemistry.algorithms.GroundStateEigensolver
---
# GroundStateEigensolver
<Class id="qiskit.chemistry.algorithms.GroundStateEigensolver" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/chemistry/algorithms/ground_state_solvers/ground_state_eigensolver.py" signature="GroundStateEigensolver(transformation, solver)" modifiers="class">
Bases: `qiskit.chemistry.algorithms.ground_state_solvers.ground_state_solver.GroundStateSolver`
Ground state computation using a minimum eigensolver.
**Parameters**
* **transformation** (`Transformation`) Qubit Operator Transformation
* **solver** (`Union`\[`MinimumEigensolver`, `MinimumEigensolverFactory`]) Minimum Eigensolver or MESFactory object, e.g. the VQEUCCSDFactory.
## Methods
### evaluate\_operators
<Function id="qiskit.chemistry.algorithms.GroundStateEigensolver.evaluate_operators" signature="GroundStateEigensolver.evaluate_operators(state, operators)">
Evaluates additional operators at the given state.
**Parameters**
* **state** (`Union`\[`str`, `dict`, `Result`, `list`, `ndarray`, `Statevector`, `QuantumCircuit`, `Instruction`, `OperatorBase`]) any kind of input that can be used to specify a state. See also `StateFn` for more details.
* **operators** (`Union`\[`WeightedPauliOperator`, `OperatorBase`, `list`, `dict`]) either a single, list or dictionary of `WeightedPauliOperator``s or any kind of operator implementing the ``OperatorBase`.
**Return type**
`Union`\[`float`, `None`, `List`\[`Optional`\[`float`]], `Dict`\[`str`, `List`\[`Optional`\[`float`]]]]
**Returns**
The expectation value of the given operator(s). The return type will be identical to the format of the provided operators.
</Function>
### returns\_groundstate
<Function id="qiskit.chemistry.algorithms.GroundStateEigensolver.returns_groundstate" signature="GroundStateEigensolver.returns_groundstate()">
Whether the eigensolver returns the ground state or only ground state energy.
**Return type**
`bool`
</Function>
### solve
<Function id="qiskit.chemistry.algorithms.GroundStateEigensolver.solve" signature="GroundStateEigensolver.solve(driver, aux_operators=None)">
Compute Ground State properties.
**Parameters**
* **driver** (`BaseDriver`) a chemistry driver object which defines the chemical problem that is to be solved by this calculation.
* **aux\_operators** (`Union`\[`List`\[`FermionicOperator`], `List`\[`BosonicOperator`], `None`]) Additional auxiliary operators to evaluate at the ground state. Depending on whether a fermionic or bosonic system is solved, the type of the operators must be `FermionicOperator` or `BosonicOperator`, respectively.
**Raises**
**NotImplementedError** If an operator in `aux_operators` is not of type `FermionicOperator`.
**Return type**
`Union`\[`ElectronicStructureResult`, `VibronicStructureResult`]
**Returns**
An eigenstate result. Depending on the transformation this can be an electronic structure or bosonic result.
</Function>
## Attributes
### solver
<Attribute id="qiskit.chemistry.algorithms.GroundStateEigensolver.solver">
Returns the minimum eigensolver or factory.
**Return type**
`Union`\[`MinimumEigensolver`, `MinimumEigensolverFactory`]
</Attribute>
### transformation
<Attribute id="qiskit.chemistry.algorithms.GroundStateEigensolver.transformation">
Returns the transformation used to obtain a qubit operator from the molecule.
**Return type**
`Transformation`
</Attribute>
</Class>