get_full_wavefunction
full name: tenpy.algorithms.exact_diag.get_full_wavefunction
parent module:
tenpy.algorithms.exact_diag
type: function
- 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 havepsi.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