Abstract
The dynamics of a spatial quantum formulation of the iterated Samaritan’s dilemma game with variable entangling is studied in this work. The game is played in the cellular automata manner, i.e. with local and synchronous interaction. The game is assessed in fair and unfair contests, in noiseless scenarios and with disrupting quantum noise.
Keywords: quantum games, noise, Samaritan dilemma, cellular automata
1. The classic and quantum Samaritan’s dilemma
The Samaritan’s dilemma (SD) is a non-zero sum, asymmetric game played by two players: the charity player A and the beneficiary player B. Player A may choose Aid/No Aid, whereas player B may choose Work/Loaf. The Samaritan’s dilemma arises in the act of charity. The charity wants to help (Aid) people in need. However, the beneficiary may simply rely on the handout (Loaf) rather than try to improve their situation (Work). This is not anticipated by the charity. Many people may have experienced this dilemma when confronted with people in need. Although there is a desire to help them, there is the recognition that a handout may be harmful to the long-run interests of the recipient [1–5]. Following Huang et al. [6], Ozdemir et al. [7] and Rasmussen [8], we adopt here the pay-off matrices PA and PB given in figure 1a.
Figure 1.
Pay-off matrices (a), reaction functions (b) and pay-off region in the Samaritan’s dilemma (c) studied in this article.
1.1. The classic context
In conventional classic games, both players decide independently their probabilistic strategies x=(x,1−x)′ and y=(y,1−y)′. As a result, the expected pay-offs (p) in the SD game are
| 1.1 |
The SD belongs to the class of the so-called discoordination games, i.e. games with no pair of pure strategies in Nash equilibrium (NE), where the one player’s incentive is to coordinate (charity (A,W)), while the other player tries to avoid this (beneficiary (A,L)). Figure 1b shows the reaction functions whose intersection determines the NE, i.e. x is a best response to y and y is a best response to x. In our case, (x=0.5; y=0.2), with associated pay-offs pA=−0.2, pB=1.5. Figure 1c shows the pay-offs region of the studied game, which turns out negative for player A in points such as the NE, whereas this does not happen for player B.
Let us remark here then, that the pay-offs of the SD are biased towards the beneficiary player B. In other words, the dilemma of the Samaritan game (sometimes referred to as the Welfare game) is somehow only that of the charity (or Samaritan) player A.
In a different game scenario, that of correlated games, an external probability distribution assigns probability to every combination of player choices [9]. Thus, the expected pay-offs in the SD are
| 1.2 |
The quantum game approach described in the next subsection, participates of both the independent players (1.1) and of the correlated games (1.2) models.
1.2. Quantum games
In the quantization scheme introduced by Eisert et al. [10] (EWL for short), the classical pure strategies are assigned two basic vectors |0〉 and |1〉, respectively, in a two-level Hilbert space. The state of the game is a vector in the tensor product space spanned by the basis vectors |00〉, |01〉, |10〉, |11〉. The seminal paper [10] deals with the Prisoner’s Dilemma, so that the classical pure strategies for both players are that of Cooperation and Defection, referred to as C and D, respectively. We will keep this strategy codification in this section, although in the context of the SD game C standing for Aid for the Samaritan—Work for the beneficiary, and D standing for no Aid for the Samaritan—Loaf for the beneficiary. The EWL quantum protocol, described below, includes the classical approach as a particular case, but with the purely classical strategies referred to as and , so that the hat operator mark indicates by itself that a quantum approach is taken into account.
The EWL protocol starts with an initial entangled state , where the symmetric unitary operator , entangles the player’s qubits. The entanglement factor γ varies in the [0,π/2] interval, tuning the degree of entanglement. The initial state then becomes: . Consequently, the initial density matrix is
| 1.3 |
The players perform independently their quantum strategies as local unitary operators (,) in the SU(2) space. With the only exception of §4, we will consider here the two-parameter subset (2P) of SU:
| 1.4 |
After the application of these strategies, the state of the game evolves to . Prior to measurement, the gate is applied and the state of the game becomes: . This follows a pair of Stern–Gerlach type detectors for measurement. As a result, the elements of are obtained as the diagonal elements of the final density matrix:
| 1.5 |
The outstanding strategy in a contest gives rise to π11=1∀γ, and in consequence the pay-offs of the (A,W) choice. Thus, in the quantum Samaritan dilemma game (QSD) here studied, pA=3 and pB=2, as may be checked in the horizontal lines of figure 2a under the label μ=0.0.
Figure 2.
Pay-offs in a QSD with variable entanglement factor γ. (a) , (b) , (c) and (d) Three levels of noise (μ) are considered in each frame. Red: pay-offs of player A (Samaritan), blue: pay-offs of player B (beneficiary).
The two-parameter (2P) model using the two-parameter operators given in (1.4) may be criticized as being just a subset of the general SU(2) space of unitary strategies which allows for three parameters. A subset that is not a closed set and fails to reflect any reasonable physical constraint [11,12]. As pointed out in the seminal paper dealing with the quantum Samaritan’s dilemma [7], the 2P-restriction in the original formulation of the EWL model is a subject of continuing discussions. But accordingly with that stated in [7], the 2P-EWL model is a good (and widely used) test-bed to show how the quantum approach in game theory may solve dilemmas, by allowing for NE strategies out of the scope of the classic approach [13]. Consequently, the structure of this study follows the way paved for the paper [14] (a sequel of the seminal paper [10]) dealing with the prisoner’s dilemma game, and more importantly regarding this study in [7]: one-parameter (classic, §1.1) two-parameters (§§2 and 3) three-parameters (§4).
1.3. Quantum noise
Real-world quantum information processing systems inevitably interact with the environment. The environmental noise may destroy the quantum properties and be harmful to our purpose of information processing. So it is important to take quantum noise into our consideration [15].
In the presence of noise, the shared state is corrupted before the players apply their strategies . The noise effect on a single qubit can be described by CPTP (completely positive trace-preserving) maps: , with . We assume both qubits of the shared state are affected by the same kind of noise. As a result,
| 1.6 |
We will consider here the effect of amplitude-damping noise type:
| 1.7 |
where μ∈[0,1] represents the strength of noise.
The final density matrix for becomes,
The pay-off dependence of γ in the SD of Q versus the pure strategies C and D with may be checked in figure 2 under the label . In the (Q, Q) scenario in particular, the pay-offs become: and , which equalize at , i.e. at , giving pA,B=1.777. Beyond γ=1.460 it is , as with full entangling where .
With maximum noise it is
which leads to
Permuting the columns, the rows and the rows and columns of ΠQQ, generates ΠQD, ΠDQ and ΠDD, respectively. The pay-off dependences of γ in the SD of the pure strategies with full noise may be checked in figure 2 under the label μ=1. In particular, in the (Q,Q) context, , .
Let us remark that only amplitude-damping quantum noise will be under scrutiny in this study. The effect of other types of quantum noise [16] will be taken into account in future work. In particular that of phase-damping, structurally close to amplitude-damping as both damping noises have the same K1 Kraus operator, deferring in with phase damping. Mirroring the proximity of the two noise types, with full phase-damping noise, ΠQQ becomes diagonal as with amplitude damping, but with instead of . With μ=0.5 phase damping, ΠQQ also turns out diagonal () so that pA>pB, ∀γ, at variance with what happens with amplitude damping where both pay-offs intersect as indicated before.
2. The spatialized quantum Samaritan dilemma game
In the spatial version of the quantum SD (QSD-CA), we deal with each player occupying a site (i,j) in a two-dimensional N×N lattice. In order to compare different types of players, two types of players, termed A and B, are to be considered. A and B players alternate in the site occupation in a chessboard form, so that every player is surrounded by four orthogonal adjacent partners (A−B, B−A), and four diagonal adjacent mates, i.e. players with the same role, either Samaritan or beneficiary (A−A, B−B). The game is played in the cellular automata (CA) manner, i.e. with uniform, local and synchronous interactions [17]. In this way, every player plays with his four adjacent partners, so that the pay-off of a given individual is the sum over these four interactions. The evolution is ruled by the (deterministic) imitation of the best paid neighbour, so that in the next generation, every generic player (i,j) will adopt the parameters of his mate player (k,l) with the highest pay-off among their mate neighbours.
All the simulations in this work are run up to T=200 in a N=200 lattice with periodic boundary conditions and five different initial random assignment of the (θ,α) parameter values in each scenario. In the subsequent figures, the results regarding the charity player A have been marked red, and those regarding the beneficiary player B have been marked blue. With the exception of figures 4, 9, and 16, the subsequent figures deal with the results obtained in QSD-CA simulations at T=200 with variable entanglement factor γ at three noise levels. These figures show in their left frame the mean pay-offs across the lattice () of both player types, and in their right frame the mean parameter values across the lattice. The computations have been performed by a double precision Fortran code run on a mainframe.
Figure 4.
Dynamics in three simulations in the QSD-CA scenario of figure 3. (a) γ=0, (b) γ=π/4 and (c) γ=π/2.
Figure 9.
Quantum parameter (θ,α) and pay-off (p) patterns at T=200 in a simulation with γ=π/2 in the QSD-CA with full noise scenario of figure 8.
Figure 16.
Dynamics up to T=100, and quantum parameter (θ,α) and pay-off patterns (p) at T=100 in a simulation with γ=π/2 in the QSD-CA unfair scenario of figure 15.
Before presenting the results obtained regarding the Samaritan’s dilemma, let us point here that this study follows the way paved by previous studies dealing with CA simulations of prototypical games such as the symmetric Prisoner’s Dilemma (PD) [18–21] and the asymmetric Battle of the Sexes (BoS) [22–25]. Unlike the discoordination SD game, both the PD and the BoS have NE based on pure strategies, which marks a decisive qualitative difference in the study of the SD compared with those of the PD and the BoS.
Figure 3 deals with the results obtained in a QSD-CA simulation free of noise. The beneficiary player B clearly overrates the charity player A for low values of the entanglement, so that for γ up to just passed π/8, oscillates slightly below zero, whereas oscillates slightly over around 1.5, thus not far from (−0.2,1.5), the pay-offs in classic NE. If γ=0 (or if αA=αB=0), Π becomes factorizable as in the classic game with independent strategies (1.1), i.e. Π=xy′, with , , which makes the α parameters irrelevant. It is , , not far from 3π/4=2.351 . Over π/8 and before π/4, figure 3b shows that gradually tends to zero as γ increases, which is reflected in a stabilization of in figure 3a. From γ=π/4, and before π/4, and , i.e. both players adopt the strategy. Remarkably, the pair is the only pair in NE for γ>π/4. This is so because, (i) pQQB=2 and , so that for γ>γ*=π/4 and (ii) pQQA=3 and , so that .
Figure 3.
Five noiseless simulations at T=200 of a QSD-CA with variable entanglement γ. (a) Mean pay-offs and (b) mean quantum parameter values (θ,α) across the lattice.
Thus, the main finding derived from figure 3 is that the imitation dynamics in CA enables the emergence of NE in the SD: the NE that there is in the classic game with low entanglement and that of the pair (Q,Q) with high entanglement. The latter reverses the SD structural trend in favour of the beneficiary player, inducing the highest possible sum of pay-offs. One may say that the Q strategy resolves the dilemma, though the sceptical reader might argue that as Q has no real component (θ=0), the dilemma is resolved in the imaginary … world.
Figure 4 shows the dynamics in simulations in the QSD-CA scenario of figure 3 with γ=0 (figure 4a), γ=π/4 (figure 4b) and γ=π/2 (figure 4c). As a result of the initial random assignment of the parameter values, it is initially in both frames: , . With γ=0, after a short transition time, both the parameters and mean pay-offs stabilize their values fairly soon, the latter close to the pay-offs of NE (−0.2,1.5). In the γ=π/2 dynamics in figure 4c, both ’s rocket to π, and both ’s plummet to zero, i.e. both players play the Q strategy and in consequence the mean pay-offs of A and B players stabilize at (3.0,2.0) in a straightforward manner. Remarkably, the parameter tendencies heavily emerge from the very beginning, despite the full range of parameters initially accessible in the CA local interactions. In figure 4b, with γ=π/4, the threshold for the emergence of Q, the parameter stabilization is achieved also in fast manner, with the exception of , whose trend towards zero is achieved beyond T=100 in a rather unexpected way which determines the sudden leap of towards 3.0.
The seminal reference [7] analyses also a variant of the original EWL model that considers as initial state instead of . Four pair of strategies in NE are reported in [7] in the full entangled model starting from |01〉. The four NE pairs induce the (3,2) pay-offs and have in common that: αA=0 and αB=π/2. Figure 5 shows that CA simulations tend to induce and for not low γ and select the NE pair with θA=3π/4 and θB=π/4 for high entanglement. The most distinctive difference of figure 5 compared with figure 3 is that of the fairly monotonic increase of and the lower variation of the five values of for low values of γ.
Figure 5.
Five noiseless simulations at T=200 of a QSD-CA with and variable entanglement γ. (a) Mean pay-offs and (b) mean quantum parameters.
Let us point out here that non-factorizable Π may be generated from independent strategies (x, y) in the classic context, without resorting to any quantum approach. Thus, for example, an ad hoc method based in the external parameter 0≤k≤1 is given in [26], and shown as follows:
| 2.1 |
With the joint probabilities generated as in (2.1), the pairs in NE in the SDG are given in (2.2), where the threshold k* emerges from the x≤1 restraint. The pay-offs of both players in the SDG with strategy pairs in NE under the model (2.1) are plotted in figure 6a, being, pA=−1/(2+3(2k−1)2), pB=((3−2k)(1+2k))/(4−2(2k−1)2) for k≤k*=0.89.
| 2.2 |
Figure 6.
Simulations in the SDG with joint probabilities generated by the mechanism given in (2.1). (a) Pay-offs of both players with strategy pairs in NE, (b) mean pay-offs and mean values of x and y (c) in five simulations at T=200 of a SDG-CA.
Figure 6b,c shows the mean pay-offs (figure 6b) and mean values of x and y (figure 6c) in five simulations at T=200 of a SDG-CA. The form of the pay-offs curves in the CA simulations mimic remarkably well that achieved with strategies in NE in conventional (non-CA) simulations (figure 6a) for threshold k<k*. For k≥k* the CA simulations produce the exact values , which induce π11=(2k−1)2, π12=π21=0, π22=4k(1−k) and consequently the pay-offs of the (A,W) pair, i.e. pA=3(2k−1)2, pB=2(2k−1)2, which show a fairly linear aspect for k>k*, reaching pA=3,pB=2 for k=1 (as achieved with k=0).
2.1. Quantum noise
Figure 7 deals with the results obtained in a QSD-CA simulation with μ=0.5 noise. The general form of the graphs of for not high entanglement shown in the simulations free of noise (figure 3) remains in figure 7 up to nearly γ=π/4 with μ=0.5 noise. From approximately γ=π/4, gradually tends to zero, so that, as in the noiseless simulation, the mean pay-off of the player A is notably stabilized. The pair at μ=0.5 generates the joint probabilities: , . Thus, . It was so that both pay-offs equalize as , so that at . Analogously, and so that , ∀γ. In consequence, the pair at μ=0.5 is in NE for γ>γ*=π/3. As a reflection of this fact, in figure 7 from γ>π/3=1.047 both players resort again to the Q strategy (as shown in its figure 7b), and the form of both pay-offs emerging in the CA simulations is that shown in figure 2a under the μ=0.5 label, where the fairly locally linear functions intersect at γ=1.460 giving pA,B=1.777, as was demonstrated in the previous section.
Figure 7.
Five simulations at T=200 of a QSD-CA with variable entanglement γ and μ=0.5 noise factor. (a) Mean pay-offs and (b) mean quantum parameter values.
Despite the structural proximity of both amplitude and phase-damping quantum noises mentioned at the end of §1 (only K2 varies), the pair (Q, Q) is not in NE with phase-damping noise for high values of γ. Consequently, in QSG-CA simulations with μ=0.5 phase-damping (not the shown here) the discontinuity observed with μ=0.5 amplitude-damping noise in figure 7 when γ approaches π/3 does not emerge in the pay-offs graph. The parameter graph shows in this scenario how the Samaritan player drifts to the Q strategy , when γ increases beyond π/3, but the beneficiary player does not accompany the Samaritan in this trend.
Figure 8 deals with the results obtained in the QSD-CA scenario of figure 7 but with full μ=1.0 noise. Full noise seems to impede the emergence of the (Q, Q) pair, so that the oscillations of both pay-offs not far from (−0.2, 1.5) shown in figures 3 and 7 for low γ, remain here for higher entanglement.
Figure 8.
Five simulations at T=200 of a QSD-CA with variable entanglement γ and full noise. (a) Mean pay-offs and (b) mean quantum parameter values.
In figure 8, with high entanglement the (θ,α) parameters of both players tend to approach their middle levels (π/2,π/4). In this scenario, it is , , . These pay-offs smoothly decrease as γ increases: pA from 0.25 down to −0.5, pB from 1.5 down to 1.0. The actual pay-offs at γ=π/2 in figure 8a turn out to be over the expected (−0.5,1.0). This is due to spatial effects that make it difficult to estimate the actual mean pay-offs from the mean parameters. An example of spatial structure is given in figure 9, where the parameter values (and the pay-offs in consequence) show a kind of maze-like aspect. Figure 8a shows also the mean-field pay-offs (p*) achieved in a single hypothetical two-person game with players adopting the mean parameters appearing in the spatial dynamic simulation, those given in figure 8b. Namely,
In figure 8a, the mean-field pay-offs (p*A,p*B) are marked (brown,green), somehow following the (red,blue) colours of the actual mean pay-offs (). As expected, the mean-field approaches fit fairly well the , equations at high entanglement. Thus, at maximum γ=π/2, it is p*A≃−0.5, p*B≃1.0.
Although spatial effects arise in figures 3 and 7 before the emergence of the (Q, Q) pair, they are not particularly relevant, because the mean-field estimations do not appear in those figures. In the subsequent figures, the same criterion will be applied.
3. Unfair contests
Let us assume the unfair situation: a type of players is restricted to classical strategies , whereas the other type of players may use quantum ones [27,28]. Since the dilemma in the SD is basically that of the charity player, the possibility of whether he can overcome the dilemma by restricting the beneficiary player to only classical strategies will be taken into account preferentially in this section, albeit the main results regarding the reversed unfair situation will be also reported.
Figure 10 deals with five noiseless simulations of a quantum (θ,α)-player A (red) versus a classic θ-player B (blue) in a QSD-CA with variable entanglement factor γ. The structure of the asymptotic mean pay-offs across the lattice () of both players in this unfair scenario resembles that found in the fair scenario of figure 3 for not high γ, but extended now for all entanglement, without any discontinuity. Thus, rather unexpectedly, despite the fact that the beneficiary player B is restricted to classical strategies, he overrates the charity player A regardless of γ as oscillates around 1.5, whereas oscillates close to zero in most cases. Nevertheless, two simulations with high γ show higher values of , that may grow up to 0.5, somehow resolving the dilemma of player A in the weak sense making θA=π/2 in the conventional (non-CA) game [7], or in CA simulations, as shown and in figure 10b.
Figure 10.
Five noiseless simulations at T=200 of a QSD-CA unfair quantum (θ,α)-player A (red) versus a classic θ-player B (blue) with variable entanglement γ. (a) Mean pay-offs and (b) mean quantum parameter values.
In simulations in the scenario of figure 10 but with reversed unfairness: θ-player A versus (θ,α)-player B, the structure of the mean pay-offs versus γ (not shown here) resembles that shown in figure 10 in the (θ,α)-player A versus θ-player B scenario, although the quantum player B gets pay-offs slightly over 1.5, whereas the pay-offs of the classic player A stand slightly negative. The advantage of the quantum player (B) facing a classic player (A) is foreseeable; what may surprise here is that the quantum player B does not take a relevant advantage of his privileged role, getting pay-offs not far from those achieved in the opposite unfair scenario where he is the classic one.
3.1. Quantum noise
The simulations in the αB=0 unfair scenario with μ=0.5 noise (not shown here) produce roughly the same results as in the noiseless unfair scenario of figure 10, albeit the pay-offs of the charity player show a notably smaller variation around 1.5, and those of the beneficiary player become positive at a greater extent as in figure 10. Spatial effects are not relevant in figure 10, nor in the (αB=0, μ=0.5) simulations, so that the mean-field pay-offs estimations fit well to the actual ones in these unfair scenarios.
Figure 11 shows the results in the αB=0 unfair scenario of figure 10, but with μ=1.0 noise. The results regarding both the pay-offs and mean parameters shown in figure 11 are qualitatively similar to those achieved in the fair, μ=1.0 scenario of figure 8. Spatial effects arise with high entanglement, but oddly they seem to affect only the charity player A. Consequently, the parameter and the pay-offs spatial structures with high entanglement and full noise show a much fuzzified maze-like aspect compared to those in the fair scenario of figure 9.
Figure 11.
Five simulations at T=200 of a QSD-CA unfair quantum (θ,α)-player A (red) versus a classic θ-player B (blue) with variable entanglement γ and full noise. (a) Actual mean pay-offs and mean-field pay-offs p*. (b) Mean quantum parameter values.
Figure 12 deals with the case of an unfair game where the beneficiary player is allowed to resort only to the parameter α instead to θ as in the unfair simulations just before considered. In such a scenario, the (Q, Q) pair emerges in NE regardless of γ in the noiseless and μ=0.5 scenarios, as the beneficiary player can not resort to strategies such as D (or Loaf) which demands θ>0. As a result, in the noiseless figure 12a it is and , and in the μ=0.5 noise (figure 12b), the , pay-offs fit the expressions given in the quantum noise subsection of the introductory §1. In the full noise scenario of figure 12c, where , it is , so that , regardless of the values of the α parameters. This is so because θ=0 makes diagonal and it turns out that
Figure 12.
Five noiseless simulations at T=200 of a QSD-CA unfair quantum (θ,α)-player A (red) versus a (α)-player B (blue) with variable entanglement γ. (a) μ=0.0, (b) μ=0.5 and (c) μ=1.0.
4. Three-parameter strategies
This section deals with the full space of strategies SU(2), operating with three parameters (3P) as given in (4.1), so that a new β parameter is available.
| 4.1 |
Figure 13 deals with the results achieved in three-parameter strategies QSD-CA simulations free of noise. The actual mean pay-offs of both players monotonically increase their values as the entanglement increases, in the case of player A from approximately zero up approximately 1.5, in the case of player B from approximately 1.5 up to approximately 2.25. Thus, player B overrates player A all along the γ variation, albeit in a lower degree as γ grows. For low γ, the mean-field pay-off estimations fit fairly well the actual mean pay-offs, particularly in respect of player A, but as γ grows heavy spatial effects emerge, so that the actual mean pay-offs become fairly stabilized, in contrast with the variable behaviour of p*, particularly in respect of player A. No particular structure becomes apparent in the parameter patterns in figure 13b, which corresponds to a rather erratic behaviour of the mean-field estimations.
Figure 13.
Five simulations at T=200 in a three-parameter QSD-CA with variable entanglement γ and no noise. (a) Actual mean pay-offs and mean-field pay-offs p*. (b) Mean quantum parameter values.
4.1. Quantum noise
In three-parameter strategies QSD-CA simulations with μ=0.5 noise (not shown here) roughly similar results as in the noiseless 3P scenario of figure 13 are achieved. Nevertheless, the form of the graphs of the actual mean and mean-field pay-offs are altered, much advancing the features observed in the 3P simulations with full noise shown below in figure 14. This is particularly true with respect to a notable decreasing in the erratic behaviour of the mean-field estimations, particularly those of player B.
Figure 14.
Five simulations at T=200 in a three-parameter QSD-CA with variable entanglement γ and μ=1.0 noise. (a) Actual mean pay-offs and (b) mean quantum parameter values.
Figure 14 deals with the results achieved in the scenario of figure 13, but with full noise. The actual mean pay-offs of both players monotonically increase their values as the entanglement increases, in the case of player A from approximately zero up approximately 1.5, in the case of player B from approximately 1.5 up approximately 2.0. Thus, player B overrates player A all along the γ variation, much as in figure 13, but with full noise in a more crisp manner. In fact, the actual mean pay-offs in figure 14 may be very well fitted by the equations: , . At variance with what happens in figure 13, the mean-field pay-off estimations fit fairly well the actual mean pay-offs with full noise, so that such mean-field estimations have not been shown in figure 13. Again at variance with what happens in figure 13, some trends become apparent in the mean parameter graphics with full noise, as the mean parameter patterns of player A and drift towards π/2.
The form of the graphs in the noiseless unfair three-parameter simulations shown in figure 15 apparently differ from that of its two-parameter counterpart in figure 10. Thus, as soon as the entanglement takes off, the mean parameters, and the mean pay-offs in consequence, become fairly stabilized: both close to π/2, and and close to π/4. Besides, high spatial effects emerge in figure 15 in contrast with their absence in figure 10. Spatial effects are particularly relevant regarding the charity player A, as the increase of the entanglement supports the increase of his actual mean pay-offs up to over 0.5, whereas his mean-field estimations decrease below −0.5. In simulations (not shown here) in the scenario of figure 15 but with reversed unfairness: θ-player A versus (θ,α,β)-player B, the classic charity player A gets negative pay-offs regardless of γ, but the pay-offs of the beneficiary player B keep not far from 1.5 for all γ, thus, surprisingly, getting smaller pay-offs than those achieved in the opposite unfair scenario of figure 15, where he is the classic one.
Figure 15.
Five noiseless simulations at T=200 in the unfair three-parameter QSD-CA with entanglement γ. (a) Actual mean pay-offs and mean-field pay-offs p*. (b) Mean parameter values.
Figure 16 shows the dynamics up to T=100, together with the parameter and pay-off patterns at T=100 in a simulation with γ=π/2 in the QSD-CA unfair scenario of figure 15. Figure 16a indicates that both the quantum parameters and the pay-offs quickly reach their fairly permanent values, without a relevant initial transition time. As a result, the actual (and mean-field) values shown at T=200 in figure 15, do not significantly differ from those reached at T=100 (and even before) in figure 16. The parameter patterns values (and the pay-offs in consequence) in this figure show again, as in figure 9, a kind of maze-like aspect that is in the origin of the notable discrepancy between the actual and mean-field pay-offs, particularly that of the charity player A.
In three-parameter strategies QSD-CA unfair simulations with μ=0.5 noise (not shown here), although the general form of the graphs of the pay-offs and parameters versus γ is similar to that in the noiseless scenario of figure 13, the graphs are altered advancing the features observed in the 3P unfair simulations with full noise shown below in figure 17. In particular, with μ=0.5 noise the actual mean pay-offs of both players increase their values as γ increases at a lower degree compared to those achieved in the noiseless simulations.
Figure 17.
Five simulations at T=200 in the unfair three-parameter QSD-CA with entanglement γ and full noise. (a) Actual mean pay-offs , and mean-field pay-offs p*. (b) Mean quantum parameter values.
In the μ=1.0 unfair 3P scenario of figure 17, where αB=βB=0, if θA=θB=π/2 and αA=βA=π/4 it is: , with associated pay-offs: pB=1.5, . The latter smoothly decreases from pA(γ=0)=0.25, down to pA(γ=π/2)=−0.50. Figure 17b indicates that the just described quantum parameters scenario applies with high entanglement in the simulations of this figure, and in consequence the mean–mean field pay-off estimations in figure 17a correspond with the theoretical values approximately from γ=π/4. Spatial effects minimally influence the actual mean pay-offs of the beneficiary player A in the CA simulations, whereas they support those of the charity player A so that he achieves no negative pay-offs.
In [7], two NE are reported in the noiseless scenario with full entangling when considering the initial density matrices ρi=(|00〉〈00|+|11〉〈11|)/2 and ρi=(|01〉〈01|+|10〉〈10|)/2. The strategies in NE in these scenarios have in common the parameters θA=θB=π/2 and αB+βB=π/2; with the first density matrix it is αA+βA=π and with the second one αB+βB=0. The results of their corresponding CA simulations are not shown here, but they are able to detect such NE in a straightforward manner, i.e. free of spatial effects, reporting in both cases non-negative pay-offs to the Samaritan player. In the particular case of full entangling, it is , in both scenarios. Thus, the general 3P-SU(2) operators may become a powerful tool when the players share a classically correlated state.
5. Conclusion
A spatial formulation of the iterated QSD game with arbitrary entangling is studied in this work. The game is played in the cellular automata (CA) manner, i.e. with local and synchronous players’ interaction. The evolution is achieved via imitation of the best-paid neighbour of the two players confronted in the SD: the charity and the beneficiary player. The paper considers both the general case of players accessing the full space of quantum strategies, which allows for three parameters (3P), and the particular case of strategies restricted to a subset of them allowing for only two parameters (2P). Although the restriction to two parameters may be criticized, the 2P model is a good and widely used test-bed to show how the quantum approach in game theory may solve dilemmas, by allowing for NE strategies out of the scope of the classic approach as summarized below.
In fair contests (facing two quantum players), the CA simulations allow for the emergence of the NE strategies. Thus, with low entanglement the strategy in NE in the classic game dominates the scene preserving the structural SD trend favouring the beneficiary player. But with high entanglement, the so-called Q strategy is adopted by both players in a dramatically defined manner, somehow resolving the dilemma as mutual Q provides the pay-offs of the (charity-Aid, beneficiary-Work) choice.
With quantum noise, the dynamics demands higher entanglement for the emergence of the (Q,Q) pair. In our study (Q,Q) emerges from γ>π/4 in noiseless simulations, and from γ>π/3 with amplitude damping quantum noise at middle level. In the extreme case, full noise impedes the emergence of the (Q,Q) pair. Besides, noise notably alters the pay-offs of mutual Q.
In the unfair quantum versus classic scenario, the beneficiary player over-scores the charity player regardless of the degree of entanglement and the degree of noise. This is so even if the beneficiary player is the classic one, albeit in this case the charity player may achieve relatively high positive pay-offs in noiseless simulations with high entangling.
Mean-field approaches of the actual mean pay-offs fail as a tool for estimation due to spatial effects in unfair contests and in simulations with high noise.
General pay-off matrices [7] and other noise types [16,29–31] are to come under scrutiny in subsequent studies on iterated quantum games in the spatial context. Other quantization schemes [32–35], multi-party games [36,37] as well as games with imperfect information [23,38–41] deserve particular studies.
Deviations from the canonical cellular automata paradigm adopted here may lead to more realistic models. Particularly, structurally dynamic CA, asynchronous updating, spatial dismantling and, last but not least, dynamics with embedded tuneable memory of past pay-offs and parameter values [42].
Acknowledgements
Part of the computations of this work were performed in EOLO, an HPC machine of the International Campus of Excellence of Moncloa, funded by the UCM and Feder Funds.
Footnotes
In the five simulations of figure 3 at γ=0 it is: , (0.741, 2.068), (1.239, 2.256), (1.240, 1.906), (1.606, 2.086), with associated mean-field pay-offs: (p*A,p*B)=(0.147,1.503), (0.006, 2.414), (−0.238, 1.928), (0.113, 1.878), (−0.125, 1.456), very close to the actual pay-offs: )=(0.149, 1.502), (−0.054, 2.201), (−0.130, 1.813), (0.027, 1.798), (−0.087, 1.456), as shown in figure 3a.
Data accessibility
The data supporting the graphs in the figures of this article are available from the Dryad Digital Repository: http://dx.doi.org/10.5061/dryad.km170 [43].
Authors' contributions
H.S. proposed the Samaritan’s dilemma as an interesting type of game to be treated in the quantum CA context. R.A.-S. wrote the Fortran code. Both authors interpreted the simulation results and gave final approval for publication.
Competing interests
We declare we have no competing interests.
Funding
R.A.-S.’s contribution has been funded by the Spanish grant MTM2015-63914-P. H.S.’s contribution has been funded by the National Natural Science Foundation of China (grant no. 61502179), the Natural Science Foundation of Guangdong Province of China (grant no. 2014A030310265) and the China Scholarship Council.
References
- 1.Buchanan JM. 1975. The Samaritan’s dilemma. In Altruism, morality, and economic theory (eds ES Phelps, R Sage), p. 71. New York, NY: Russell Sage Foundation.
- 2.Coate S. 1995. Altruism, the Samaritan’s dilemma, and government transfer policy. Am. Econ. Rev. 85, 46–57. [Google Scholar]
- 3.Lagerlof J. 2004. Efficiency-enhancing signalling in the Samaritan’s dilemma. Econ. J. 114, 55–69. (doi:10.1046/j.0013-0133.2003.00176.x) [Google Scholar]
- 4.Raschky PA, Schwindt M. 2016. Aid, catastrophes and the Samaritan’s dilemma. Economica 83, 624–645. (doi:10.1111/ecca.12194) [Google Scholar]
- 5.Skarbek EC. 2016. Aid, ethics, and the Samaritan’s dilemma: strategic courage in constitutional entrepreneurship. J. Inst. Econ. 12, 371–393. (doi:10.1017/S1744137415000296) [Google Scholar]
- 6.Huang ZM, Alonso-Sanz R, Situ HZ. 2017. Quantum Samaritan’s game under decoherence. Int. J. Theor. Phys. 56, 863–873. (doi:10.1007/s10773-016-3229-y) [Google Scholar]
- 7.Ozdemir SK, Shimamura J, Morikoshi F, Imoto N. 2004. Dynamics of a discoordination game with classical and quantum correlations. Phys. Lett. A 333, 218–231. (doi:10.1016/j.physleta.2004.10.055) [Google Scholar]
- 8.Rasmussen E. 2001. Games and information: an introduction to game theory. Oxford, UK: Blackwell. [Google Scholar]
- 9.Owen G. 1995. Game theory. New York, NY: Academic Press. [Google Scholar]
- 10.Eisert J, Wilkens M, Lewenstein M. 1999. Quantum games and quantum strategies. Phys. Rev. Lett. 83, 3077–3080. (doi:10.1103/PhysRevLett.83.3077) [Google Scholar]
- 11.Benjamin SC, Hayden PM. 2001. Comment on ‘Quantum games and quantum strategies’. Phys. Rev. Lett. 87, 069 801 (doi:10.1103/PhysRevLett.87.069801) [DOI] [PubMed] [Google Scholar]
- 12.Benjamin SC, Hayden PM. 2001. Multiplayer quantum games. Phys. Rev. A 64, 030301 (doi:10.1103/PhysRevA.64.030301) [DOI] [PubMed] [Google Scholar]
- 13.Eisert J, Wilkens M, Lewenstein M. 2001. Comment on ‘Quantum games and quantum strategies’—Reply. Phys. Rev. Lett. 87, 069802 (doi:10.1103/PhysRevLett.87.069802) [DOI] [PubMed] [Google Scholar]
- 14.Eisert J, Wilkens M. 2000. Quantum games. J. Mod. Opt. 47, 2543–2556. (doi:10.1080/09500340008232180) [Google Scholar]
- 15.Nielsen MA, Chuang IL. 2000. Quantum computation and quantum information. Cambridge, UK: Cambridge University Press. [Google Scholar]
- 16.Huang ZM, Qiu D. 2016. Quantum games under decoherence. Int. J. Theor. Phys. 55, 965–992. (doi:10.1007/s10773-015-2741-9) [Google Scholar]
- 17.Schiff JL. 2008. Cellular automata: a discrete view of the world. New York, NY: Wiley. [Google Scholar]
- 18.Alonso-Sanz R. 2017. On the effect of quantum noise in a quantum prisoner’s dilemma cellular automaton. Quantum Inf. Process. 16, 161 (doi:10.1007/s11128-017-1610-2) [Google Scholar]
- 19.Alonso-Sanz R, Carvalho M, Situ HZ. 2016. A quantum relativistic prisoner’s dilemma cellular automaton. Int. J. Theor. Phys. 55, 4310–4323. (doi:10.1007/s10773-016-3056-1) [Google Scholar]
- 20.Alonso-Sanz R. 2015. Variable entangling in a quantum prisoner’s dilemma cellular automaton. Quantum Inf. Process. 14, 147–164. (doi:10.1007/s11128-014-0834-7) [Google Scholar]
- 21.Alonso-Sanz R. 2014. A quantum prisoner’s dilemma cellular automaton. Proc. R. Soc. A 470, 20130793 (doi:10.1098/rspa.2013.0793) [Google Scholar]
- 22.Alonso-Sanz R, Situ HZ. 2017. A quantum relativistic battle of the sexes cellular automaton. Phys. A. 468, 267–277. (doi:10.1016/j.physa.2016.11.003) [Google Scholar]
- 23.Alonso-Sanz R. 2015. A cellular automaton implementation of a quantum battle of the sexes game with imperfect information. Quantum Inf. Process. 14, 3639–3659. (doi:10.1007/s11128-015-1080-3) [Google Scholar]
- 24.Alonso-Sanz R. 2013. On a three-parameter quantum battle of the sexes cellular automaton. Quantum Inf. Process. 12, 1835–1850. (doi:10.1007/s11128-012-0496-2) [Google Scholar]
- 25.Alonso-Sanz R. 2012. A quantum battle of the sexes cellular automaton. Proc. R. Soc. A 468, 3370–3383. (doi:10.1098/rspa.2012.0161) [Google Scholar]
- 26.Iqbal A, Chappell JM, Abbott D. 2016. On the equivalence between non-factorizable mixed-strategy classical games and quantum games. R. Soc. open. sci. 3, 150477 (doi:10.1098/rsos.150477) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Flitney AP, Abbott D. 2003. Advantage of a quantum player over a classical one in 2×2 quantum games. Proc. R. Soc. Lond. A 459, 2463–2474. (doi:10.1098/rspa.2003.1136) [Google Scholar]
- 28.Flitney AP, Abbott D. 2004. Quantum games with decoherence. J. Phys. A 38, 449–459. (doi:10.1088/0305-4470/38/2/011) [Google Scholar]
- 29.Ozdemir SK, Shimamura J, Imoto N. 2004. Quantum advantage does not survive in the presence of a corrupt source: optimal strategies in simultaneous move games. Phys. Lett. A 325, 104–111. (doi:10.1016/j.physleta.2004.03.042) [Google Scholar]
- 30.Shimamura J, Ozdemir SK, Morikoshi F, Imoto N. 2004. Quantum and classical correlations between players in game theory. Int. J. Quantum Inf. 2, 79–89. (doi:10.1142/S0219749904000092) [Google Scholar]
- 31.Situ HZ, Huang ZM, Zhang C. 2016. Noise effects on conflicting interest quantum games with incomplete information. Int. J. Quantum Inf. 14, 1650033 (doi:10.1142/S0219749916500337) [Google Scholar]
- 32.Kay R, Johnson NF, Benjamin SC. 2001. Evolutionary quantum game. J. Phys. A 34, L547 (doi:10.1088/0305-4470/34/41/101) [Google Scholar]
- 33.Nawaz A, Toor AH. 2004. Dilemma and quantum battle of sexes. J. Phys. A 37, 4437–4443. (doi:10.1088/0305-4470/37/15/011) [Google Scholar]
- 34.Nawaz A, Toor AH. 2004. Generalized quantization scheme for two-person non-zero sum games. J. Phys. A 37, 11457–11463. (doi:10.1088/0305-4470/37/47/014) [Google Scholar]
- 35.Situ HZ. 2014. A quantum approach to play asymmetric coordination games. Quantum Inf. Process. 13, 591–599. (doi:10.1007/s11128-013-0675-9) [Google Scholar]
- 36.Johnson NF. 2001. Playing a quantum game with a corrupted source. Phys. Rev. A 63, 020302(R) (doi:10.1103/PhysRevA.63.020302) [Google Scholar]
- 37.Ozdemir SK, Shimamura J, Imoto N. 2007. A necessary and sufficient condition to play games in quantum mechanical settings. New J. Phys. 9, 43 (doi:10.1088/1367-2630/9/2/043) [Google Scholar]
- 38.Situ HZ, Huang ZM. 2016. Relativistic quantum Bayesian game under decoherence. Int. J. Theor. Phys. 55, 2354–2363. (doi:10.1007/s10773-015-2873-y) [Google Scholar]
- 39.Situ HZ. 2015. Quantum Bayesian game with symmetric and asymmetric information. Quantum Inf. Process. 14, 1827–1840. (doi:10.1007/s11128-015-0984-2) [Google Scholar]
- 40.Situ HZ. 2016. Two-player conflicting interest Bayesian games and Bell nonlocality. Quantum Inf. Process. 15, 137–145. (doi:10.1007/s11128-015-1171-1) [Google Scholar]
- 41.Situ HZ, Zhang C, Yu F. 2016. Quantum advice enhances social optimality in three-party conflicting interest games. Quantum Inf. Comput. 16, 588–596. [Google Scholar]
- 42.Alonso-Sanz R. 2011. Dynamical systems with memory. Singapore: World Scientific. [Google Scholar]
- 43.Alonso-Sanz R, Situ H. Data from: A quantum Samaritan’s dilemma cellular automaton. Dryad Digital Repository. (http://dx.doi.org/10.5061/dryad.km170) [DOI] [PMC free article] [PubMed]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Citations
- Alonso-Sanz R, Situ H. Data from: A quantum Samaritan’s dilemma cellular automaton. Dryad Digital Repository. (http://dx.doi.org/10.5061/dryad.km170) [DOI] [PMC free article] [PubMed]
Data Availability Statement
The data supporting the graphs in the figures of this article are available from the Dryad Digital Repository: http://dx.doi.org/10.5061/dryad.km170 [43].

















