qib.operator.molecular_hamiltonian.MolecularHamiltonian¶
- class qib.operator.molecular_hamiltonian.MolecularHamiltonian(field: Field, c: float, tkin, vint, symm: MolecularHamiltonianSymmetry)[source]¶
Bases:
AbstractOperatorMolecular Hamiltonian in second quantization formulation, using physicists’ convention for the interaction term (note ordering of k and ell):
\[H = c + \sum_{i,j} t_{i,j} a^{\dagger}_i a_j + \frac{1}{2} \sum_{i,j,k,\ell} v_{i,j,k,\ell} a^{\dagger}_i a^{\dagger}_j a_{\ell} a_k\]Methods
Represent the Hamiltonian as FieldOperator.
Generate the (sparse) matrix representation of the Hamiltonian.
List of fields the Hamiltonian acts on.
Whether the Hamiltonian is Hermitian.
Whether the Hamiltonian is unitary.
Attributes
Number of underlying lattice sites.
Number of orbitals (same as number of underlying lattice sites).
- __init__(field: Field, c: float, tkin, vint, symm: MolecularHamiltonianSymmetry)[source]¶
Initialize the Hamiltonian by its kinetic and interaction term coefficients.