fqe.gso_hamiltonian.GSOHamiltonian

The GSO Hamiltonian is characterized by having no distinct structure

Inherits From: Hamiltonian

in the elements beyond being hermitian. An example is a relativistic molecular Hamiltonian.

tensors Variable length tuple containg between one and four numpy.arrays of increasing rank. The tensors contain the n-body hamiltonian elements. Tensors up to the highest order must be included even if the lower terms are full of zeros.
e_0 Scalar potential associated with the Hamiltonian.

Methods

calc_diag_transform

View source

Performs a unitary digaonlizing transformation of the one body term and returns that transformation.

conserve_number

View source

Returns True if the Hamiltonian is number conserving, else False.

diag_values

View source

Returns the diagonal values packed into a single dimension.

diagonal

View source

Returns True if the Hamiltonian is diagonal, else False.

diagonal_coulomb

View source

Returns True if the Hamiltonian is diagonal coloumb, else False.

dim

View source

Returns the orbital dimension of the Hamiltonian arrays.

e_0

View source

Returns the scalar potential of the Hamiltonian.

iht

View source

Returns the matrices of the Hamiltonian prepared for time evolution.

quadratic

View source

Returns whether or not the Hamiltonian is quadratic.

rank

View source

This returns the rank of the largest tensor.

tensor

View source

Returns a single nbody tensor based on its rank.

Args
rank Indexes the single nbody tensor to return.

tensors

View source

Returns all tensors in order of their rank.

transform

View source

Tranforms the one body term using the provided matrix.

Args
trans Unitary transformation.

Returns
Transformed one-body Hamiltonian as a numpy.ndarray.