set_site
Method of RealMPO.
set_site(integer index, const RealTensor tensor) -> RealMPO
Set the site tensor at the specified index.
Parameters
- index: Site index (0-based, supports negative indexing).
- tensor: The 4-dimensional tensor to assign to this site [left, phys_out, phys_in, right].
Returns
Reference to the modified MPO.