LatticeModel#
- class LatticeModel(lattice)[source]#
Bases:
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()[source]#
Return the interaction matrix
- রিটার্নস:
The interaction matrix.
- রিটার্ন টাইপ:
- 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.- রিটার্ন টাইপ: