Inner product of 2 vectors and computes the angle between vectors
This function performs a inner product of 2 vectors and outputs the angle between vectors
innerProduct(a,b)
a
: Vector 1b
: Vector 2theta The angle between the vectors
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
# Initialze global variables init() phi = matrix(c(1/2,sqrt(3)/2),nrow=2,ncol=1) si = matrix(c(1/sqrt(2),1/sqrt(2)),nrow=2,ncol=1) innerProduct(phi,si)
Tinniam V Ganesh
https://quantumexperience.ng.bluemix.net/
CNOT2_10
PauliX
measurement
plotMeasurement
CNOT5_03
CNOT5_13