Skip to main content
Royal Society Open Science logoLink to Royal Society Open Science
. 2018 Feb 14;5(2):171599. doi: 10.1098/rsos.171599

Implementing Parrondo’s paradox with two-coin quantum walks

Jishnu Rajendran 1, Colin Benjamin 1,
PMCID: PMC5830762  PMID: 29515873

Abstract

Parrondo’s paradox is ubiquitous in games, ratchets and random walks. The apparent paradox, devised by J. M. R. Parrondo, that two losing games A and B can produce a winning outcome has been adapted in many physical and biological systems to explain their working. However, proposals on demonstrating Parrondo’s paradox using quantum walks failed for a large number of steps. In this work, we show that instead of a single coin if we consider a two-coin initial state which may or may not be entangled, we can observe a genuine Parrondo’s paradox with quantum walks. Furthermore, we focus on reasons for this and pin down the asymmetry in initial two-coin state or asymmetry in shift operator, either of which is necessary for observing a genuine Parrondo’s paradox. We extend our work to a three-coin initial state too with similar results. The implications of our work for observing quantum ratchet-like behaviour using quantum walks are also discussed.

Keywords: random walks, quantum games, Parrondo’s paradox

1. Introduction

Parrondo’s paradox consists of a sequence of games, individually each of which are losing games but provide a winning outcome when played in a deterministic or random order. It has been shown that Parrondo’s games have important applications in many physical and biological systems [1,2]. Quantum version of Parrondo’s games was introduced in [36]. Quantum version of the classical random walk on other hand was introduced in 1993 in [7] and is developed and studied extensively throughout the years [8]. In [3,6,9], Parrondo’s games are explored using one-dimensional discrete time quantum walk (DTQW). When a game is played, the net expectation of position of the walker defines a win or a loss. It has been already shown that quantum walk version of Parrondo’s paradox does not exist in the asymptotic limits [3,4]. The need for studying Parrondo’s games via quantum walks is necessitated by the search for applications in building better algorithms [10] and to explain physical process like quantum ratchets [11].

2. Motivation

Our motivation in this work is to implement a genuine Parrondo’s paradox via quantum walks. We show that while previous attempts at implementing Parrondo’s paradox with quantum walks failed in the asymptotic limits [3,4] our method using two-coin initial states gives a genuine Parrondo’s paradox even in the asymptotic limits.

Parrondo’s game as originally introduced in [12,13] is a gambling game. A player plays against a bank with a choice of two games A and B, whose outcomes are determined by the toss of biased coins. Each of these games is losing when played in isolation, but when played alternately or in some other deterministic or random sequence (such as ABB…,ABAB…, etc.) can become a winning game. Owing to this counterintuitive nature, Parrondo’s games are also referred to as Parrondo’s paradox. The apparent paradox that two losing games A and B can produce a winning outcome when played in an alternating sequence was originally devised by Juan M. R. Parrondo as a pedagogical illustration of the Brownian ratchet [13]. Parrondo’s games have important applications in many physical and biological systems, e.g. in control theory the random/deterministic combination of two unstable systems can produce an overall stable system [1].

The one-dimensional DTQW implementation of Parrondo’s paradox is as follows: Consider two games A and B played alternately in time. Games A and B are represented by different quantum operators U(αA,βA,γA) and U(αB,βB,γB) [14,15],

U(α,β,γ)=(eiαcosβeiγsinβeiγsinβeiαcosβ). 2.1

The initial state of the quantum walker is |Ψ0=12|0(|0i|1), where first ket refers to the position space and second ket refers to the single-coin space which is initially in a superposition of heads and tails. The shift in the position space, say from |n〉 to |n−1〉 or |n+1〉, is defined by a unitary operator called shift operator (S) defined as,

S=n=|n+1n||00|+n=|n1n||11|. 2.2

Games A and B are played alternately in different time steps, i.e. game A is played on time steps t=nq and game B is played on time steps tnq, where q is the period and n is an integer. The evolution operator can be written as

U={SU(αA,βA,γA)if t=nq,nZSU(αB,βB,γB)if tnq,nZ 2.3

and the final state after N steps is given by |ΨN〉=UN|Ψ0〉. For q=3, it means we play games with the time sequence ABBABB…. As denoted in figure 1, after N steps, if the probability PR of the walker to be found to the right of the origin is greater than the probability PL to be found to the left of the origin, i.e. PRPL>0, we consider the player to win. Similarly, if PRPL<0, the player loses. If PRPL=0, it means the player neither loses nor wins, it is a draw. By making use of the above scheme, Parrondo’s games using one-dimensional DTQW are formulated. The game is constructed with two losing games A and B having two different biased coin operators UA(αA,βA,γA) and UB(αB,βB,γB), if we set αA=−51,βA=45,γA=0,αB=0,βB=88,γB=0, UAS=US(51,45,0), UBS=US(0,88,16) as in figure 2a. We form a game with sequences ABBB. This results in winning at the beginning, but in the asymptotic limit the player will lose as in figure 2b, one can check for different sequences like ABABABBABB… etc. and in all cases in the asymptotic limits we lose. Hence Parrondo’s paradox does not exist in the case of one-dimensional DTQW. This fact was noted in [3,4] also. In particular, [3] shows with many different sequences like ABAB…, AABAAB…, etc. at large steps, there is no Parrondo’s paradox. Hence, our motivation to find circumstances for the existence of a genuine Parrondo’s paradox in quantum walks. It is possible to show the convergence of quantum walk as obtained in figure 2a analytically. The analytical form of convergence mentioned in Theroem 1 of [16] for a single-coin quantum walk can be used for calculating the asymptotic limit.

E=(11|eiαcosβ|2)λ, 2.4

where

λ=ieiαcosβ(eiγ)sinβ+ieiαcosβ(eiγ)sinβ2|eiαcosβ|2,

Figure 1.

Figure 1.

Pictorial illustration of the conditions for win or loss for QWs on a line.

Figure 2.

Figure 2.

(a) PRPL of the walker after t steps, with initial state |Ψ0=12|0(|0i|1), and coin operator A=US(−51,45,0) (red line) or B=US(0,88,−16) (green line). (b) PRPL of the walker with games played in sequence ABBBABBB… (i.e. q=4), A=US(−51,45,0), B=US(0,88,−16) (1600 steps), herein initially you win (steps<100), but at large steps you lose.

where E is the convergence value of the quantum walk. The convergence for the single-coin quantum walk when the coin operates AAAA… and BBBB…(A=U(−51,45,0), B=U(0,88,−16)) is calculated and found to be −0.227621 and −0.480834, respectively, which is very close to that of the numerical results found in figure 2a.

Considering the classical limit of the quantum walk with a single coin, with classical operators Identity(I) and NOT(X), we obtain the classical random walk probability distribution. If A=Identity(I) and B=NOT(X) operators are used, then for the classical walk we have PRPL=0 in the case of AAAA… and BBBB… as well as ABAB… implying the absence of any Parrondo’s paradox. This is in conformity with results of a classical random walk which has a Gaussian distribution with mean and median equal to zero.

3. Parrondo’s paradox using two-coin initial state

As in the previous section, the elements of our two-coin quantum walk are the walker, coins, evolution operators for both the coins, walker and a set of observables. The walker is a quantum system with its position denoted as |position〉 residing in a Hilbert space of infinite but countable dimension HP. The basis states |iP which span HP, and any superposition of the form iαi|ip which are subject to i|αi|2=1, are valid states for the walker [17]. The walker is usually initialized at the ‘origin’, i.e. |position〉0=|0〉P. The two-coin initial state is a quantum system in a four-dimensional Hilbert space HEC. We denote the two-coin initial state as |coin〉0, which may or may not be entangled

|coin0=cos(θ2)|10+isin(θ2)|01. 3.1

The initial state of the quantum walker resides in the Hilbert space HT=HPHEC and has the following form:

|ψ0=|position0|coin0 3.2

which using equation 3.1, gives |ψ0=|0(cos(θ/2)|10+isin(θ/2)|01). Evolution operators used are unitary as before and as the coin is a bipartite system, the coin is defined as the tensor product of two single-qubit coin operators: CEC=Uαk,βk,γkUαl,βl,γl, where k, l can be any of the Game A and B. The evolution operator is fully separable, thus any entanglement in the coins is due to the initial states used. The conditional shift operator SEC allows the walker to move either forward or backward, depending on the state of the coins. The operator

SEC=i|i+1ppi||00cc00|+i|ippi||01cc01|+i|ippi||10cc10|+i|i1ppi||11cc11| 3.3

incorporates the stochastic behaviour of the random walk with a two-coin initial state. It is only when the coin is in the |00〉 or |11〉 state that the walker moves either forward or backward else the walker does not move. The full evolution operator has the structure UT=SEC.(IpCEC) and one can mathematically represent a two-coin quantum walk after N steps as |ψN=(UT)N|ψ0, where |ψ0 denotes the initial state of the walker and the coins. As defined before, winning and losing in the context of Parrondo’s game, after N time steps if the probability PR of the walker to be found to the right of the origin is greater than the probability to be found to the left of the origin, i.e. PRPL>0 we consider the player to win. However, if PRPL<0 then the player loses, and if PRPL=0 it implies a draw. To obtain a genuine Parrondo’s paradox the two games A and B are now played on the two-coin space as follows: UAUB is operated on the two coins and in the next step UBUA is played on the two coins. Thus, for the first coin we have the series ABAB… while on the second coin we have BABA…. The coin operators can as before be defined as

X=AB=CEC=U(51,45,0)U(0,88,16)

and

Y=BA=CEC=U(0,88,16)U(51,45,0)

and are played alternately in time, i.e. in sequence XYXY… and the plot for PRPL as shown in figure 3a is obtained. It is evident that the sequence XYXY… provides a winning outcome for two losing games at a large number of steps. The fact that individually the sequence AAA… on the first coin and BBB… on second coin give a losing outcome can be seen from PRPL plot in figure 3b.

Figure 3.

Figure 3.

(a) Parrondo walk is evident even at a large number of steps for partially entangled coin states (θ=π/4) when ABAB… is played on the first coin and BABA… on the second coin. (b) However, when AAAA… is played on the first and BBBB… on the second coin, one gets a losing outcome. In (c), we show similar to a partially entangled state a non-entangled state (θ=0) also gives a Parrondo’s paradox for a large number of steps when ABAB… is played on the first coin & BABA… on second coin and finally in (d) we show that PRPL is negative at large steps when AAA… and BBB… are played on the two coins.

4. Discussion

From figure 3, one can convincingly conclude that to obtain a genuine Parrondo’s paradox via quantum walks one needs a non-entangled or a partially entangled two-coin state. When a single coin was considered (as in figure 2) the outcome of Parrondo’s games did not give rise to the paradox for quantum walk with large number of steps. To obtain a Parrondo’s paradox, what is needed is a two-coin state. Finally, what are the plausible reasons for the success of the two coin initial state when compared with the single-coin state? We can start by identifying the reasons which do not lead to Parrondo’s paradox. First, entanglement has no or marginal role. Maximally entangled coins lead to a draw as the probability distribution is perfectly symmetric as noted before in [17], but non-entangled or partially entangled coins lead to a Parrondo’s paradox. Furthermore, in figure 4, we plot the amount of entanglement present in a quantum system, i.e. the concurrence [18]. The concurrence is zero for a separable state and one for a maximally entangled state. Figure 4 shows the concurrence for our arbitrary two-coin state as a function of θ. One sees that Parrondo’s paradox is observed for 0<θ<π/2 and 3π/2<θ<2π with the definition as in figure 1. In the region π/2<θ<3π/2, there is a role reversal and thus our definition for Parrondo’s paradox as used in figure 1 is also reversed.

Figure 4.

Figure 4.

Plot of concurrence (green), PRPL (red, solid) for ABAB… on the first coin and BABA… on the second coin, and finally PRPL (red, dashed) for AAAA… on the first coin and BBBB… on the second coin. Note that Parrondo’s paradox is observed for 0<θ<π/2 and 3π/2<θ<2π with the definition as in figure 1. In the region π/2<θ<3π/2, there is a role reversal and thus our definition for Parrondo’s paradox as used in figure 1 is also reversed.

Next, the initial state? Here, the answer is more complicated. As we have seen, the initial state can be a product state for maximal violation of the paradox, this is evident from figure 3. The initial state, thus, does play a role; however, this is not without qualification. The shift operator also plays a role which we discuss after this. Let us focus on the initial state. Supposing the shift operator is defined as before in equation 3.3. We compare the quantum walks starting with initial states |11〉 and |00〉 in figure 5. Both do not lead to Parrondo’s paradox. This may give the impression that only when one has initial two-coin state |01〉 or |10〉 composed of orthogonal coin states do we see a Parrondo’s paradox. However, it is not the complete picture. The shift operator plays a non-trivial role. If we change the shift operator (see equation (3.3)) from two wait states to just a single wait state as in equation 4.1, then a different picture emerges.

SEC=i|i+1ppi||00cc00|+i|i+1ppi||01cc01|+i|ippi||10cc10|+i|i2ppi||11cc11| 4.1

Figure 5.

Figure 5.

Parrondo’s paradox and the initial two-coin state. (a) Plot of PRPL for ABAB… on the first coin and BABA… on the second coin for state |00〉, (b) plot of PRPL for ABAB… on the first coin and BABA… on the second coin for state |11〉, (c) plot of PRPL for AAAA… on the first coin and BBBB… on the second coin for state |00〉 and finally (d) plot of PRPL for AAAA… on the first coin and BBBB… on the second coin for state |11〉. For both |00〉 and |11〉 state there is no Parrondo’s paradox. For state |00〉, there is a role reversal and thus our definition for Parrondo’s paradox as used in figure 1 is also reversed.

In figure 6, we plot PRPL for around 800 time steps for both initial states |00〉 and |10〉 with the new shift operator defined with a single wait state as in equation 4.1. In this case for both |00〉 and |10〉 states we see Parrondo’s paradox. To conclude, the most plausible reason for observing Parrondo’s paradox is both due to some asymmetry which comes into play in a two coin state and is not possible to include in the single-coin state. The asymmetry may be in the initial quantum state or in the shift operator.

Figure 6.

Figure 6.

Parrondo’s paradox with a shift operator with one wait state (equation (4.1)). (a) Plot of PRPL for ABAB… on the first coin and BABA… on the second coin for state |00〉, (b) plot of PRPL for AAAA… on the first coin and BBBB… on the second coin for state |11>, (c) plot of PRPL for ABAB… on the first coin and BABA… on the second coin for state |00〉 and finally (d) plot of PRPL for AAAA… on the first coin and BBBB… on the second coin for state |11〉. For both |00〉 as well as |11〉 state there is now Parrondo’s paradox with shift operator as defined in equation 4.1. For state |00〉 there is a role reversal and thus our definition for Parrondo’s paradox as used in figure 1 is also reversed.

Finally, what are the implications for more than two-coin initial state? To test this we consider two different three-coin initial states: |010〉 and |000〉. Similar to the two-coin case discussed earlier, the coin is defined as the tensor product of three single-qubit coin operators: CEC=Uαk,βk,γkUαl,βl,γlUαm,βm,γm, where k, l and m can be any of the games A and B. The conditional shift operator SEC allows the walker to move either forward or backward, depending on the state of the coins and is defined as

SEC=i|i+2ppi||000cc000|+i|i+1ppi||001cc001|+i|ippi||010cc010|+i|ippi||011cc011|+i|ippi||100cc100|+i|ippi||101cc101|+i|i1ppi||110cc110|+i|i2ppi||111cc111| 4.2

incorporates the stochastic behaviour of the random walk with a three-coin initial state. When the coin is in the |000〉 or |111〉 state that the walker moves two steps at once either forward or backward, while when the coin is in state |001〉 or |110〉 the walker moves one step either forward or backward and for the rest of the cases the walker remains fixed. The full evolution operator similar for the two-coin case has the structure UT=SEC.(IpCEC) and the three-coin quantum walk after N steps is written as |ψN=(UT)N|ψ0, where |ψ0 denotes the initial state of the walker and the coins. In order to obtain a genuine Parrondo’s paradox, the two games A and B are now played on the three-coin space as follows: UAUBUA is operated on the three coins and in the next step UBUAUB is played on the three coins. Thus, for the first and third coins, we have the series ABAB… while on the second coin we have BABA…. The coin operators can as before be defined as

X=ABA=CEC=U(51,45,0)U(0,88,16)U(51,45,0)

and

Y=BAB=CEC=U(0,88,16)U(51,45,0)U(0,88,16)

and are played alternately in time, i.e. in sequence XYXY… and the plot for PRPL as shown in figure 7a is obtained. It is evident that the sequence XYXY… provides a winning outcome for two losing games even at a large number of steps. The fact that individually the sequence AAA… on the first and the third coins while BBB… on second coin gives a losing outcome can be seen from PRPL plot in figure 7b. In figure 7c,d, we plot the median PRPL for the initial three-coin state |000〉, we confirm the absence of any Parrondo’s paradox for this initial state, confirming the trend seen for two-coin initial states with symmetric shift operator.

Figure 7.

Figure 7.

Parrondo’s paradox with an initial three-coin state. (a) Plot of PRPL for ABAB… on the first and the third coins and BABA… on the second coin for state |010〉, (b) plot of PRPL for AAAA… on the first and the third coins and BBBB… on the second coin for state |010〉, (c) plot of PRPL for ABAB… on the first coin and BABA… on the second coin for state |000〉 and finally (d) plot of PRPL for AAAA… on the first and the third coins and BBBB… on the second coin for state |000〉. For |000〉 state, there is no Parrondo’s paradox. For state |010〉, we see a Parrondo’s paradox; however, there is a role reversal and thus our definition for Parrondo’s paradox as used in figure 1 is also reversed.

To conclude this section, the initial state has a great bearing on having Parrondo’s paradox in a quantum walk or not. In both the two-coin and three-coin states when coins are orthogonal we see the paradox, and for the case when they are not, the paradox disappears. Of course, the aforesaid is subject to the qualification that the shift operator which controls the position of the coin state has an important bearing. Asymmetry in either the initial two-coin state, e.g. |10〉 or |01〉 or an asymmetric shift operator (in the case where the initial state is |00〉 or |11〉) is necessary for obtaining a Parrondo’s paradox with quantum walks.

5. Conclusion

Our goal in this work was to show evidence of a genuine Parrondo’s paradox using quantum walks and we show this using a two-coin state. We also considered entanglement between the two coins and showed that maximally entangled states do not show any paradox, while non-entangled and partially entangled states do show the paradox. We also tried to understand the reasons behind this paradox. The most plausible reason behind observing the paradox with two or more coin initial states is the introduction of asymmetry either in the initial coin state or in the shift operator with one or two wait states in addition to left or right shifts. Our work can be considered as a demonstration of a quantum ratchet too, implying particle transport against an applied bias in the presence of noise or perturbations. In our case, the noise parameter can be considered to reduce entanglement, thus looking at figure 4, from zero asymmetry in probability distribution, i.e. non-directed transport, when there is maximal entanglement to finite asymmetry in probability distribution, i.e. directed transport when there is no entanglement, is a clear marker of quantum ratchet-like behaviour of our system. The quantum ratchet analogies in Parrondo’s paradox with quantum walks were also noticed in [6], however without any entanglement. New quantum walks are of great interest to the community as their investigation may lead to new quantum algorithms, which are of great interest to the quantum computation community at present.

Data accessibility

This article has no additional data. The Mathematica code used in our paper has been adapted from the Mathematica examples on quantum walks available in the public domain in [19], see for additional examples http://homepage.cem.itesm.mx/lgomez/quantum/.

Author contributions

C.B. conceived the proposal; J.R. did the calculations on the advice of C.B.; J.R. and C.B. wrote the paper and analysed the results.

Competing interests

We have no competing interests.

Funding statement

Science and Engineering Research Board, New Delhi, Govt. of India funded this research under grant no. EMR/2015/001836.

References

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Citations

  1. Gómez-Muñoz JL, Delgado F. Mathematica add-on for Dirac Bra-Ket notation, quantum algebra and quantum computing. See http://homepage.cem.itesm.mx/lgomez/quantum/.

Data Availability Statement

This article has no additional data. The Mathematica code used in our paper has been adapted from the Mathematica examples on quantum walks available in the public domain in [19], see for additional examples http://homepage.cem.itesm.mx/lgomez/quantum/.


Articles from Royal Society Open Science are provided here courtesy of The Royal Society

RESOURCES