- netket.exact.full_ed(operator, *, compute_eigenvectors=False)[source]#
Computes all eigenvalues and, optionally, eigenvectors of a Hermitian operator by full diagonalization.
AbstractOperator) – NetKet operator to diagonalize.
bool) – Whether or not to return the eigenvectors of the operator.
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,)