SyTen
util.h File Reference

Utility helpers for PEPS. More...

#include "inc/util/scalars.h"
+ Include dependency graph for util.h:
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  syten
 Syten namespace.
 
namespace  syten::IPEPS
 IPEPS-related functionality and tools.
 

Typedefs

using syten::IPEPS::Coord = std::array< int, 2 >
 Coordinate type used for square IPEPS lattices. More...
 

Functions

Index syten::IPEPS::c2i (Coord coord, int const width, int const depth)
 Given a coordinate, a unit cell width, and a unit cell depth, calculates the linear offset of the (potentially re-mapped) site in the unit cell. More...
 
Index syten::IPEPS::dist (Coord const &a, Coord const &b)
 Returns the Manhattan distance between sites a and b. More...
 
bool syten::IPEPS::is_internal (Coord const &left, Coord const &right, int const width, int const depth)
 Returns true if an operator acting on sites [left,right] on a unit cell of size [width,depth] is internal to that unit cell. More...
 
bool syten::IPEPS::isLeft (Coord const &f, Coord const &s)
 Returns true if site f is to the left of site s. More...
 

Detailed Description

Utility helpers for PEPS.