SyTen
syten::IPEPS::Lattice Struct Reference

An IPEPS lattice. More...

#include <lattice.h>

+ Collaboration diagram for syten::IPEPS::Lattice:

Public Member Functions

void add (std::string const &name, ProdOp op)
 Adds a ProdOp to the list of known lattice-wide operators. More...
 
void add (std::string const &name, std::tuple< std::string, std::vector< OneOp > > ops)
 Adds a OneOp operator to the list of known single-site operators. More...
 
void add (std::string const &name, SumOp op)
 Adds a SumOp to the list of known lattice-wide operators. More...
 
Index c2i (Coord const coord) const
 Translates a coordinate into a linear offset from the frontmost/leftmost site. More...
 
ATwoOp get (std::string const &name, Coord const active, Coord const secondary) const
 Returns an applied OneOp (AOneOp) acting on site active multiplied by an identity on site secondary. More...
 
AOneOp get (std::string const &name, Coord const location) const
 Returns an applied OneOp (AOneOp) acting on the specified location. More...
 
Basis const & getBasis (Coord const coord) const
 Returns the local physical basis of the specified site. More...
 
Basis const & getBasis (Index const coord) const
 Returns the local physical basis of the specified site. More...
 
char getClass (Coord const coord) const
 Returns the class (site tensor) of the specified site. More...
 
char getClass (Index const coord) const
 Returns the class (site tensor) of the specified site. More...
 
ProdOpgetProd (std::string const &name)
 Retrieves a stored ProdOp. More...
 
ProdOp const & getProd (std::string const &name) const
 Retrieves a stored ProdOp. More...
 
SumOpgetSum (std::string const &name)
 Retrieves a stored SumOp. More...
 
SumOp const & getSum (std::string const &name) const
 Retrieves a stored SumOp. More...
 
Index getType (Coord const coord) const
 Returns the type (local physical basis) of the specified site. More...
 
Index getType (Index const coord) const
 Returns the type (local physical basis) of the specified site. More...
 
 Lattice ()=default
 Default ctor. More...
 
 Lattice (std::string desc_, int width_, int depth_, Sector vacuum_, Basis basis_, std::vector< char > site_classes_)
 Standard ctor for uniform lattices. More...
 
 Lattice (std::string desc_, int width_, int depth_, Sector vacuum_, std::vector< Basis > bases_, std::vector< Index > site_types_, std::vector< char > site_classes_)
 Standard ctor for non-uniform lattices. More...
 
template<typename Archive >
void serialize (Archive &ar, const unsigned int in_version)
 Boost archiving. More...
 

Public Attributes

int depth
 backwards/vertical extend More...
 
std::string description
 brief description More...
 
std::map< std::string, std::tuple< std::string, std::vector< OneOp > > > one_operators
 Map of defined one-operators. More...
 
std::map< std::string, ProdOpprod_operators
 Map of defined ProdOp. More...
 
std::vector< char > site_class
 The class of a site specifies which tensor should be placed there. More...
 
std::vector< Indexsite_type
 The type of a site specifies its local basis. More...
 
std::map< std::string, SumOpsum_operators
 Map of defined SumOp. More...
 
std::vector< Basistype_basis
 The basis of a type specifies the basis of that type. More...
 
Basis vacuumBasis
 vacuum basis of this system (incoming) More...
 
Sector vacuumSector
 vacuum sector of this system More...
 
int width
 right/horizontal extend More...
 

Static Public Attributes

static const std::string uuid = "f7d991e0-306b-4619-b98c-6bd7433a514f"
 uuid of the lattice class for serialisation More...
 
static constexpr unsigned int version = 1
 current version, bump if you change one of the data structures here More...
 

Detailed Description

An IPEPS lattice.


The documentation for this struct was generated from the following files: