Skip to main content

get_site

Method of ComplexMPO.

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 4-dimensional tensor at the specified site.