Skip to main content

set_site

Method of ComplexMPS.

set_site(integer index, const ComplexTensor tensor) -> ComplexMPS

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.