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 in the Matrix Product State (MPS).

Parameters​

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

Returns​

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