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

class WatsonHamiltonian(data, num_modes)

GitHub

Watson Hamiltonian class containing the results of a driver’s anharmonic calculation

Parameters

  • data (List[List[Union[int, float]]]) – Hamiltonian matrix elements
  • num_modes (int) – number of modes

__init__

__init__(data, num_modes)

Parameters

  • data (List[List[Union[int, float]]]) – Hamiltonian matrix elements
  • num_modes (int) – number of modes

Methods

__init__(data, num_modes)type dataList[List[Union[int, float]]]

Attributes

dataReturns the matrix elements of the Hamiltonian
num_modesReturns the number of modes

data

Returns the matrix elements of the Hamiltonian

Return type

List[List[Union[int, float]]]

num_modes

Returns the number of modes

Return type

int

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