1-d Ising model using Kronecker sum and Kronecker product
Abstract
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.
1 Introduction
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 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.
2 Preleminaries
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 matrix and T is a matrix then the Kronecker product is a matrix:
(1) |
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., . In the following sections, we will mostly deal with square diagonal matrices, therefore, it is convenient to use the following notation. For diagonal matrices and , only taking into account the diagonal entries, one can write and , with Kronecker product as,
(2) |
Consider two square matrix and T of order and respectively, Kronecker sum () operation is defined as [32],
(3) |
where, is an Identity matrix of order . As evident, the dimension of is , 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., . For diagonal matrices and , it can be compactly written as
(4) |
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.
3 Representing Spin interactions
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,
(5) |
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.
Case 1. Product of spins
To begin with, consider a system of two spins with the Hamiltonian given by,
(6) |
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,
(7) |
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, and and observing that the Kronecker product between them yields . The partition function is then given by,
(8) |
Therefore, one can represent all the microstates of the Hamiltonian, as a diagonal matrix . In general, the interaction of n-spins of type having microstates can be represented by,
(9) |
The partition function is given by,
Therefore, the Kronecker product operation represents the microstates of the product of the independent spins.
Case 2. Sum of spins
Consider a two spin system with the Hamiltonian given by, .
Through explicit counting one obtains the microstates of this interaction as . Interestingly, these microstates can be modelled using Kronecker sum as,
(10) |
We can generalise the above for with the Hamiltonian having microstates through,
(11) |
Therefore, Kronecker sum operation represents the microstates of the sum of the independent spins.
Case 3. Sum of product of spins
For a more general case where we have both product and sum in a Hamiltonian, for example, interaction of type for a three spin system which have the microstates, through explicit counting one obtain the microstates as following,
(12) |
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 and followed by a Kronecker sum with . 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.
4 Spins in the presence of magnetic field
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 in the external magnetic field is given by,
(13) |
where, k is a positive constant [18].
For the spin-half case, can take two configurations . Adding one more spin 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,
(14) |
As discussed in the previous section and using matrix representation of Eq. 5, the microstates of this system are obtained through,
(15) |
It is now straightforward to evaluate the partition function. One obtains,
From the above diagonal matrix, one observes that the degeneracy of each energy level are as follows: energy level , , have the degeneracy 1, 2, and 1, respectively. Therefore, the expression for the partition function evaluates to,
(16) |
Further adding one more spin into the system, the partition function becomes,
where degeneracy corresponding to the energies , , , and 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
(17) | ||||
For mutually non-interacting spins in an external magnetic field, the Hamiltonian is written as,
(18) |
5 1-d Ising model
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 , where represents sum over neighboring spins and 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.
Case 1. 1-d open-chain
Consider a three spins chain as shown in the Fig. 1. The Hamiltonian for this system is given by
(19) |
Here, the spin is a common term between and . 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
(20) |

It is evident that for the Hamiltonian given by (19), the two terms, and can only take values +1 and -1. Moreover, it is the value of which determines the product term , for specific choices of the values of and . Therefore, the microstates in (20) is equivalent to the following,
(21) |
Therefore, value of can be independently added to the first term . In terms of the values corresponding to the microstates, the Hamiltonian are same as of and are equivalent. In term of Kronecker sum and Kronecker product, the Hamiltonian (19) can be written as,
(22) |
If we add one more spin to this linear chain, we get the following Hamiltonian,
(23) |

Again we can do the same thing, this time we first fix and , we can see that the second term only depends on the value of , and then fixing that value of , we permute over . It is represented by,
(24) |
In term of Kronecker sum and Kronecker product, the above Hamiltonian can be written as,
(25) |
Carrying on in the same way, we can write the linear open-chain Ising model of spins in Kronecker product and Kronecker sum as:
(26) |
Case 2. 1-d closed-chain
For a closed-chain Ising model of three spins, the Hamiltonian is given by
(27) |

There are three independent spins: , and . Therefore, the total number of microstates are, . The microstates of this system are:
As shown earlier, for three spins as open-chain, one can represent the microstates by,
(28) |
To describe three spins closed-chain system, we cannot directly use Kronecker sum and Kronecker product, like
or
It is because these expressions will yield the number of microstates as . It will not describe a closed-loop problem of 3 spins, which require microstates.
The only way we can proceed from an open-chain to closed-chain is by adding an diagonal matrix () to the open-chain expression as following,
(29) |
In a similar manner, for the case of four spins, the Hamiltonian is given by
(30) |
With 4 independent spins, the total number of microstates are . To describe the closed-chain of spins, we have to add diagonal matrix () to the open-chain expression as,
(31) |

And for spins closed-chain, we have to add an diagonal matrix to the open-chain term,
(32) |
It turns out that the only consistent way of generalizing the expression of closed-chain from open-chain, is to choose
(33) |
Therefore, for closed-chain 3 spins, the microstates are represented by the expression:
(34) |
To describe the closed-chain Ising model of n-spins, one has to add a diagonal matrix 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,
(35) |
The microstates of this system are,
(36) |
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: gives the correct count for microstates of and gives the correct count for microstates of .
But, after adding them we get the microstates :
(37) |
Clearly, these are not the microstates corresponding to the system-
(38) |
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:
(39) |
Let be the transformation matrix such that,
It turns out that the matrix is block diagonal, with each block a matrix.
(40) |
where =
and
=
It is straightforward to check that . So , where is identity matrix of order .
So the correct representation of microstates is given by:
We will call the modified Ising term as :
(41) |
This evaluates to,
(42) |
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 :
(43) |
where
We can call this modified Ising term :
(44) |
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 -spins.
(45) |
where, .
The transformation matrix only contains sequence of repeated block matrices: and , we can write this in a compact form:
where means that the sequence is repeated times and is an identity matrix of order 4. E.g.
Case 4. closed-chain in the presence of magnetic field
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 diagonal matrix to the Ising term.
(46) |
Here again it turns out that the only consistent way of generalizing the expression to - spins for closed-chain in external magnetic field is to choose
Where is an identity matrix of order .
E.g. for spins, the microstates are given by the diagonal entries of
(47) |
E.g. for spins, the microstates are given by the diagonal entries of
(48) |
6 Conclusions
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.
Acknowledgement
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.
References
References
- [1] BRUSH, S.G.: History of the lenz-ising model. Rev. Mod. Phys. 39, 883–893 (1967). DOI 10.1103/RevModPhys.39.883. URL https://link.aps.org/doi/10.1103/RevModPhys.39.883
- [2] Ising, E.: Beitrag zur Theorie des Ferromagnetismus. Zeitschrift fur Physik 31(1), 253–258 (1925). DOI 10.1007/BF02980577
- [3] Bhattacharjee, S.M., Khare, A.: Fifty years of the exact solution of the two-dimensional ising model by onsager. Current Science 69(10), 816–821 (1995). URL http://www.jstor.org/stable/24097007
- [4] Kramers, H.A., Wannier, G.H.: Statistics of the two-dimensional ferromagnet. part i. Phys. Rev. 60, 252–262 (1941). DOI 10.1103/PhysRev.60.252. URL https://link.aps.org/doi/10.1103/PhysRev.60.252
- [5] Onsager, L.: Crystal statistics. i. a two-dimensional model with an order-disorder transition. Phys. Rev. 65, 117–149 (1944). DOI 10.1103/PhysRev.65.117. URL https://link.aps.org/doi/10.1103/PhysRev.65.117
- [6] Williams, E.J.: The effect of thermal agitation on atomic arrangement in alloys. iii. Proceedings of the Royal Society of London. Series A, Mathematical and Physical Sciences 152(875), 231–252 (1935). URL http://www.jstor.org/stable/96591
- [7] Bethe, H.A.: Statistical Theory of Superlattices. Proceedings of the Royal Society of London Series A 150(871), 552–575 (1935). DOI 10.1098/rspa.1935.0122
- [8] Kawamura, H.: Two models of spin glasses — ising versus heisenberg. Journal of Physics: Conference Series 233, 012012 (2010). DOI 10.1088/1742-6596/233/1/012012. URL https://doi.org/10.1088/1742-6596/233/1/012012
- [9] Hopfield, J.J.: Neural networks and physical systems with emergent collective computational abilities. Proceedings of the National Academy of Sciences 79(8), 2554–2558 (1982). DOI 10.1073/pnas.79.8.2554. URL https://www.pnas.org/content/79/8/2554
- [10] Schneidman, E., Ii, M.J.B., Segev, R., Bialek, W.: Weak pairwise correlations imply strongly correlated network states in a neural population. (2006)
- [11] Takaishi, T.: Multiple Time Series Ising Model for Financial Market Simulations. In: Journal of Physics Conference Series, Journal of Physics Conference Series, vol. 574, p. 012149 (2015). DOI 10.1088/1742-6596/574/1/012149
- [12] Stauffer, D.: Social applications of two-dimensional ising models. American Journal of Physics 76(4), 470–473 (2008). DOI 10.1119/1.2779882. URL https://doi.org/10.1119/1.2779882
- [13] BORNHOLDT, S.: Expectation bubbles in a spin model of markets: Intermittency from frustration across scales. International Journal of Modern Physics C 12(05), 667–674 (2001). DOI 10.1142/S0129183101001845. URL https://doi.org/10.1142/S0129183101001845
- [14] Mello, I.F., Squillante, L., Gomes, G.O., Seridonio, A.C., de Souza, M.: Epidemics, the Ising-model and percolation theory: A comprehensive review focused on Covid-19. Physica A Statistical Mechanics and its Applications 573, 125963 (2021). DOI 10.1016/j.physa.2021.125963
- [15] Lee, C.F., Johnson, N.F.: Efficient quantum computation within a disordered heisenberg spin chain. Phys. Rev. A 70, 052322 (2004). DOI 10.1103/PhysRevA.70.052322. URL https://link.aps.org/doi/10.1103/PhysRevA.70.052322
- [16] Marchukov, O.V., Volosniev, A.G., Valiente, M., Petrosyan, D., Zinner, N.T.: Quantum spin transistor with a Heisenberg spin chain. Nature Communications 7, 13070 (2016). DOI 10.1038/ncomms13070
- [17] Štelmachovič, P., Bužek, V.: Quantum-information approach to the ising model: Entanglement in chains of qubits. Phys. Rev. A 70, 032313 (2004). DOI 10.1103/PhysRevA.70.032313. URL https://link.aps.org/doi/10.1103/PhysRevA.70.032313
- [18] Baxter, R.: Exactly Solved Models in Statistical Mechanics. Dover books on physics. Dover Publications (2007). URL https://books.google.co.in/books?id=G3owDULfBuEC
- [19] Kac, M., Ward, J.C.: A combinatorial solution of the two-dimensional ising model. Phys. Rev. 88, 1332–1337 (1952). DOI 10.1103/PhysRev.88.1332. URL https://link.aps.org/doi/10.1103/PhysRev.88.1332
- [20] Costa, G., Maciel, A.L.: Combinatorial formulation of ising model revisited 25(1) (2003). DOI 10.1590/S1806-11172003000100007. URL https://doi.org/10.1590/S1806-11172003000100007
- [21] Park, J., Jin, I.H., Schweinberger, M.: Bayesian model selection for high-dimensional ising models, with applications to educational data. Computational Statistics & Data Analysis 165, 107325 (2022). DOI https://doi.org/10.1016/j.csda.2021.107325. URL https://www.sciencedirect.com/science/article/pii/S0167947321001596
- [22] Gofman, M., Adler, J., Aharony, A., Harris, A.B., Stauffer, D.: Series and Monte Carlo study of high-dimensional Ising models. Journal of Statistical Physics 71(5-6), 1221–1230 (1993). DOI 10.1007/BF01049970
- [23] Ravikumar, P., Wainwright, M.J., Lafferty, J.D.: High-dimensional Ising model selection using l1-regularized logistic regression. The Annals of Statistics 38(3), 1287 – 1319 (2010). DOI 10.1214/09-AOS691. URL https://doi.org/10.1214/09-AOS691
- [24] Wolff, U.: Collective monte carlo updating for spin systems. Phys. Rev. Lett. 62, 361–364 (1989). DOI 10.1103/PhysRevLett.62.361. URL https://link.aps.org/doi/10.1103/PhysRevLett.62.361
- [25] Ibarra-García-Padilla, E., Malanche-Flores, C.G., Poveda-Cuevas, F.J.: The hobbyhorse of magnetic systems: the ising model 37(6), 065103 (2016). DOI 10.1088/0143-0807/37/6/065103. URL https://doi.org/10.1088/0143-0807/37/6/065103
- [26] Nagle, J.F., Bonner, J.C.: Numerical studies of the ising chain with long-range ferromagnetic interactions. Journal of Physics C: Solid State Physics 3(2), 352–366 (1970). DOI 10.1088/0022-3719/3/2/017. URL https://doi.org/10.1088/0022-3719/3/2/017
- [27] Wragg, M.J., Gehring, G.A.: The ising model with long-range ferromagnetic interactions 23(11), 2157–2164 (1990). DOI 10.1088/0305-4470/23/11/036. URL https://doi.org/10.1088/0305-4470/23/11/036
- [28] Cannas, S.A.: One-dimensional ising model with long-range interactions: A renormalization-group treatment. Phys. Rev. B 52, 3034–3037 (1995). DOI 10.1103/PhysRevB.52.3034. URL https://link.aps.org/doi/10.1103/PhysRevB.52.3034
- [29] Seth, S.: Combinatorial approach to exactly solve the 1d ising model. European Journal of Physics 38(1), 015104 (2016). DOI 10.1088/1361-6404/38/1/015104. URL https://doi.org/10.1088/1361-6404/38/1/015104
- [30] Wang, W., Díaz-Méndez, R., Capdevila, R.: Solving the one-dimensional ising chain via mathematical induction: an intuitive approach to the transfer matrix. European Journal of Physics 40(6), 065102 (2019). DOI 10.1088/1361-6404/ab330c. URL https://doi.org/10.1088/1361-6404/ab330c
- [31] Baxter, R.J., Enting, I.G.: 399th solution of the ising model 11(12), 2463–2473 (1978). DOI 10.1088/0305-4470/11/12/012. URL https://doi.org/10.1088/0305-4470/11/12/012
- [32] Britanak, V., Yip, P., Rao, K.: Discrete Cosine and Sine Transforms: General Properties, Fast Algorithms and Integer Approximations. Elsevier Science (2010). URL https://books.google.co.in/books?id=iRlQHcK-r_kC