payoffs_list {qvirus} | R Documentation |
Compute Payoff Values for Quantum HIV Phenotype Interactions
Description
Computes payoff values for all pairwise combinations of quantum gate strategies provided in
a named list. For each pair, the function calculates the payoffs for both phenotypes v
and V
using two different sets of payoff parameters.
Usage
payoffs_list(gates, alpha, beta, gamma, theta, alpha2, beta2, gamma2, theta2)
Arguments
gates |
A named list of 2x2 unitary matrices representing quantum strategies (e.g., I, H, Z). |
alpha |
Numeric scalar, payoff coefficient for phenotype |
beta |
Numeric scalar, payoff coefficient for phenotype |
gamma |
Numeric scalar, payoff coefficient for phenotype |
theta |
Numeric scalar, payoff coefficient for phenotype |
alpha2 |
Numeric scalar, alternate value of |
beta2 |
Numeric scalar, alternate value of |
gamma2 |
Numeric scalar, alternate value of |
theta2 |
Numeric scalar, alternate value of |
Examples
I <- diag(2)
H <- 1 / sqrt(2) * matrix(c(1, 1, 1, -1), 2, 2)
Z <- diag(c(1, -1))
gates <- list(I = I, H = H, Z = Z)
payoffs <- payoffs_list(gates, 1, 0.5, 0.3,0.2, 1.5, 0.6, 0.7, 0.8)