A vertical two-site environment consisting of six tensors surrounding those on two neighbouring sites. More...
#include <environment.h>
Public Member Functions | |
SDef | expectation_value (State const &psi, ATwoOp const &op, bool assume_norm_one=false) const |
Calculates the expectation value \( \langle \psi | \hat o |
\psi \rangle / \langle \psi | \psi \rangle \) requiring that op acts on the two focus sites of this . More... | |
SRDef | norm (State const &psi) const |
Calculates the norm of the state with respect to the current two focus sites, i.e. completes the double layer and returns the square root of the result. More... | |
SRDef | normSqd (State const &psi) const |
Calculates the squared norm of the state with respect to the current two focus sites, i.e. completes the double layer. More... | |
template<typename Archive > | |
void | serialize (Archive &ar, const unsigned int in_version) |
Boost archiving. More... | |
Vert2CTM ()=default | |
Default ctor, does nothing. More... | |
Vert2CTM (FullCTM const &ctm, State const &psi, Coord const bot, Coord const top, Truncation const &trunc) | |
Constructs the environment from the supplied full CTM ctm and the state psi on sites left and right . More... | |
Vert2CTM (Vec< Cached< Tensor< 3 > > > const &left_rung, Vec< Basis > const &left_rung_bases, Vec< Cached< Tensor< 3 > > > const &right_rung, Vec< Basis > const &right_rung_bases, Tensor< 2 > const &tlc, Tensor< 2 > const &trc, Tensor< 2 > const &blc, Tensor< 2 > const &brc, Tensor< 3 > const &top_boundary, Basis const &top_boundary_basis, Tensor< 3 > const &bot_boundary, Basis const &bot_boundary_basis, State const &psi, Coord const bot, Coord const top) | |
Constructs the vertical 2-site environment from a pre-supplied left and right rung corresponding directly to those rungs neighbouring the environment rung as well as the corresponding bases, CTM corners, state and coordinates. More... | |
Public Attributes | |
Coord | bsite {0,0} |
bottom focus site, to left (in fermionic order) of top focus site More... | |
Cached< Tensor< 3 > > | cb |
bottom corner More... | |
Basis | cbb |
bottom corner single layer basis More... | |
Cached< Tensor< 3 > > | ct |
top corner More... | |
Basis | ctb |
top corner single-layer basis More... | |
Cached< Tensor< 3 > > | lb |
left bottom tensor More... | |
Basis | lbb |
left bottom single layer basis More... | |
Cached< Tensor< 3 > > | lt |
left top tensor More... | |
Basis | ltb |
left top single-layer basis More... | |
Cached< Tensor< 3 > > | rb |
right bottom tensor More... | |
Basis | rbb |
right bottom single layer basis More... | |
Cached< Tensor< 3 > > | rt |
right top tensor More... | |
Basis | rtb |
right top single layer basis More... | |
Coord | tsite {0,0} |
top focus site More... | |
Static Public Attributes | |
static constexpr unsigned int | version = 1 |
current version, bump if you change one of the data structures here More... | |
Private Member Functions | |
void | setup (Vec< Cached< Tensor< 3 > > > const &left_rung, Vec< Basis > const &left_rung_bases, Vec< Cached< Tensor< 3 > > > const &right_rung, Vec< Basis > const &right_rung_bases, Tensor< 2 > const &tlc, Tensor< 2 > const &trc, Tensor< 2 > const &blc, Tensor< 2 > const &brc, Tensor< 3 > const &top_boundary, Basis const &top_boundary_basis, Tensor< 3 > const &bot_boundary, Basis const &bot_boundary_basis, State const &psi, Coord const bot, Coord const top) |
Helper function to do the actual setup. More... | |
A vertical two-site environment consisting of six tensors surrounding those on two neighbouring sites.
The remover tensor is contained in the top corner, but needs to be inserted if either of the two focus sites is the [0,0]
site.
Tensors are arranged as: