Skip to main content

matrix

Method of RealMPO.

matrix() -> RealMatrix

Convert an MPO to a full matrix representation.

danger

Dense conversion scales exponentially with the number of sites. The resulting dense operator matrix has shapes dL×dLd^{L} \times d^{L} where dd is the local physical dimension and LL the number of sites. Use only for small systems (typically L10L \leq 10 for d=2d=2).

Returns

A 2D array representing the full matrix form of the operator.