QHawkDove {QGameTheory} | R Documentation |
Quantum Hawk and Dove game
Description
This function returns the expected payoffs to Alice and Bob with respect to the probabilities p
and q
. p+q
should equal 1 and moves
is a list of two possible strategies for each of the players and v, j, D
are the value of resource, cost of injury and cost of displaying respectively.
Usage
QHawkDove(p, q, moves, v, j, D)
Arguments
p |
a real number between 0 and 1 including the end points |
q |
a real number between 0 and 1 including the end points |
moves |
a list of matrics |
v |
a number |
j |
a number |
D |
a number |
Value
A vector consisting of the expected payoffs to Alice and Bob as its elements calculated according to the probabilities p
and q
provided as inputs.
References
https://arxiv.org/pdf/quant-ph/0506219.pdf
https://arxiv.org/pdf/quant-ph/0208069.pdf
https://arxiv.org/pdf/quant-ph/0108075.pdf
Examples
init()
moves <- list(Q$I2, sigmaX(Q$I2))
QHawkDove(0, 1, moves, 50, -100, -10)
QHawkDove(0, 0, moves, 50, -100, -10)
[Package QGameTheory version 0.1.2 Index]