SyTen

◆ connect_local_operators()

Tensor< 6 > syten::MPS::TEBD::connect_local_operators ( Tensor< 4 > const &  op1,
Tensor< 4 > const &  op2 
)

Connects two singe site operators (rank 4 tensors) to a "double-site" operator (rank 6 tensor):

6 5
V V V V
<[A]< <[B]< -> 1<[A]-[B]<4
V V V V
2 3
Parameters
[in]op1first (left) tensor to be connected
[in]op2second (right) tensor to be connected
Returns
connected tensor

References syten::MPS::Operator::dIdx, syten::MPS::Operator::lIdx, syten::MPS::Operator::rIdx, and syten::MPS::Operator::uIdx.