TensorNetworkClassLibary The code uses tncontract for tensor contractions. Other dependencies are SciPy, Matplotlib, and Scikit-learn. The Class structure as follows: