Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.chemistry.core.ChemistryOperator

class ChemistryOperator

GitHub

Base class for ChemistryOperator.

__init__

abstract __init__()

Initialize self. See help(type(self)) for accurate signature.


Methods

__init__()Initialize self.
process_algorithm_result(algo_result)Takes the algorithm result and processes it as required, e.g.
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_inforeturns molecule info

molecule_info

returns molecule info

process_algorithm_result

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

run

abstract run(qmolecule)

Convert the qmolecule, according to the ChemistryOperator, into an Operator that can be given to a QuantumAlgorithm

Parameters

qmolecule (QMolecule) – from a chemistry driver

Returns

(qubit_op, aux_ops)

Return type

Tuple

Was this page helpful?
Report a bug or request content on GitHub.