LatticeModel#
- class LatticeModel(lattice)[fuente]#
Bases:
Hamiltonian
The lattice model.
- Parámetros:
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()[fuente]#
Return the interaction matrix
- Devuelve:
The interaction matrix.
- Tipo del valor devuelto:
- interpret(result)#
Interprets an
EigenstateResult
in this hamiltonians context.- Parámetros:
result (EigenstateResult) – the result to add meaning to.
- abstract second_q_op()#
Generates the actual operator represented by this Hamiltonian.
- Devuelve:
The
SparseLabelOp
form of this Hamiltonian.- Tipo del valor devuelto: