https://medium.com/@monocosmo77/working-with-matrix-product-states-part3-artificial-intelligence-1b77010cfc18