SyTen

◆ build_two_site_environment()

Tensor< 4 > syten::MPS::build_two_site_environment ( Tensor< 2 > const &  r_cont,
Tensor< 2 > const &  l_cont,
Tensor< 3 > const &  local_left,
Tensor< 3 > const &  local_right 
)

Combines two rank-2 overlap environment tensors and a two rank-3 MPS tensors into an environment tensor.

The first leg of left is connected to the left leg of left_site while the first leg of right is connected to the right leg of right_site. left_site and right_site are assumed to be in MPS ordering. The left left of right_site and the right leg of left_site are connected, with index ordering as follows:

[ ]--2 1 3 4--[ ]
[ l_cont ] | | [ r_cont ]
[ ]----[ left_site ]--[ right_site ]---[ ]

References syten::MPS::State::lIdx, syten::MPS::State::rIdx, and syten::MPS::State::uIdx.

Referenced by orthogonalise_variational_two_site(), and syten::MPS::State::truncateVariational().

+ Here is the caller graph for this function: