QNewcomb: Quantum Newcomb's Paradox

Description Usage Arguments Value References Examples

View source: R/QNewcomb.R

Description

This function simulates the quantum version of the Newcomb's Paradox by taking in the choice of the qubit |0> or |1> by the supercomputer Omega and the probability 'probability' with which Alice plays the spin flip operator. It returns the final state of the quantum game along with plotting the probability densities of the qubits of the final state after measurement.

Usage

1
QNewcomb(Omega, probability)

Arguments

Omega

|0> or |1>

probability

a real number between 0 and 1 including the end points

Value

The final state of the quantum game as a vector along with plotting the probability densities of the qubits of the final state after measurement.

References

https://arxiv.org/pdf/quant-ph/0506219.pdf
https://arxiv.org/pdf/quant-ph/0208069.pdf
https://arxiv.org/pdf/quant-ph/0202074.pdf

Examples

1
2
3
4
init()
QNewcomb(Q$Q0, 0)
QNewcomb(Q$Q1, 0)
QNewcomb(Q$Q1, 0.7)

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