GroundStateSolver#

class GroundStateSolver(qubit_mapper)[source]#

Bases: ABC

The ground state calculation interface.

প্যারামিটার:

qubit_mapper (QubitMapper) -- The QubitMapper instance that converts a second quantized operator to qubit operators.

Attributes

qubit_mapper#

Returns the qubit mapper.

solver#

Returns the solver.

Methods

abstract 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.

প্যারামিটার:
রিটার্নস:

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

রিটার্ন টাইপ:

tuple[qiskit.quantum_info.operators.symplectic.sparse_pauli_op.SparsePauliOp, dict[str, qiskit.quantum_info.operators.symplectic.sparse_pauli_op.SparsePauliOp] | None]

abstract solve(problem, aux_operators=None)[source]#

Compute the ground state energy of the molecule that was supplied via the driver.

প্যারামিটার:
রিটার্নস:

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

রিটার্ন টাইপ:

EigenstateResult

abstract supports_aux_operators()[source]#

Returns whether the eigensolver supports auxiliary operators.

রিটার্ন টাইপ:

bool