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
| Name | Description |
|---|---|
= | Copy constructor for Model. |
Members
| Name | Description |
|---|---|
| add | Add a NeighbourhoodRule to the model that can be reference when adding terms or observables. |
| coefficients | Returns the coefficients in the model. |
| lattice | Returns the Lattice in the given model |
| measure | Add an observable to the model with a given neighbourhood_name. |
| mpo | Converts a Model into a complex representation. |
| neighbourhood_rules | Returns the neighbourhood rules stored in the model as a map. |
| observable_to_opsum | Converts an observable to an operator sum. Assumes a complex OperatorSum. |
| observables_to_mpo | Converts Model observables into complex representations. |
| set_coefficient | Sets the named coefficient to the given value. |