Skip to main content

Model

Stores the terms of a lattice Hamiltonian and associated observables in terms of lattice coordinates and neighbourhoods.

Factories

model(const Lattice lattice) -> Model

Constructs a model containing a lattice.

Parameters

  • lattice: A lattice that is stored inside the model

Constructors

Model(const Model arg) -> Model

Copy constructor for a Model.

Parameters

  • arg: Model to be copied.

Symbols

NameDescription
=Copy constructor for Model.

Members

NameDescription
addAdd a NeighbourhoodRule to the model that can be reference when adding terms or observables.
coefficientsReturns the coefficients in the model.
latticeReturns the Lattice in the given model
measureAdd an observable to the model with a given neighbourhood_name.
mpoConverts a Model into a complex representation.
neighbourhood_rulesReturns the neighbourhood rules stored in the model as a map.
observable_to_opsumConverts an observable to an operator sum. Assumes a complex OperatorSum.
observables_to_mpoConverts Model observables into complex representations.
set_coefficientSets the named coefficient to the given value.