The application provides a
linear scale electronic structure calculation method and
system based on a
dyeing superposition state and a terminal, based on the
dyeing superposition state, and is used for solving sparse operator or matrix functions with spatial locality or limited correlation length, such as a
density matrix, an inverse square root of an overlap matrix, and an operator required by an orthogonal representation transformation, which are involved in a Kohn-Sham self-consistent process under a local basis representation. On the premise of maintaining
linear scale complexity, the application breaks through the dependence of a traditional
algorithm on
sparse matrix-
sparse matrix multiplication (SpMSpM), and reconstructs core calculation into regular
sparse matrix-dense
matrix multiplication (SpMM). Through transformation of a bottom layer calculation paradigm, the regularity of Kohn-Sham
electronic structure self-consistent calculation and the parallel
adaptation ability of a bottom layer hardware are significantly improved, and inherent bottlenecks, such as a large pre-factor and low hardware execution efficiency, caused by the limitation of a core operator (SpMSpM) in a traditional
linear scale algorithm are fundamentally relieved.