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 v when both play 0.

beta

Numeric scalar, payoff coefficient for phenotype v when v plays 0, V plays 1.

gamma

Numeric scalar, payoff coefficient for phenotype v when v plays 1, V plays 0.

theta

Numeric scalar, payoff coefficient for phenotype v and V when both play 1.

alpha2

Numeric scalar, alternate value of alpha for phenotype v in a second scenario.

beta2

Numeric scalar, alternate value of beta for phenotype v in a second scenario.

gamma2

Numeric scalar, alternate value of gamma for phenotype v in a second scenario.

theta2

Numeric scalar, alternate value of theta for phenotype v in a second scenario.

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)

[Package qvirus version 0.0.4 Index]