LatticeModel#

class LatticeModel(lattice)[source]#

Bases: Hamiltonian

The lattice model.

Parameters:

lattice (Lattice) – Lattice on which the model is defined.

Attributes

lattice#

Return the input lattice.

Note, that this returns the internal lattice object without copying it. Thus, changing the returned lattice object, will affect the internal lattice stored in this Hamiltonian.

register_length#

The size of the operator generated by the second_q_op() method.

Methods

interaction_matrix()[source]#

Return the interaction matrix

Returns:

The interaction matrix.

Return type:

ndarray

interpret(result)#

Interprets an EigenstateResult in this hamiltonians context.

Parameters:

result (qiskit_nature.second_q.problems.EigenstateResult) – the result to add meaning to.

abstract second_q_op()#

Generates the actual operator represented by this Hamiltonian.

Returns:

The SparseLabelOp form of this Hamiltonian.

Return type:

SparseLabelOp