We're celebrating World Quantum Day 2022! Join us

fqe.sso_hamiltonian.SSOHamiltonian

The SSO Hamiltonian is characterized by having distinct alpha and beta

Inherits From: Hamiltonian

terms and no alpha/beta mixing blocks. An example is a part of non-relativistic molecular Hamiltonians in the trotterized algorithms.

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

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.

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.