full_ed(operator, *, compute_eigenvectors=False)¶
Computes all eigenvalues and, optionally, eigenvectors of a Hermitian operator by full diagonalization.
Either w or the tuple (w, v) depending on whether compute_eigenvectors is True.
Test for 1D Ising chain with 8 sites.
>>> import netket as nk >>> hi = nk.hilbert.Spin(s=1/2)**8 >>> hamiltonian = nk.operator.Ising(hi, h=1.0, graph=nk.graph.Chain(8)) >>> w = nk.exact.full_ed(hamiltonian) >>> w.shape (256,)