Bell: Bell States

Description Usage Arguments Value References Examples

View source: R/Bell.R

Description

The function builds one of the four Bell states, according to the input qubits

Usage

1
Bell(qubit1, qubit2)

Arguments

qubit1

1st input qubit

qubit2

2nd input qubit

Value

One of the Bell states as a vector depending on the input qubits.

References

https://en.wikipedia.org/wiki/Bell_state
https://books.google.co.in/books?id=66TgFp2YqrAC&pg=PA25&redir_esc=y

Examples

1
2
3
4
5
init()
Bell(Q$Q0, Q$Q0)
Bell(Q$Q0, Q$Q1)
Bell(Q$Q1, Q$Q0)
Bell(Q$Q1, Q$Q1)

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