| In recent years,the research about quantum system has been more and more popular,especially the tensor network state which is often used in operation of quantum multibody system.Along with the development of this field,some tools used to build quantum system model have gradually entered our research.Among them,ALPS is the most commonly used modeling tool,which provides great convenience for the establishment of quantum system model.However,ALPS still has some inconveniences in the practical use.In order to make the process of quantum system modeling more convenient,we designed a middleware to optimize the use of ALPS modeling and computing.We take PyQt5 as the carrier and use Python language to design the middleware of quantum system modeling.According to the user’s needs,our main design tasks include:(1)to build a friendly graphical user interface,which makes the modeling process more intuitive;(2)to analyze the relevant documents of modeling and extract the core parameters of the current model;(3)to automatically generate the script file,mod.py,needed for model operation;(4)to simplify the running process of the model and convert running by command into button;(5)to expand the lattice file used to build the model,and realize the basic structure of the model that users can customize.After being tested and used,the middleware in this paper has realized well the establishment of the quantum system model and can handle multiple models at once,which simplifies the modeling process to a considerable extent and improves the modeling efficiency.In addition,the model extension realizes the function of transforming the tensor network graph into code,so that the user does not need to write the lattice file according to the graph,which makes the model extension easier.The adjustment of related physical parameters is also more intuitive. |