LatticeModel#

class LatticeModel(lattice)[ソース]#

ベースクラス: Hamiltonian

The lattice model.

パラメータ:

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()[ソース]#

Return the interaction matrix

戻り値:

The interaction matrix.

戻り値の型:

ndarray

interpret(result)#

Interprets an EigenstateResult in this hamiltonians context.

パラメータ:

result (EigenstateResult) – the result to add meaning to.

abstract second_q_op()#

Generates the actual operator represented by this Hamiltonian.

戻り値:

The SparseLabelOp form of this Hamiltonian.

戻り値の型:

SparseLabelOp