Introduction

One of the most studied models which shows non-equilibrium phase transitions is asymmetric simple exclusion process (ASEP). In many literatures, the ASEP in the presence of an impurity on a ring have been studied. The role of the impurity is to investigate the motion of the shock fronts in the ASEP. The single impurity in [1, 2] hops in the opposite direction relative to the ordinary particle of the ASEP while in [3] the impurity moves in the same direction as the ordinary particles of the ASEP. In both cases the phase structure of the models have been studied extensively.

In this paper, we study the effects of the presence of a single impurity on the ASEP on a ring where the second class particle (impurity) is allowed to hop in the both directions, relative to the ordinary particle of the ASEP, with the rates q and p. It has been shown that the steady-state distribution of all one-dimensional exclusion models whose steady-states have a simple factorized form, can be written in a matrix product form. The matrices which are necessary for this purpose satisfy a generalized quadratic algebra [4]. In  [5], the authors have introduced a mathematical tool for studying of correlations in the models whose steady-states have a simple factorized form. They use the matrices which satisfy a generalized quadratic algebra. In this paper, we introduce an infinite-dimensional matrix representation which satisfies the quadratic algebra of the model. The canonical partition function of the model is calculated exactly. Using a canonical ensemble, the phase structure of the model is studied in thermodynamic limit. The steady-state distribution of our model has a factorized form hence two matrix representations are presented which satisfy the generalized quadratic algebra of the model. An infinite-dimensional matrix representation and a 2-dimensional matrix representation. Using this matrix representations the calculations seem to be very straightforward. It has been shown that using the grand canonical partition function one can analyze the phase structure of the model. The transition point can be calculated numerically or analytically  [6, 7]. By assigning the fugacity z to the first class particles in a grand canonical ensemble, we shall find the exact phase structure and calculate the density profile and the correlations of the first class particles precisely. Some of the critical exponents of the model in phase transition is also obtained.

In recent years, many studies have been done on connections between the one-dimensional driven-diffusive systems and the two-dimensional walk models  [810]. It has been shown that the partition function of some of the one-dimensional driven-diffusive models with open boundaries obtained using a matrix product method is equal to the partition function of a two-dimensional walk model obtained using a transfer matrix method [8, 11, 12]. In  [11], the author has introduced a lattice path with specific dynamical rules where walker can start from origin and end at any height upper than origin and it has been shown that the partition function of this two-dimensional walk model is exactly equal to that of a driven-diffusive system defined on a discrete lattice with periodic boundary conditions that can be mapped to a zero-range process [13, 14]. In this paper, a two-dimensional walk model is introduced in which the walker can only move on the first quarter of a two-dimensional plane. Random walker can start moving at any height upper than the origin and end at any height upper than the starting point. All the paths made by the random walker are weighted. The weight of a given path will be equal to the product of the weights of the consecutive steps in that path and the weight of the starting and end points. The partition function of this walk model is the sum of the unnormalized weights of different paths consisting of \(t - 1\) steps and is calculated using a transfer matrix method.

The paper is organized as follows: In “The driven-diffusive model” a two-species driven-diffusive model is introduced. In “The canonical partition function” the canonical partition function of the model is calculated in the thermodynamic limit and the phase structure of the model is investigated. In “The spatial correlations” the correlation functions and the critical exponent of the model are calculated. In “The walk model” we introduce a two-dimensional walk model related to the two-species driven-diffusive model.

The driven-diffusive model

In [11], the author has introduced a one-dimensional driven-diffusive model of classical particles with hardcore interactions. The model consists of a single particle of type A (called the second-class particle) and \(M-1\) particles of type B (called the first-class particles). The particles move on a one-dimensional lattice of length t with periodic boundary condition. The particle of type A hops from the lattice site i to \(i+1\) with the rate p provided that the target site is empty. A particle of type B hops from the lattice site i to \(i+1\) with the rate 1 provided that the target site is empty.

In this paper, we assume that the second-class particle is also allowed to hop backward with the rate q. If an empty lattice site is denoted by \(\emptyset\), we can summarize the reaction rules at a pair of lattice sites i and \(i + 1\) as follows

$$\begin{aligned}&A\emptyset \rightarrow \emptyset A \quad \text{ with } \text{ rate }\; p\ \\&\emptyset A\rightarrow A \emptyset \quad \text{ with } \text{ rate } \; q \\&B \emptyset \rightarrow \emptyset B \quad \text{ with } \text{ rate } \; 1. \end{aligned}$$

In the long-time limit the system attains a non-equilibrium steady-state. It can be shown that the probability distribution can be obtained using a matrix product method. For this purpose, we label the particle of type A with 1 and label the particles of type B with \(2, 3, \ldots , M\). If the number of empty lattice sites in front of the i’th particle is denoted by \(n_i\), a general configuration of the model can be written as \(\{n\}=\{n_1,n_2,\ldots ,n_M\}\). If the lattice site is occupied by the particle of type A, the matrix \(D_1\) is attributed to it. If a lattice site is occupied by a particle of type B, the matrix \(D_2\) is attributed to it. In the steady-state the probability of finding the system in a general configuration \(\{n\}=\{n_1,n_2,\ldots ,n_M\}\) is given by

$$\begin{aligned} P(\{n\})=\frac{1}{Z_{t,M}(p,q)}Tr\left( D_1E^{n_1}D_2E^{n_2}\ldots D_ME^{n_M}\right) \end{aligned}$$
(1)

in which \(Z_{t,M}(p,q)\) is the normalization factor which is also called the canonical partition function of the model and that it should be calculated by considering the conservation of the number of empty sites i.e., \(\sum _{\nu =1}^Mn_\nu =t-M\). A sufficient condition for (1) to be the steady-state probability distribution of the model is

$$\begin{aligned} pD_1E-qED_1&=D_1\nonumber \\ D_2E&=D_2. \end{aligned}$$
(2)

Details of the proof is given in [15]. It can easily be verified that the above algebra has the following infinite-dimensional matrix representation

$$\begin{aligned} D_1&=\sum _{i=0}^\infty \sum _{{i'}=i}^\infty \left( {\begin{array}{ll} {{i'}} \\ i\\ \end{array}} \right) \frac{q^i}{p^{i'}}\vert i \rangle \langle {i'}\vert ,\\ D_2&=\sum _{i=0}^\infty \vert 0\rangle \langle i\vert ,\\ E&=\sum _{i=0}^\infty \vert i+1\rangle \langle i\vert \end{aligned}$$

in which \(\vert i\rangle _j=\delta _{i,j}\) for \(i,j=0,1,\ldots ,\infty\).

The canonical partition function

The number of empty lattice sites is a conserved quantity and does not change by the dynamical rules; therefore, using (1) one can calculate the canonical partition function of the model as follow

$$\begin{aligned} Z_{t,M}(p,q)=\sum _{n_1,\ldots , n_M=0}^{t-M} Tr\left[ D_1E^{n_1}D_2E^{n_2}\ldots D_2E^{n_M}\right] \delta _{\sum _{\nu =1}^M n_{\nu },(t-M)}. \end{aligned}$$
(3)

Using the matrix representations of \(D_2\) and E, one can write

$$\begin{aligned} D_2E^n=D_2. \end{aligned}$$

Using the above equation we can rewrite the canonical partition function of the model as follows

$$\begin{aligned} Z_{t,M}(p,q)=\sum _{n_1,\ldots , n_M=0}^{t-M} Tr\left[ D_1E^{n_1}D_2\right] \delta _{\sum _{\nu =1}^M n_{\nu },(t-M)}. \end{aligned}$$
(4)

Using the matrix representation of the matrices \(D_1\), \(D_2\) and E and the definition of trace of a matrix one can obtain

$$\begin{aligned} Tr\left[ D_1E^{n_1}D_2\right]&=\sum _{i=0}^\infty \langle i\vert D_1E^{n_1}D_2\vert i\rangle \\&=\sum _{i=0}^{n_1}\left( {\begin{array}{l} {n_1}\\ i\\ \end{array}} \right) \frac{q^i}{p^{n_1}}. \end{aligned}$$

Inserting the above equation into (4), the canonical partition function of the model can be written as

$$\begin{aligned} Z_{t,M}(p,q)=\sum _{n_1=0}^{t-M}\sum _{i=0}^{n_1} \left( {\begin{array}{l} {n_1} \\ i\\ \end{array}} \right) \left( {\begin{array}{l} {t-n_1-2} \\ M-2\\ \end{array}} \right) \frac{q^i}{p^{n_1}}. \end{aligned}$$
(5)

It can be seen that the partition function of the model in thermodynamic limit \(M,t\rightarrow \infty\) behaves as

$$\begin{aligned} Z_{t,M}(p,q)\simeq \left\{ \begin{array}{lll} {}p^{t\left( \rho -1\right) } \left( 1+q\right) ^{t-1}\left( 1+q-p\right) ^{2-M} \; &{}\text{ for } \; \rho < \frac{1-p+q}{1+q}\\ {}\left( {\begin{array}{l} {t} \\ {M} \\ \end{array}} \right) \frac{p\rho ^2}{p-\left( 1-\rho \right) \left( 1+q\right) } \;&\text{ for }\;\rho > \frac{1-p+q}{1+q} \end{array} \right. \end{aligned}$$
(6)

in which \(\rho\) is the density of the first-class particle and is given by \(\rho =(M-1)/t\simeq M/t\). It can be seen that a phase transition occurs at \(\rho = (1-p+q)/(1+q)\). To investigate the phase behavior of the model we calculate the mean number of the empty lattice sites in front of the second-class particle. Given that the total number of empty lattice sites on the lattice is \(t-M\), the probability that the number of empty lattice sites in front of the second-class particle is \(n_1\), is given by

$$\begin{aligned} P_{t,M}(n_1)=\frac{1}{Z_{t,M}(p,q)}\sum _{i=0}^{n_1} \frac{q^i}{p^{n_1}} \left( {\begin{array}{l} {n_1} \\ i\\ \end{array}} \right) \left( {\begin{array}{l} {t-n_1-2} \\ M-2\\ \end{array}} \right) \end{aligned}$$
(7)

Hence the average number of empty lattice sites in front of the particle of type A is

$$\begin{aligned} \bar{n}_1=\sum _{n_1=0}^{t-M} n_1 P_{t,M}(n_1)=-p \frac{\partial \ln Z_{t,M}(p,q)}{\partial p}. \end{aligned}$$
(8)

Using (6), the average number of empty lattice sites in front of the particle of second-class particle in the thermodynamic limit is as follows

$$\begin{aligned} \bar{n}_1=\left\{ \begin{array}{ll} t\left( 1-\rho -\frac{p\rho }{1+q-p}\right) & \quad \text{ for } \; \rho < \frac{1-p+q}{1+q}\\ \frac{p}{p-\left( 1-\rho \right) \left( 1+q\right) }-1 &\quad \text{ for } \; \rho > \frac{1-p+q}{1+q} \end{array} \right. . \end{aligned}$$
(9)

As can be seen there is a phase transition from a phase in which the mean number of empty lattice site in front of the second-class particle is of order t to another phase where it is a constant.

The spatial correlations

In  [4] the author has shown that the steady state of a disordered driven-diffusive system consisting of M different type of particles, that can be mapped onto the Zero Range Process, can be obtained using the matrix method in which the matrices should satisfy the following generalized quadratic algebra

$$\begin{aligned} D_{\mu }E^{n_\mu }D_{\mu '}=f_{\mu }(n_{\mu })D_{\mu '} \qquad \text{ for } \mu , \mu ' =1,2,\ldots ,M \end{aligned}$$
(10)

in which \(f_{\mu }(n_{\mu })\) is a function of transition rates and can be constructed using pairwise balance condition [16]. Our model is a two-species driven-diffusive model of classical particles on a lattice with periodic boundary condition with the following dynamic

$$\begin{aligned} \mu '\; \underbrace{0\cdots 0}_{n_{\mu '}} \; \mu \;\underbrace{0\cdots 0}_{n_{\mu }} \; \mu '' \rightarrow \mu '\; \underbrace{0\cdots 0}_{n_{\mu '}+1} \; \mu \;\underbrace{0\cdots 0}_{n_{\mu }-1} \; \mu '' \quad \text{ with } \text{ the } \text{ rate }\, u_{\mu }(n_{\mu }) \nonumber \\ \mu '\; \underbrace{0\cdots 0}_{n_{\mu '}} \; \mu \;\underbrace{0\cdots 0}_{n_{\mu }} \; \mu ' \rightarrow \mu '\; \underbrace{0\cdots 0}_{n_{\mu '}-1} \; \mu \;\underbrace{0\cdots 0}_{n_{\mu }+1} \; \mu ''\quad \text{ with } \text{ the } \text{ rate }\, v_{\mu }(n_{\mu }) \end{aligned}$$
(11)

where \(u_{\mu }(n_{\mu })\) is the hopping rate of the particle \(\mu\) to its right neighboring lattice site and \(v_{\mu }(n_{\mu })\) is the hopping rate of the particle \(\mu\) to its left neighboring lattice site i.e.,

$$\begin{aligned}&u_{1}(n_{1})=p, \quad v_{1}(n_{1})=q,\nonumber \\&u_{2}(n_{2})=1,\quad v_{2}(n_{2})=0. \end{aligned}$$
(12)

It can be checked that by defining \(f_1(n_1)=(\frac{1+q}{p})^{n_1}\) and \(f_2(n_2)=1\) and requiring \(f_{1,2}(0)=1\), the following infinite-dimensional matrix representation satisfies the quadratic algebra (10)

$$\begin{aligned} D_1&= \sum _{i=0}^\infty f_1(i)\vert 0 \rangle \langle i\vert ,\nonumber \\ D_2&=\sum _{i=0}^\infty \vert 0\rangle \langle i\vert , \\ E&=\sum _{i=0}^\infty \vert i+1\rangle \langle i\vert .\nonumber \end{aligned}$$
(13)

Using (13) the grand-canonical partition function of the model can be written as

$$\begin{aligned} Z_t(p,q,z)=Tr[D_1C^{t-1}]= \sum _{i=0}^\infty f(i)\langle i \vert C^{t-1} \vert 0 \rangle \end{aligned}$$
(14)

where the matrix \(C=E+zD_2\) and that z is the fugacity of the first-class particles. According to the matrix representations (13) it can be verified that

$$\begin{aligned} C^{t-1}\vert j\rangle =\sum _{i=0}^{t-2}z(z+1)^{t-i-2}\vert i\rangle +\vert j+t-1\rangle . \end{aligned}$$
(15)

Now the grand-canonical partition function \(Z_t(p,q,z)\) can be calculated using (15)

$$\begin{aligned} Z_t(p,q,z)=\frac{pz\left( \frac{1+q}{p}\right) ^{t-1}}{1+q-p(1+z)}-\frac{pz(1+z)^{t-1}}{1+q-p(1+z)}+\left( \frac{1+q}{p}\right) ^{t-1}. \end{aligned}$$
(16)

The fugacity z has to be fixed by density of the first-class particles which is given by the following equation

$$\begin{aligned} \rho (z)=\frac{z}{t}\frac{\partial }{\partial z}\ln Z_t(p,q,z). \end{aligned}$$
(17)

It is known that the real positive values of the fugacity are of physical interest hence it is necessary that \(p \ < 1+q\). Using (16) it can be shown that in the thermodynamic limit the density of first-class particles can be written as follows

$$\begin{aligned} \rho (z)=\left\{ \begin{array}{lll} {}\frac{z}{1+z} \quad &{}\text{ for } \; z\ > \frac{1+q-p}{p} \\ {}0 \quad &{}\text{ for } \; z\ < \frac{1+q-p}{p} \end{array}\right. . \end{aligned}$$
(18)

According to (18) it turns out that there is a critical fugacity \(z_c=\frac{1+q-p}{p}\) at which the density of the first-class particles shows a finite discontinuity. The behavior of \(\rho (z)\) for \(z \ < z_c\) and \(z\ >z_c\) are different and the system undergoes a first-order phase transition provided that \(p\ <1+q\) . In Figs. 1 and 2 exact expression of the density of the first-class particles and its thermodynamic limit are plotted as a function of the fugacity z. As can be seen, in the thermodynamic limit both plots overlap. At \(z_c\) there is a finite discontinuity while for \(z\ >z_c\), \(\rho (z)\) grows with z until it saturates.

Fig. 1
figure 1

The density of the first-class particles as a function of fugacity z obtained from the exact solution (the blue line) and in the thermodynamic limit (the red dotted line) for \(t=200\), \(p=1\) and \(q=2\)

In [5] the authors have studied the spatial correlations in exclusion models corresponding to the Zero Range Processes. They have shown that the spatial correlations of the exclusion models that can be mapped onto the Zero Range Processes can be expressed in terms of 1-point and 2-point correlation functions \(G^{(1)}_i\) and \(G^{(2)}_{i,j}\). Given that the only impurity is at site 1, the density of the first-class particles at the lattice site i can be written as

$$\begin{aligned} G^{(1)}_i=\langle \rho _i\rangle =\frac{1}{Z_t(p,q,z)}Tr\left[ D_1C^{i-2}(z D_2)C^{t-i}\right] . \end{aligned}$$
(19)

Calculating (19) using (15) is straightforward and the result is

$$\begin{aligned} \langle \rho _i\rangle =A_1+A_2\exp {\left( \frac{-i}{\xi }\right) } \end{aligned}$$
(20)

in which \(\xi\) is a correlation length which is given by

$$\begin{aligned} \xi ^{-1}={\ln {\frac{p(1+z)}{1+q}}}. \end{aligned}$$
(21)

The coefficients \(A_1\) and \(A_2\) in (20) are functions of the transition rates pq and also the system size t

$$\begin{aligned} A_1&=\frac{p z^2 (1+z)^{t-2}}{p z\left[ (1+z)^{t-1}-\left( \frac{1+q}{p}\right) ^{t-1}\right] +(1+q-p-pz)\left( \frac{1+q}{p}\right) ^{t-1}}, \nonumber \\ A_2&=\frac{z\left( \frac{1+q}{p}\right) ^{-2}(1+q-p)(1+z)^t}{p\left( \frac{1+q}{p}\right) ^2 z\left[ (1+z)^{t-1}-\left( \frac{1+q}{p}\right) ^{t-1}\right] +(1+q-p-pz)\left( \frac{1+q}{p}\right) ^{t-1}}. \end{aligned}$$
(22)

The density of the first class particles increases exponentially from the vicinity of the second-class particle. In the thermodynamic limit the density of the first class particles \(\langle \rho _i\rangle\) behaves as (18) far from the second class particle.

It should be noted that in addition to infinite dimensional matrix representation (13) the quadratic algebra (10) has a 2-dimensional matrix representation. In [17] the authors have shown that the quadratic algebra (10) has a finite-dimensional representation which depends on the number of types of particles. The dimension of the matrix is M if the number of types of the particles is equal to M. Hence for our model with two species of particles the quadratic algebra (10) has a 2-dimensional matrix representation given by

$$\begin{aligned} D_1=\left( \begin{array}{cc} 1 &{} 0 \\ 1 &{} 0 \\ \end{array} \right) \quad , \quad D_2=\left( \begin{array}{cc} 0 &{} 1 \\ 0 &{} 1 \\ \end{array} \right) \quad ,\quad E=\left( \begin{array}{cc} \frac{1+q}{p} &{} 0 \\ 0 &{} 1 \\ \end{array} \right) . \end{aligned}$$
(23)

According to (23) the matrix \(C=E+zD_2\) in (14) can be written as

$$\begin{aligned} C=\left( \begin{array}{cc} \frac{1+q}{p} &{} z \\ 0 &{} 1+z \\ \end{array} \right) . \end{aligned}$$
(24)

It can be seen that the correlation length (21) can be written as a function of the eigenvalues of the 2-dimensional matrix C as

$$\begin{aligned} \xi ^{-1}=\ln \left( \frac{\lambda _1}{\lambda _2}\right) \end{aligned}$$
(25)

where \(\lambda _1=1+z\) and \(\lambda _2=\frac{1+q}{p}\), in agreement with the known results obtained in [18]. The 2-point correlation function \(G_{i,j}^{(2)}(z)=\langle \rho _i\rho _j\rangle\) can be written as

$$\begin{aligned} G_{i,j}^{(2)}(z)=\frac{z^2}{Z_t(p,q,z)}Tr\left[ D_1C^{i-2}D_2C^{j-i-1}D_2C^{t-j}\right] . \end{aligned}$$
(26)

Using (15) and (20) and after some straightforward calculations one can obtain \(G_{i,j}^{(2)}(z)\) explicitly

$$\begin{aligned} G_{i,j}^{(2)}(z)=\frac{z}{1+z}\langle \rho _i\rangle . \end{aligned}$$
(27)

The \((n + 1)\)-point correlations are written as \(G^{(n+1)}_{j_1 \ldots j_n}=\langle \rho _i \rho _{i+j_1}\ldots \rho _{i+j_1+\cdots +j_n}\rangle\)

$$\begin{aligned} G^{(n+1)}_{j_1 \ldots j_n} =\frac{1}{Z_t(p,q,z)}Tr[D_1C^{i-2}(z D_2)C^{j_1-i-1}(z D_2)C^{j_2-j_1-1}(z D_2) \ldots C^{t-n}]. \end{aligned}$$
(28)

Using (19) and (26) we can express the above equation in terms of \(G^{(1)}_i\) as follows

$$\begin{aligned} G^{(n+1)}_{j_1 \ldots j_n} =\left( \frac{z}{1+z}\right) ^{n}\langle \rho _i\rangle . \end{aligned}$$
(29)

We can calculate the critical exponents of model at the phase transition point. To find the critical exponent defined by \(\rho \propto (z-z_c)^{\beta }\), we only need to consider the behavior of the density of the first-class particles as a function of fugacity z at the critical point \(z_c=\frac{1+q-p}{p}\) in the thermodynamic limit. According to (17), it can be seen that the density of the first-class particles in the vicinity of \(z_c\) can be expressed as \(\rho \propto (z-z_c)^{-1}\). Hence the critical exponent \(\beta =-1\). Near the critical fugacity, \((1+z)\rightarrow \frac{1+q}{p}\). According to (20), it can be seen that in the thermodynamic limit the density profile \(\langle \rho _i\rangle \propto (z-z_c)^{-1}\). Hence, the critical exponent \(\alpha\) defined by \(\langle \rho _i\rangle \propto (z-z_c)^{\alpha }\) is \(\alpha =-1\). With the correlation function given asymptotically by \(G_{i,j}^{(2)}\sim \left( j-i\right) ^{-D+2-\eta }\exp (\frac{-(j-i)}{\xi })\) in which D is the dimension of the system, we find \(\eta =1\).

The walk model

In this section, we show that there exists a walk model which is equivalent to the driven-diffusive model explained in the previous sections. We consider a two-dimensional walk model in which a random walker can start from any height upper than the origin (0, j) in which j is an integer \(j \ge 0\). We assume that the random walker can take a finite number of steps on \({{{\mathbf {\mathtt{{Z}}}}}}_+^2=\{(i,j):i,j\ge 0 \quad \text{ are } \text{ integers}\}\) according to the rules which will be explained later. For the reasons that will become clear shortly we assume that the length of the lattice path is equal to \(t-1\). After taking a finite number \(t-1\) of consecutive steps, the random walker can get to the lattice site \((t - 1,\, {j'})\) where \({j'} = j,\, j+1, \ldots ,j+t -1\). The initial vertex (starting point) and the final vertex (end point) of the lattice path are weighted. This type of lattice path is introduced in [19]. For any path the weight of the start and end points depend on the height of these points. There are different ways that after taking the finite number of steps \(t-1\), the random walker can get to the lattice site \((t-1,\, {j'})\). The weight of a given path will be equal to the product of the weights of the start and end points and the consecutive steps. The random walker moves according to the following rules:

  1. 1.

    The random walker can start from any height upper than the origin as (0, j) where \(j=0,1,2,\ldots ,\infty\).

  2. 2.

    A path that starts from the height (0, j), after \(t-1\) steps might terminate at any height such as \((t-1,{j'})\) where \({j'}=j,j+1,j+2,\ldots ,j+t-1\).

  3. 3.

    The weight of the initial vertex (starting point) for the path that starts from the height (0, j) is \(q^j\).

  4. 4.

    The weight of the final vertex (end point) for the path that starts from the height (0, j) and terminates to the lattice site \((t-1,{j'})\), is \(\left( {\begin{array}{l} {{j'}} \\ {j} \\ \end{array}} \right) \frac{1}{p^{j'}}\)

  5. 5.

    For \(i\ge j\) and from the lattice site (ij) to \((i+1,j+1)\) the steps have the weight 1(upward steps).

  6. 6.

    For \(i\ge j\) and from the lattice site (ij) the random walker can drop to the surface \((i+1,0)\). These steps have the weight 1 (jump steps for \(j\ > 0\) and horizontal steps for \(j=0\)).

In Fig. 2 we have plotted two different paths of length 8 according to the above mentioned rules. We will be interested in those paths of fixed length which contain a certain number of jumps and horizontal steps (equivalently upward steps); therefore, for our later convenience we introduce an ad hoc fugacity z and change the last rule as follows: for \(i\ge j\) from the lattice site (ij) random walker can drop to the surface \((i+1,0)\) with the weight z.

Fig. 2
figure 2

Two lattice path that start from (0, 0) and (0, 2)

The position of the random walker in lattice path will be denoted by the vector \(\vert j\rangle\) in which j is the height relative to the horizontal plane which is a number between 0 and \(\infty\). These vectors have the following properties

$$\begin{aligned}&\vert j\rangle _k=\delta _{j,k} \quad \quad \text{ for }\, j,k=0,1,\ldots ,\infty , \nonumber \\&\langle j\vert {j'}\rangle =\delta _{j,{j'}} \quad \quad \text{ for }\, j,{j'}=0,1,\ldots ,\infty , \\&\sum _{j=0}^\infty \vert j\rangle \langle j\vert =\mathcal {I}\nonumber \end{aligned}$$
(30)

in which \(\mathcal {I}\) is an infinite-dimensional identity matrix. We assume that the random walker starts from the height \(\vert j\rangle\) in which \(j=0,1,\ldots ,\infty\). After taking \(t-1\) steps the random walker can get to the lattice site \((t-1,{j'})\) in which \({j'}=j,j+1,\ldots , j+t-1\). There are different paths to get to the lattice site \((t-1,{j'})\) . Each of these paths has its own weight. We now calculate the weight of a given path \(\mathbf {p}\) as follow

$$\begin{aligned} W_{\mathbf {p}}=w^i \left[ \prod _{i=1}^{t-1}w^{\mathrm{step}}(e_i)\right] w^f \end{aligned}$$
(31)

in which \(w^i\) and \(w^f\) are the weights of the start and end points and \(w^{\mathrm{step}}(e_i)\) is the weight of the i’th step in the path. We know that the transfer matrix updates the state of the random walker hence according to the rules of the steps in the lattice path and their weights, the transfer matrix corresponding to this lattice path can be written as follow

$$\begin{aligned} C\vert j\rangle =z\vert 0\rangle +\vert j+1\rangle . \end{aligned}$$
(32)

The matrix representation of the transfer matrix C is

$$\begin{aligned} C=\left( \begin{array}{lllllll} &{}z &{}z &{} z&{} z&{} &{} \cdots \\ &{}1 &{} 0 &{} 0 &{}0 &{} 0 &{} \cdots \\ &{}0 &{}1&{} 0 &{}0 &{}0 &{} \cdots \\ &{}0 &{} 0 &{}1 &{}0 &{}0 &{} \cdots \\ &{}\vdots &{} \vdots &{}\vdots &{}\vdots &{} &{} \end{array} \right) . \end{aligned}$$
(33)

The partition function of the lattice path

As we mentioned the random walker can start from the any height upper than the origin \(\vert j\rangle\) in which \(j=0,1,\ldots ,\infty\). We have also assumed that the total number of steps is \(t-1\). After taking these steps the random walker can get to the lattice site \((t - 1, {j'})\) where \({j'} = j, j+ 1, \ldots ,j+t-1\) through different paths. Each of these paths has its own weight. The partition function of the walk model is the sum of the unnormalized weights of different paths consisting of \(t - 1\) steps that start from different heights \(\vert j\rangle\) and get to the different heights \(\vert {j'}\rangle\) where \(j=0,1,\ldots ,\infty\) and \({j'}=j,j+1,\ldots ,j+t-1\). To obtain the partition function of the lattice path, we calculate the sum of the weights of all paths that start from the height \(\vert j\rangle\) and, according to the mentioned rules, after \(t-1\) successive steps get to the height \(\vert {j'}\rangle\). This sum is given by the following equation

$$\begin{aligned} Z_{j,{j'}}=w^i\langle {j'}\vert C^{t-1}\vert j\rangle w^f \end{aligned}$$
(34)

in which \(Z_{j,{j'}}\) is the sum of unnormalized weights of different paths that start from the lattice site (0, j) and after taking \(t-1\) steps get to the lattice site \((t-1,{j'})\). According to the mentioned rules the weight of the start and end points for each path that starts from the height \(\vert j\rangle\) and ends at the height \(\vert {j'}\rangle\) are given by

$$\begin{aligned} w^i=q^j, \quad w^f=\left( {\begin{array}{l} {{j'}} \\ {j} \\ \end{array}} \right) \frac{1}{p^{j'}}. \end{aligned}$$
(35)

Using the above equations the \(Z_{j,{j'}}\) can be written as

$$\begin{aligned} Z_{j,{j'}}=\left( {\begin{array}{l} {{j'}} \\ {j} \\ \end{array}} \right) \frac{q^j}{p^{{j'}}}\langle {j'}\vert C^{t-1}\vert j\rangle . \end{aligned}$$
(36)

Considering that the lattice path can start from different height \(\vert j\rangle\) in which \(j=0,1,\ldots ,\infty\) and end at different height \(\vert {j'}\rangle\) where \({j'}=j,j+1,\ldots , j+t-1\) then the partition function of the lattice path can be written as

$$\begin{aligned} Z=\sum _{j=0}^\infty \sum _{{j'}=j}^{j+t-1}\left( {\begin{array}{l} {{j'}} \\ {j} \\ \end{array}} \right) \frac{q^j}{p^{{j'}}}\langle {j'}\vert C^{t-1}\vert j\rangle . \end{aligned}$$
(37)

Using (15) the partition function of the lattice path is given by the following relation

$$\begin{aligned} Z_t(p,q,z)=\sum _{j=0}^\infty \sum _{{j'}=j}^{j+t-1}\left( {\begin{array}{l} {{j'}} \\ {j} \\ \end{array}} \right) \frac{q^j}{p^{{j'}}}\left( \sum _{k=0}^{t-2}z(z+1)^{t-k-2}\delta _{{j'},k}+\delta _{{j'},j+t-1}\right) . \end{aligned}$$
(38)

Hence, the partition function of the lattice path can be rewritten as

$$\begin{aligned} Z_t(p,q,z)=\sum _{j=0}^\infty \sum _{{j'}=j}^{j+t-1}\left( {\begin{array}{c} {{j'}} \\ {j} \\ \end{array}} \right) \frac{q^j}{p^{{j'}}}z(z+1)^{t-{j'}-2}+\sum _{j=0}^\infty \left( {\begin{array}{c} {j+t-1} \\ {j} \\ \end{array}} \right) \frac{q^j}{p^{j+t-1}}. \end{aligned}$$
(39)

Using Newton’s binomial expansion the above equation can be rewritten as follows

$$\begin{aligned} Z_t(p,q,z)=\sum _{j=0}^\infty \sum _{{j'}=j}^{j+t-1}\left( {\begin{array}{l} {{j'}} \\ {j} \\ \end{array}} \right) \frac{q^j}{p^{{j'}}}z(z+1)^{t-{j'}-2}+\frac{1}{p^{t-1}}\left( 1-\frac{q}{p}\right) ^{-t}. \end{aligned}$$
(40)

Note that all parameters in the summand are non-negative thus using Tonelli’s theorem we can interchange the summations, as \(\left( \sum _{j=0}^\infty \sum _{{j'}=j}^{t-1}\right) \equiv \left( \sum _{{j'}=0}^\infty \sum _{j=0}^{{j'}}\right)\). Hence, the partition function of the lattice path can be written as

$$\begin{aligned} Z_t(p,q,z)=\sum _{{j'}=0}^\infty \sum _{j=0}^{{j'}}\left( {\begin{array}{l} {{j'}} \\ j \\ \end{array}} \right) \frac{q^j}{p^{{j'}}}z(z+1)^{t-{j'}-2}+\frac{1}{p^{t-1}}\left( 1-\frac{q}{p}\right) ^{-t}. \end{aligned}$$
(41)

We are interested in the partition function of the original walk model in the special case, that after taking \(t-1\) successive steps, the random walker has taken a certain number of upward steps. We study the case in which after \(t-1\) successive steps, the random walker can be at the heights between 0 and \(t-M\) where \(M \le t\). To find the partition function of the model in this case, let us have a closer look at the role of the fugacity z. The weight associated with a horizontal or downward movement is proportional to z; therefore, the coefficient of \(z^{M-1}\) in (41) is equal to the partition function of the walk model which consists of at most \(t-M\) upward steps. The result is

$$\begin{aligned} (z+1)^{t-{j'}-2}=\sum _{i=0}^{t-{j'}-2}\left( {\begin{array}{c} {t-{j'}-2} \\ i \\ \end{array}} \right) z^i. \end{aligned}$$

Using the above equation, the coefficient of the \(z^{M-1}\) can be easily calculated as follows

$$\begin{aligned} Z_{t,M}(p,q)=\sum _{{j'}=0}^{t-M}\sum _{j=0}^{{j'}}\left( {\begin{array}{c} {{j'}} \\ j\\ \end{array}} \right) \left( {\begin{array}{c} {t-{j'}-2} \\ M-2\\ \end{array}} \right) \frac{q^j}{p^{{j'}}}. \end{aligned}$$
(42)

One can interpret this partition function as the sum of the weights of all paths that have the length \(t-1\) which contain \(t-M\) upward steps (or equivalently \(M-1\) horizontal and downward steps).

The phase behavior of the lattice path in the thermodynamic limit

As a relevant quantity, one can investigate the mean height of the random walker. The probability that the paths who starts from the height \(\vert j \rangle\), and after \(t-1\) successive steps according to the rules of the lattice path end at the height \(\vert {j'} \rangle\), is given by

$$\begin{aligned} P_{t,M}(j,{j'})=\frac{1}{Z_{t,M}(p)}\frac{q^j}{p^{j'}}\left( {\begin{array}{c} {{j'}} \\ j\\ \end{array}} \right) \left( {\begin{array}{l} {t-{j'}-2} \\ M-2\\ \end{array}} \right) . \end{aligned}$$
(43)

Hence the average height of all possible paths in the lattice path is

$$\begin{aligned} \langle h \rangle =\sum _{{j'}=0}^{t-M}\sum _{j=0}^{{j'}} {j'} P_{t,M}(j,{j'}). \end{aligned}$$
(44)

It should be noted that in the above equation the arrangement of the index has been changed with respect to the Tonelli theorem. According to (42), the average of the height in lattice path is given by the following relation

$$\begin{aligned} \langle h \rangle =-p \frac{\partial \ln Z_{t,M}(p)}{\partial p}. \end{aligned}$$
(45)

In the thermodynamic limit due to the behavior of the partition function of the lattice path, it turns out that the mean height of the random walker is given by

$$\begin{aligned} \langle h \rangle =\left\{ \begin{array}{ll} t\left( 1-\rho -\frac{p}{1+q-p}\rho \right) \quad \text{ for } \; p-q<1-\rho \left( 1+q\right) \\\frac{p}{p-\left( 1-\rho \right) \left( 1+q\right) }-1\quad \text{ for } \; p-q>1-\rho \left( 1+q\right) \end{array} \right. . \end{aligned}$$
(46)

As can be seen in the thermodynamic \(t\rightarrow \infty\), there is a phase transition from a phase in which the mean height of the random walker is of order t to another phase where it is \(\left( 1-\rho \right) \left( 1+q\right) /\left[ p-\left( 1-\rho \right) \left( 1+q\right) \right]\). If \(q=0\) the results are exactly those obtained in  [11].

Concluding remarks

In this paper, we have introduced a two-species driven-diffusive model of classical particles defined on a one-dimensional lattice with periodic boundary condition which can be mapped onto a zero-range process. The canonical partition function of the model is calculated and phase behavior of this model is investigated. After calculating the grand canonical partition function, the critical fugacity is obtained at which the model undergoes a first-order phase transition. The density profile of the model is calculated exactly and the spatial correlations of the model are obtained in terms of 1-point correlation function. We have introduced a two-dimensional walk model in which the random walker, in contrast with the lattice path introduced in [11], can start from any height upper than the origin and that the end point of the lattice path can be at any height upper than the start point. This type of lattice path is introduced in [19]. The partition function of the lattice path is calculated using the transfer matrix method. Comparing this partition function with that of the driven-diffusive model we have shown that these two model are equivalent. It should be noted that the walk model introduced in [11] and the one introduced in present work can be mapped onto zero-range process.