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 an operator and a NeighbourhoodRule to the model
coefficientsReturns the coefficients in the model.
declare_labelDeclare a label to be registered later 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 real representations.
set_coefficientSets the named coefficient to the given value.
unresolved_labelsReturns a list of the unresolved coefficients in the model.