PayoffMatrix_QPD: Quantum Prisoner's Dilemma game: Payoff Matrix

Description Usage Arguments Value References Examples

View source: R/PayoffMatrix_QPD.R

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

1
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

1
2
3
init()
moves <- list(Q$I2, sigmaX(Q$I2), Hadamard(Q$I2), sigmaZ(Q$I2))
PayoffMatrix_QPD(moves, 3, 1, 0, 5)

QGameTheory documentation built on July 8, 2020, 7:27 p.m.