PayoffMatrix_QPD {QGameTheory} | R Documentation |
Quantum Prisoner's Dilemma game: Payoff Matrix
Description
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.
Usage
PayoffMatrix_QPD(moves, w, x, y, z)
Arguments
moves |
a list of matrices |
w |
a number |
x |
a number |
y |
a number |
z |
a number |
Value
The payoff matrices for the two players as two elements of a list.
References
https://arxiv.org/pdf/quant-ph/0506219.pdf
https://arxiv.org/pdf/quant-ph/0208069.pdf
https://arxiv.org/pdf/quant-ph/0004076.pdf
Examples
init()
moves <- list(Q$I2, sigmaX(Q$I2), Hadamard(Q$I2), sigmaZ(Q$I2))
PayoffMatrix_QPD(moves, 3, 1, 0, 5)
[Package QGameTheory version 0.1.2 Index]