View source: R/PayoffMatrix_QPD.R
PayoffMatrix_QPD | R Documentation |
This function generates the payoff matrix for the Quantum Prisoner's Dilemma game . moves
is a list of the possible strategies for each of the players and w, x, y, z
are the payoffs for the players corresponding to the choices available to them with the chain of inequalities, z>w>x>y
.
This function also plots the probability distribution plots of the qubits for all the possible combinations of the strategies of the players.
PayoffMatrix_QPD(moves, w, x, y, z)
moves |
a list of matrices |
w |
a number |
x |
a number |
y |
a number |
z |
a number |
The payoff matrices for the two players as two elements of a list.
https://arxiv.org/pdf/quant-ph/0506219.pdf
https://arxiv.org/pdf/quant-ph/0208069.pdf
https://arxiv.org/pdf/quant-ph/0004076.pdf
init()
moves <- list(Q$I2, sigmaX(Q$I2), Hadamard(Q$I2), sigmaZ(Q$I2))
PayoffMatrix_QPD(moves, 3, 1, 0, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.