fqe.hamiltonians.hamiltonian.Hamiltonian

Abstract class to mediate the functions of Hamiltonian with the

emulator.

DiagonalHamiltonian, DiagonalCoulombHamiltonian, GSOHamiltonian, etc? - Since the structure of the Hamiltonian may contain symmetries which can greatly speed up operations that act up on the object, defining unique classes for each case can be a key towards making the code more efficient.

e_0 The scalar part of 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

Return the matrices of the Hamiltonian prepared for time evolution.

Args
time The time step.

quadratic

View source

Returns True if the Hamiltonian is quadratic, else False.

rank

View source

Returns the rank of the largest tensor.

tensors

View source

Returns all tensors in order of their rank.

transform

View source

Tranform the one body term using the provided matrix.

Args
trans Unitary transformation.

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