Skip to main content

set_site

Method of RealMPS.

set_site(integer index, const RealTensor tensor) -> RealMPS

Set the site tensor at the specified index.

Parameters

  • index: Site index (0-based, supports negative indexing).
  • tensor: The 3-dimensional tensor to assign to this site.

Returns

Reference to the modified MPS.