This is a tutorial on tensor network states algorithm prepared for the Summer school held in Changsha in July 2021. The tutorial in written in jupyter notebook and julia. Part of the materials of this tutorials are provided by Xu Xiansong.