https://medium.com/@monocosmo77/working-with-matrix-product-states-part2-artificial-intelligence-2df40e574ae2