Created by: gcarleo
This PR introduces the first beta version for NetKet 2.0.
netket
executable does not exist anymoreNetKet
classes, with the exception of some internals, that don't need python exposure.Tutorials/
folder. That's why moving to a python library is a desirable goal, improving the user experience and opening the way to a number of applications previously hard or impossible to performTo install the latest development version do
pip install .
The directory /Tutorials/
contains pynotebook tutorials. More will be added.
Several example codes showcasing a specific application are contained in /Examples
.
Version 2.0 removes all "glue" classes, such as Graph
,Hamiltonian
etc. The corresponding abstract interfaces remain, with little changes.
We introduce the concept of Operator
, which generalizes Hamiltonian
,Observable
etc. Hamiltonian
and Observable
disappear.
We introduce a LocalOperator
, and all associated overloaded operations, for example
hi=nk.Spin(s=0.5,graph=g)
X=[[0,1],[1,0]]
o=nk.LocalOperator(hi,X,[0])*(nk.LocalOperator(hi,X,[1]))
defines a quantum operator X(0)*X(1), automatically performing the tensor product. Other operations such as product times a scalar and addition of local operators are also supported.