Skip to main content

get_site

Method of ComplexMPS.

get_site(integer index) -> ComplexTensor

Get a copy of the site tensor at the specified index.

Parameters

  • index: Site index (0-based, supports negative indexing).

Returns

A copy of the 3-dimensional tensor at the specified site.