key: cord-0335010-iyk0hazf authors: Magare, Sourabh; Roy, Abhinash Kumar; Srivastava, Varun title: 1-d Ising model using Kronecker sum and Kronecker product date: 2020-11-02 journal: nan DOI: 10.1088/1361-6404/ac5637 sha: 4ce0ee68599990c176b4d4d505f31a2c490e03be doc_id: 335010 cord_uid: iyk0hazf Calculations in Ising model can be cumbersome and non-intuitive. Here we provide a formulation that addresses these issues for 1-D scenario. We represent the microstates of spin interactions as a diagonal matrix. This is done using two operations: Kronecker sum and Kronecker product. The calculations thus become simple matter of manipulating diagonal matrices. We address the following problems in this work: spins in the magnetic field, open-chain 1-D Ising model, closed-chain 1-D Ising model, 1-D Ising model in an external magnetic field. We believe that this representation will help provide students as well as experts with a simple yet powerful technique to carry out calculations in this model. It is remarkable that many complicated statistical systems can be studied using relatively simple mathematical models involving lattice arrangements of molecules and considering the nearest-neighbour interactions [1] .One such model that has seen wide range of applications is the Ising Model [2] proposed in 1925 by Wilhelm Lenz and solved for 1-D spin lattice by Ernst Ising as a part of his doctoral thesis [1] . It is ironic, that after showing there could be no phase transitions in 1-D systems at T = 0 and erroneously concluding that this was true for higher dimensional systems as well, Ising gave up study of this model and realized much later that his name had become immortal because of it [3] . In today's world, Ising model has found wide ranging applications in various fields. It is one of the simplest models that shows phase transitions of statistical systems in higher dimensions. Building on the works of H.A Kramers and G. H. Wannier [4] , Lars Onsager gave an exact solution for 2-D Ising model which showed phase transitions and is considered one of the landmarks in theoretical physics [5] . This model has also played a crucial role in studying alloys [6, 7] , spin glasses [8] , in neuroscience [9, 10] and even in modelling financial markets [11, 12, 13] and studying epidemics and pandemics with reference to recent COVID-19 outbreak [14] . Heisenberg's model, which was inspired by Ising model [1] is finding wide scale applications in quantum information and quantum computing [15, 16, 17] . Even though the model was proposed almost a century ago, it is clear that its applications are still being found in many important areas. At its heart, calculations in Ising model involve counting various microstates of the system. This procedure then helps us to calculate the partition function which embeds information of the macroscopic properties of the system. The most widely taught method to solve the Ising model exactly is the transfer matrix method [18] . Mathematically, solving Ising model is a combinatorial problem and people have given purely combinatorial techniques for eg. Kac and Ward's work [19] using combinatorics to yield the partition function of 2-D Ising model and Feynman's contribution towards this work [20] .Recently, numerical techniques have been applied to study higher dimensional Ising models [21, 22, 23, 24, 25] and studying long range interactions in Ising chains; see [26, 27, 28] and references therein. Our aim here is to provide a method that is more physically intuitive and less cumbersome for the 1-D scenario. There exist numerous approach to exactly solve the Ising model (for some recent works see [29, 30] ) for various geometries and configurations [31] . However, we believe that the method presented in this article provides a simpler and yet powerful approach using the operations of Kronecker sum and Kronecker product. The paper is organized as follows: In section II, we review the definition and properties of Kronecker sum and Kronecker product and discuss them in the context of diagonal matrices. In section III, we provide a detailed prescription to obtain partition function for spin interaction Hamiltonians using spin-1/2 particles in the absence of external magnetic field employing the Kronecker product and sum operations. In section IV we develop our approach for non-interacting spins in the presence of an external magnetic field. Section V is dedicated to solving the 1-D Ising model for open/close chains in absence and presence of external magnetic fields. In this section, we review the definitions and properties of Kronecker sum and Kronecker product. Kronecker product (⊗) operation (also known as tensor product) is defined as following [32] . If S is a m × n matrix and T is a p × q matrix then the Kronecker product is a pm × nq matrix: Kronecker product is an operation on matrices of arbitrary sizes. It is important to note that Kronecker product is associative however, non-commutative. Moreover, it is distributive over the usual addition, i.e., (A + B) ⊗ C = A ⊗ C + B ⊗ C. In the following sections, we will mostly deal with square diagonal matrices, therefore, it is convenient to use the following notation. For diagonal matrices S(2 × 2) and T (m × m), only taking into account the diagonal entries, one can write S = diag(s 11 , s 22 ) and T = diag(t 11 , ..., t mm ), with Kronecker product as, S ⊗ T = diag(s 11 t 11 , ..., s 11 t mm , s 22 t 11 , ..., s 22 t mm ). Consider two square matrix S and T of order m and n respectively, Kronecker sum (⊕) operation is defined as [32] , where, I x is an Identity matrix of order x. As evident, the dimension of S ⊕ T is mn, therefore similar to the Kronecker product, Kronecker sum also increases the dimension. It is also non-commutative and associative operator, however under the product Kronecker sum is not distributive over the usual addition i.e., (A + B) ⊕ C = A ⊕ C + B ⊕ C. For diagonal matrices S = diag(s 11 , s 22 ) and T = diag(t 11 , ..., t mm ), it can be compactly written as S ⊕ T =diag((s 11 + t 11 ), .., (s 11 + t mm ), (s 22 + t 11 ), ..., (s 22 + t mm )). In the following sections, we make use of these two operations to represent Hamiltonian of spin chain systems in various scenarios, leading to an efficient and simple procedure to obtain partition function without explicit consideration of the involved microstates. In this work, we restrict our discussion to spin-half particles. There are two eigenstates corresponding to spin-half particles, spin-up (↑) and spin-down (↓).Therefore, microstates of a spin-half particle is given by the set {↑, ↓}. Matrix representation of the microstates of a spin-half particle is given by, where the values +1 and -1 corresponds to spin-up and spin-down states, respectively In this section we use (↑, ↓) to represent the states which illustrate the counting of microstates using the Kronecker sum and Kronecker product for a given interaction. In the following, we consider the Hamiltonian involving product of spins, sum of spins and finally a combination of both. To begin with, consider a system of two spins with the Hamiltonian given by, Since each spin can independently be in Spin-up and Spin-down state, microstates of this interaction is given by the set {↑↑, ↑↓, ↓↑, ↓↓}. The partition function is obtained as, It is to be noted that in the above we have explicitly considered all the microstates involving configuration of individual spins. The above procedure can be modelled by using a Kronecker product operation. We can write the matrix representation of both spins as, S 1 = diag(↑, ↓) and S 2 = diag(↑, ↓) and observing that the Kronecker product between them yields S 1 ⊗ S 2 = diag(↑↑, ↑↓, ↓↑, ↓↓). The partition function is then given by, Therefore, one can represent all the microstates of the Hamiltonian, H = S 1 S 2 as a diagonal matrixĤ = S 1 ⊗ S 2 . In general, the interaction of n-spins of type H = S 1 S 2 S 3 ...S n having 2 n microstates can be represented by, The partition function is given by, Therefore, the Kronecker product operation represents the microstates of the product of the independent spins. Consider a two spin system with the Hamiltonian given by, H = S 1 + S 2 . Through explicit counting one obtains the microstates of this interaction as {(↑ + ↑), (↑ + ↓), (↓ + ↑), (↓ + ↓)}. Interestingly, these microstates can be modelled using Kronecker sum as,Ĥ 1-d Ising model using Kronecker sum and Kronecker product We can generalise the above for n − spins with the Hamiltonian H = S 1 + S 2 + ... + S n having 2 n microstates through,Ĥ Therefore, Kronecker sum (⊕) operation represents the microstates of the sum of the independent spins. For a more general case where we have both product and sum in a Hamiltonian, for example, interaction of type H = S 1 S 2 + S 3 for a three spin system which have the 2 3 = 8 microstates, through explicit counting one obtain the microstates as following, It is now straightforward to obtain the above through Kronecker sum and product by simply using previous cases one after the other. First, there is a product between S 1 and S 2 followed by a Kronecker sum with S 3 . The matrix representing the microstates is then given by,Ĥ In the above cases, we are explicitly counting the microstates but in an organized way. Thus, we can represent the microstates of an interaction of independent spins by replacing product with tensor product and sum with Kronecker sum. The resultant diagonal matrix gives all microstates corresponding to the interaction under consideration. Here, we make use of the approach described in previous section to obtain explicit expressions for partition functions for system of mutually non interacting spins present in an external magnetic field. The Hamiltonian for a spin S 1 in the external magnetic field is given by, where, k is a positive constant [18] . For the spin-half case, S 1 can take two configurations {↑, ↓}. Adding one more spin S 2 in this system and not considering the mutual interaction between spins, the Hamiltonian for this system in the presence of external magnetic field is given by, As discussed in the previous section and using matrix representation of Eq. 5, the microstates of this system are obtained through, It is now straightforward to evaluate the partition function. One obtains, = Tr(exp(β diag(2k, 0, 0, −2k))). From the above diagonal matrix, one observes that the degeneracy of each energy level are as follows: energy level 2k, 0, −2k have the degeneracy 1, 2, and 1, respectively. Therefore, the expression for the partition function evaluates to, Further adding one more spin into the system, the partition function becomes, where degeneracy corresponding to the energies 3k, 1k, −1k, and −3k are given by 1, 3, 3 and 1 respectively. Therefore, we observe that using this Kronecker sum and product structure simplifies the counting of degeneracy corresponding to various energy levels. Since it does not explicitly refer to the specific configuration, counting of degeneracy reduces to identifying equivalent elements in a diagonal matrix. With this, the partition function evaluates to Z = e 3kβ + 3e 1kβ + 3e −1kβ + e −3kβ = 2(cosh 3kβ + 3 cosh kβ) For n mutually non-interacting spins in an external magnetic field, the Hamiltonian is written as, In the Ising interaction, we consider spin-lattice and each spin interacts only with its neighboring spin by a product type interaction. Hamiltonian of the Ising model is given by H = −j ik S i S k , where ik represents sum over neighboring spins and j is a coupling constant [18] . In the following, we consider various configurations and provide a prescription to find the partition function employing Kronecker sum and product. Consider a three spins chain as shown in the Fig. 1 . The Hamiltonian for this system is given by Here, the spin S 2 is a common term between S 1 and S 3 . It is not immediately obvious how to write this interaction in terms of Kronecker product and Kronecker sum. One observes the microstates of this system as It is evident that for the Hamiltonian given by (19) , the two terms, S 1 S 2 and S 2 S 3 can only take values +1 and -1. Moreover, it is the value of S 3 which determines the product term S 2 S 3 , for specific choices of the values of S 1 and S 2 . Therefore, the microstates in (20) Therefore, value of S 3 can be independently added to the first term S 1 S 2 . In terms of the values corresponding to the microstates, the Hamiltonian H = −j(S 1 S 2 + S 2 S 3 ) are same as of and H = −j(S 1 S 2 + S 3 ) are equivalent. In term of Kronecker sum and Kronecker product, the Hamiltonian (19) can be written as, If we add one more spin to this linear chain, we get the following Hamiltonian, Again we can do the same thing, this time we first fix S 1 and S 2 , we can see that the second term only depends on the value of S 3 , and then fixing that value of S 3 , we permute over S 4 . It is represented by, In term of Kronecker sum and Kronecker product, the above Hamiltonian can be written as, Carrying on in the same way, we can write the 1 − d linear open-chain Ising model of n−spins in Kronecker product and Kronecker sum as: For a 1 − d closed-chain Ising model of three spins, the Hamiltonian is given by There are three independent spins: S 1 , S 2 and S 3 . Therefore, the total number of To describe three spins closed-chain system, we cannot directly use Kronecker sum and Kronecker product, It is because these expressions will yield the number of microstates as 2 4 . It will not describe a 1 − d closed-loop problem of 3 spins, which require 8 microstates. The only way we can proceed from an open-chain to closed-chain is by adding an 8 × 8 diagonal matrix (D 3 ) to the open-chain expression as following, In a similar manner, for the case of four spins, the Hamiltonian is given by And for n spins closed-chain, we have to add an 2 n × 2 n diagonal matrix (D n ) to the It turns out that the only consistent way of generalizing the expression of closed-chain from open-chain, is to choose Therefore, for closed-chain 3 spins, the microstates are represented by the expression: To describe the closed-chain Ising model of n-spins, one has to add a diagonal matrix (D n ) to the open-chain expression. The correct diagonal matrix is the one which generalizes closed-chain expression from open-chain for n-spins. It turns out that there is only one such expression given by, Case 3. Open-chain in the presence of magnetic field Ising model in the presence of external magnetic field has the following expression [18] -Considering 3 spins, the Hamiltonian is given by, The microstates of this system are, Yet we have dealt with Ising term and magnetic field term separately and obtained the corresponding Hamiltonians in terms of Kronecker sum and Kronecker product. To write open-chain Ising model in presence of external magnetic field, the obvious way to proceed is to use previous methods directly: Here, we can see that the Ising term and the magnetic term individually give the correct energies and degeneracy: diag(2, 0, 0, −2, 0, −2, 2, 0) gives the correct count for microstates of S 1 S 2 + S 2 S 3 and diag(3, 1, 1, −1, 1, −1, −1, −3) gives the correct count for microstates of S 1 + S 2 + S 3 . But, after adding them we get the microstates : Clearly, these are not the microstates corresponding to the system- Thus, we have correct count of microstates in the Ising term and in magnetic term. But the order of the diagonal elements doesn't match to give the correct microstates. To resolve this problem we have to identify the correct element order of Ising term that matches up with magnetic term and perform a similarity transformation which can be generalized to n-spins. The correct order of the diagonal elements in this case is: Let M 3 be the transformation matrix such that, It turns out that the matrix M 3 is block diagonal, with each block a 2 × 2 matrix. where I 2 = 1 0 0 1 and σ x = 0 1 1 0 It is straightforward to check that M 2 So the correct representation of microstates is given by: We will call the modified Ising term as G 3 : This evaluates to,Ĥ If we add one more spin in the system, then the Hamiltonian can be written in terms of Kronecker sum and Kronecker product by repeated use of similarity transformation : where M 4 = diag(I 2 , σ x , I 2 , σ x , I 2 , σ x , I 2 , σ x ) We can call this modified Ising term G 4 : We have to repeatedly use similarity transform on the Ising term to get the correct microstates for an Ising interaction in external magnetic field. This can be generalised to a system containing n-spins. where, G n = M n (G n−1 ⊕ S n )M n . The transformation matrix M n only contains sequence of repeated block matrices: I 2 and σ x , we can write this in a compact form: where (I 2 , σ x ) 2 n−2 means that the sequence (I 2 , σ x ) is repeated 2 n−2 times and I 4 is an identity matrix of order 4. E.g. To represent the closed-chain Ising model in magnetic field, we follow the same procedure we followed to go from 1-d open-chain to 1-d closed-chain in the absence of magnetic field. We add a 2 n × 2 n diagonal matrix (D n ) to the Ising term. Here again it turns out that the only consistent way of generalizing the expression to nspins for closed-chain in external magnetic field is to choose D n = S 1 ⊗ I 2 n−2 ⊗ S n Where I 2 n−2 is an identity matrix of order 2 n−2 . E.g. for 3 spins, the microstates are given by the diagonal entries of In this paper we have provided a method of representing microstates of various spin interactions in the 1-d Ising model using Kronecker sum (⊕) and Kronecker product (⊗) operations on matrices. The partition function, which gives all the relevant information about the system being studied, is found out by taking the trace of the exponential of the resultant matrix. This method was applied to open and closed 1-d chains and we readily obtained the correct values. We also applied this approach for spin interactions with external magnetic field and were able to find the correct count for the Ising and magnetic term separately. Using a similarity transformation we corrected for the order of terms in the diagonal matrix and obtained results which match with the literature. Solutions in 1-d Ising models involve counting of microstates which can get difficult to keep track if not done systematically. Our system provides a systematic way of doing such calculations while also giving an intuitive grasp of the underlying mechanism and we believe that this method can find useful applications in undergraduate classrooms as well as practicing researchers in the field because of its computational friendly formalism. History of the lenz-ising model Beitrag zur Theorie des Ferromagnetismus Fifty years of the exact solution of the two-dimensional ising model by onsager Statistics of the two-dimensional ferromagnet. part i Crystal statistics. i. a two-dimensional model with an order-disorder transition The effect of thermal agitation on atomic arrangement in alloys. iii Statistical Theory of Superlattices Two models of spin glasses -ising versus heisenberg Neural networks and physical systems with emergent collective computational abilities Weak pairwise correlations imply strongly correlated network states in a neural population Multiple Time Series Ising Model for Financial Market Simulations Social applications of two-dimensional ising models Expectation bubbles in a spin model of markets: Intermittency from frustration across scales Epidemics, the Ising-model and percolation theory: A comprehensive review focused on Covid-19 Efficient quantum computation within a disordered heisenberg spin chain Quantum spin transistor with a Heisenberg spin chain Quantum-information approach to the ising model: Entanglement in chains of qubits Exactly Solved Models in Statistical Mechanics. Dover books on physics A combinatorial solution of the two-dimensional ising model Bayesian model selection for high-dimensional ising models, with applications to educational data Series and Monte Carlo study of high-dimensional Ising models High-dimensional Ising model selection using l1-regularized logistic regression Collective monte carlo updating for spin systems The hobbyhorse of magnetic systems Numerical studies of the ising chain with long-range ferromagnetic interactions The ising model with long-range ferromagnetic interactions One-dimensional ising model with long-range interactions: A renormalizationgroup treatment Combinatorial approach to exactly solve the 1d ising model Solving the one-dimensional ising chain via mathematical induction: an intuitive approach to the transfer matrix 399th solution of the ising model Discrete Cosine and Sine Transforms: General Properties, Fast Algorithms and Integer Approximations We wish to thank Dr. Pradeep Kumar Mohanty, Dr. Bhavtosh Bansal and Dr. Rumi De from IISER Kolkata for their fruitful discussions. We also wish to thank Department of Science and Technology, Government of India for providing financial support as INSPIRE fellowship.