SyTen

◆ insertSwap()

template<Rank rank>
Tensor< rank > syten::insertSwap ( Tensor< rank in,
Index const  a,
Index const  b,
bool const  conjugate = false 
)

Inserts a swap gate on the two specified tensor legs, which need to point in the same direction.

If conjugate is true, the input tensor will be conjugated.

References conj(), minus_on_swap(), and std::move().

Referenced by syten::IPEPS::dot(), syten::IPEPS::Horz2CTM::expectation_value(), syten::IPEPS::Vert2CTM::expectation_value(), syten::IPEPS::horizontal_simple_update(), syten::IPEPS::horz2_norm(), syten::IPEPS::FullCTM::init(), syten::IPEPS::inv_qr_to_back_r(), syten::IPEPS::inv_qr_to_front(), syten::IPEPS::inv_qr_to_right(), syten::IPEPS::qr_to_back_r(), syten::IPEPS::qr_to_front(), syten::IPEPS::qr_to_right(), syten::IPEPS::vert2_norm(), syten::IPEPS::vert2r_norm(), syten::IPEPS::vertical_simple_update(), and syten::IPEPS::vertical_simple_update_remover().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: