ExcitedStatesEigensolver#
- class ExcitedStatesEigensolver(qubit_mapper, solver)[fuente]#
Bases:
ExcitedStatesSolver
The calculation of excited states via an Eigensolver algorithm.
- Parámetros:
qubit_mapper (QubitMapper) – The
QubitMapper
to use for mapping.solver (Eigensolver) – Minimum Eigensolver object.
Attributes
- solver#
Returns the minimum eigensolver.
Methods
- get_qubit_operators(problem, aux_operators=None)[fuente]#
Gets the operator and auxiliary operators, and transforms the provided auxiliary operators using a
QubitMapper
. If the user-providedaux_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.- Parámetros:
problem (BaseProblem) – A class encoding a problem defining the qubit operators.
aux_operators (dict[str, qiskit_nature.second_q.operators.sparse_label_op.SparseLabelOp | qiskit.quantum_info.operators.symplectic.sparse_pauli_op.SparsePauliOp] | None) – Additional auxiliary operators to transform.
- Devuelve:
A tuple with the main operator (hamiltonian) and a dictionary of auxiliary default and custom operators.
- Tipo del valor devuelto:
tuple[qiskit.quantum_info.operators.symplectic.sparse_pauli_op.SparsePauliOp, dict[str, qiskit.quantum_info.operators.symplectic.sparse_pauli_op.SparsePauliOp] | None]
- solve(problem, aux_operators=None)[fuente]#
Compute Ground and Excited States properties.
- Parámetros:
problem (BaseProblem) – A class encoding a problem to be solved.
aux_operators (dict[str, qiskit_nature.second_q.operators.sparse_label_op.SparseLabelOp | qiskit.quantum_info.operators.symplectic.sparse_pauli_op.SparsePauliOp] | None) – Additional auxiliary operators to evaluate.
- Devuelve:
An interpreted
EigenstateResult
. For more information see alsointerpret()
.- Tipo del valor devuelto: