Home Download Help Resources Extensions FAQ NetLogo Publications Contact Us Donate Models: Library Community Modeling Commons Beginners Interactive NetLogo Dictionary (BIND) NetLogo Dictionary User Manuals: Web Printable Chinese Czech Farsi / Persian Japanese Spanish

NetLogo User Community Models(back to the NetLogo User Community Models)
WHAT IS IT
This is a model of a Quantum Game of Life with pathdependent local quantum computation, exemplifying a Quantum Cellular Automaton.
HOW IT WORKS
Each patch can be either vacant of life or occupied by a living entity.
At each round of the game, a patch can be actualized into one of the two alternatives: (1) vacant of life or (2) occupied by a living entity, with a certain probability amplitude defined by the local patch quantum (game) state (see the TECHNICAL EXPLANATION section).
There are two alternative rules through which this game is played:
(1)  The clustering rule;
In the first rule, there is the production of a flocking (or herding) phenomenon, that is, the birth of living entities tends to occur through clustering, making emerge, in the quantum game, a quantum gravitic mechanism where the birth and death of living entities tends to lead to clusters of living entities.
In the second rule, the flocking (or herding) phenomenon is absent, the birth and death of living entities occurs with a fixed local probability for each patch, such that there is a fixed local probability for a vacant patch to become occupied by a living entity and a fixed local probability for a living entity, residing in a certain patch, to die.
For those who may wish to better understand the formalism behind each rule, they may proceed now to the TECHNICAL EXPLANATION section.
HOW TO USE IT
The switch cclustering controls the rule used, if it is ON, then, the clustering rule is used, if it is OFF, then, the spatially and temporally independent rule is used.
The sliders palive and pdead control, respectively, in the case of no clustering, the probability for a vacant patch to become occupied by a new living entity and the probability for a living entity in an occupied patch to die.
The third slider, called "weight", is used in the clustering rule, whose basic intuition we now explain (for the formal details see the TECHNICAL EXPLANATION section).
If cclustering is ON, then, there is a local quantum computation for birth and death.
Thus, for the clustering rule, there isn't a global law of "alive" and "dead"patch state, formalized by palive and pdead. The systemic laws of "birth and death" are local and they depend on the number of local patches that are occupied, hence, for a patch that is vacant there is the plocalalive variable (which is a patch variable in the Netlogo code), defined as:
plocalalive (mean [alive] of neighbors4)
In this game, the patch variable "alive" is set to one of two alternatives: "alive = 1" means that the patch is occupied by a living entity (only one per patch allowed) and "alive = 0" means that the patch is vacant. Notice that if no neighboring patch is occupied by a living entity, the patch cannot become alive because plocalalive = 0.
Above it is defined that plocalalive coincides with the proportion of occupied four neighbors in a von Neumann neighborhood (periodic conditions being assumed at the borders).
After the "birth procedure" takes place, with the above local probabilites, a second procedure, the "death procedure", takes place, with the following local probability rule for a living entity in a patch to die:
plocaldead weight * pdead + (1  weight) * (mean [alive] of neighbors4)
The "weight" parameter allows a control of the ecosystemic profile, in regards to the nature of the general conditions for live to thrive. The fixed "pdead" represents what are considered as fixed threats to life forms coming from the environment, the "weight", thus, represents the importance of these factors over the resource restrictions that lead to death due to overpopulation (which is the second part of the formula "mean [alive] of neighbors4").
PLOTS
The plots represent the histogram for the local neighborhood structure (eight neighbors) in a standard scale and in a loglog scale, using an adaptation of the Preferential Attachment Netlogo Model (Copyright 2005 Uri Wilensky. All rights reserved. http://ccl.northwestern.edu/netlogo/models/PreferentialAttachment ).
THINGS TO TRY
Run the model with the clustering rule ON and then run the model with the clustering rule OFF, comparing the two alternative distributions.
Run the model with the clustering rule ON and change the "weight" slider, evaluating what happens to the game's dynamics.
TECHNICAL EXPLANATION
The quantum game is divided in rounds, such that, at each round there is, for each patch, a local WheelerDeWitttype equation with additional probability amplitude conditions that express, in the formalism, the local systemic computation for that round.
Thus, for the the jth patch and the round "t" (the natural number t is not to be confused with a time instant, instead, it corresponds to a round number, which includes a temporal interval during which births and deaths take place), we have the following WheelerDeWitt equation:
(H  u(j,s,t)) * psi(j,s,t) = 0 > (1)
where s = 0 means that the patch is vacant of a living entity and s = 1 means that the patch contains a living entity (only one living entity per patch allowed, as stated), also, the term u(j,s,t) is a real number such that the above equation has the form of an eigenvalue equation:
H * psi(j,s,t) = u(j,s,t) * psi(j,s,t) > (2)
Now, we also assume that the eigenvalue u(j,s,t) satisfies the following condition with respect to the eigenfunction psi(j,s,t):
( u(j,s,t) ^ (1) ) * psi(j,s,t) = 1 > (3)
This condition means that psi(j,s,t) assigns, to each alternative "s", for the jth patch, at the tth round, the corresponding eigenvalue u(j,s,t).
Since psi(j,s,t) is a probability amplitude function for the round, it is necessary a fourth normalization condition:
u(j,0,t) ^ 2 + u(j,1,t) ^ 2 = 1 > (4)
The conditions, given by Eqs.(3) and (4), are called "probability amplitude conditions".
Given this general framework for the quantum game, the Quantum Cellular Automaton dynamics depends, now, upon the evolutionary dynamical structure of the eigenvalues u(j,s,t).
In the formally simpler case of the spatially and temporally independent rule, for each patch that is not occupied by a living entity, the eigenvalues are such that:
u(j,0,t) = (1  palive) ^ 0.5 > (5)
u(j,1,t) = palive ^ 0.5 > (6)
Thus, each patch that is not occupied by a living entity, can become so with a probability of palive, or remain vacant of life with a probability of 1  palive.
This comprises the first part of a round: the birth of new life.
For the second part of a round (death), for each patch that is occupied by a living entity (this includes those that become occupied during the first part of the round), the eigenvalues are such that:
u(j,0,t) = pdead ^ 0.5 > (7)
u(j,1,t) = (1  pdead) ^ 0.5 > (8)
The interpretation follows directly from the equations.
Alternatively, for the clustering rule, we have, for the first round and for a patch that is not occupied by a living entity:
u(j,0,t) = ( 1  mean [ alive ] of neighbors4 ) ^ 0.5 > (9)
u(j,1,t) = mean [ alive ] of neighbors4 ^ 0.5 > (10)
That is, the mean local field of the neighbors, for the occupancy by living entities, determines the probability of life being born in a patch, we have here a life promoting life selforganization process (since one single neighbor with a living entity leads to a nonzero probability for life to be born in a patch, we are dealing with a game of life with a replicatortype life).
Now, for the second part of the round, for each patch that is occupied by a living entity (this includes those that become occupied during the first part of the round), the living entity may live or die in accordance with the following eigenvalues:
u(j,0,t) = ( weight * pdead + (1  weight) * mean [alive] of neighbors4 ) ^ 0.5 > (11)
u(j,1,t) = ( 1  (weight * pdead + (1  weight) * mean [alive] of neighbors4) ) ^ 0.5 > (12)
The key to interpret this rule is Eq.(11), which leads to a probability amplitude for death that is a weighted average of pdead and the mean field of neighbor patches in regards to the dead (vacant) or alive (occupied by living entity) state. This rule controls the way by which the overpopulation affects the local life and death, as explained in the previous section.
FINAL NOTES:
The idea for a "quantum game theoretical WheelerDeWitt equation plus probability amplitude conditions", leading to a probability amplitude eigenfunction, over the alternative game histories, whose values are numerically coincident with real eigenvalues, comes from a reflection on the nature of the pathdependent evolutionary quantum game theoretical framework laid out in the following paper:
Gonçalves, C.P. and Gonçalves, C. (2007), "An Evolutionary Quantum Game Model of Financial Market Dynamics  Theory and Evidence", http://papers.ssrn.com/sol3/papers.cfm?abstract_id=982086
Which is the paper that addresses the model:
http://ccl.northwestern.edu/netlogo/models/community/Quantum_Financial_Market
The Quantum Game of Life is being introduced as a conceptual tool on how quantum game theory can be used to address the relation between risk and the role of local adaptive dynamics by which living systems may affect positively the ability of expansion of life in a territory, with local ecological constraints. However, it is possible for the game to be adapted to other systemic problems, involving the gravitic effects of systems in the formation of clustering phenomena, be those systems social systems (social gravity) or physical systems.
The concept of gravity, incorporated in this model's game theoretical framework, was worked upon from:
Madeira, M.O. (2009), "on gravity", http://cmathphil.blogspot.com/2009/03/ongravity.html 
(back to the NetLogo User Community Models)