BELL: BELL

Description Usage Arguments Value Examples

View source: R/BELL.R

Description

If no argument is supplied, returns the matrix of BELL gate. If ket given as input, applies a BELL gate to the input ket and returns the resulting ket

Usage

1

Arguments

...

No argument, or 4 dimensional (2 qubit) ket (column vector) that is input to the gate

Value

Matix of the BELL gate or ket after a BELL gate is applied

Examples

1
2
 BELL(ket(1,1,1,1))
 BELL()

Example output

Attaching package:QuantumOpsThe following object is masked frompackage:stats:

    dist

The following objects are masked frompackage:base:

    I, norm, single

             [,1]
[1,] 0.7071068+0i
[2,] 0.7071068+0i
[3,] 0.0000000+0i
[4,] 0.0000000+0i
          [,1]      [,2]       [,3]       [,4]
[1,] 0.7071068 0.0000000  0.7071068  0.0000000
[2,] 0.0000000 0.7071068  0.0000000  0.7071068
[3,] 0.0000000 0.7071068  0.0000000 -0.7071068
[4,] 0.7071068 0.0000000 -0.7071068  0.0000000

QuantumOps documentation built on Feb. 3, 2020, 5:07 p.m.

Related to BELL in QuantumOps...