DotProduct {QCSimulator}R Documentation

Dot product of 2 vectors

Description

This function performs a dot product of 2 vectors

Usage

DotProduct(a,b)

Arguments

a

Vector 1

b

Vector 2

Value

result The result of dot product

Note

Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com

Author(s)

Tinniam V Ganesh

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

# Initialze global variables
init()
DotProduct(Hadamard(I2),q1_)
DotProduct(CNOT2_01(I4),q01_)


[Package QCSimulator version 0.0.1 Index]