Learn R Programming

QCSimulator (version 0.0.1)

TensorProd: Tensor product of 2 vectors

Description

This function performs a tensor product of 2 vectors

Usage

TensorProd(a,b)

Arguments

a
Vector 1
b
Vector 2

Value

result The tensor product of the vectors

References

https://quantumexperience.ng.bluemix.net/ https://gigadom.wordpress.com/2016/06/23/introducing-qcsimulator-a-5-qubit-quantum-computing-simulator-in-r/

See Also

CNOT2_10 PauliX measurement plotMeasurement CNOT5_03 CNOT4_13

Examples

Run this code
# Initialze global variables
init()
TensorProd(Hadamard(I2),Hadamard(I2))


Run the code above in your browser using DataLab