GroundStateEigensolver

class GroundStateEigensolver(qubit_mapper, solver)[source]

Bases: GroundStateSolver

Ground state computation using a minimum eigensolver.

Parameters:
  • qubit_mapper (QubitMapper) – The QubitMapper instance that converts a second quantized operator to qubit operators.

  • solver (MinimumEigensolver) – Minimum Eigensolver object.

Attributes

qubit_mapper

Returns the qubit mapper.

solver

Methods

get_qubit_operators(problem, aux_operators=None)[source]

Gets the operator and auxiliary operators, and transforms the provided auxiliary operators using a QubitMapper. If the user-provided aux_operators contain a name which clashes with an internally constructed auxiliary operator, then the corresponding internal operator will be overridden by the user-provided operator.

Parameters:
Returns:

A tuple with the main operator (hamiltonian) and a dictionary of auxiliary default and custom operators.

Return type:

tuple[SparsePauliOp, dict[str, SparsePauliOp] | None]

solve(problem, aux_operators=None)[source]

Compute Ground State properties.

Parameters:
Returns:

An interpreted EigenstateResult. For more information see also interpret().

Return type:

EigenstateResult

supports_aux_operators()[source]

Returns whether the eigensolver supports auxiliary operators.