get_full_wavefunction

tenpy.algorithms.exact_diag.get_full_wavefunction(psi: MPS, undo_sort_charge: bool = True)[source]

Get the full wavefunction of a finite MPS as a 1D numpy array.

Parameters:
  • psi (MPS) – The input MPS. Must have psi.bc == 'finite'.

  • undo_sort_charge (bool) – If we should undo the basis permutation induced by sort_charge().

Returns:

theta – The wavefunction. Basis order is like for a Kronecker product numpy.kron() of the local basis order, see undo_sort_charge.

Return type:

1D array