measurement function

Computes the square of the modulus

Computes the square of the modulus

This function computes the square of the amplitude of the vectors

measurement(a)

Arguments

  • a: The vector

Returns

x The square of the modulus of the vector

Note

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

Examples

# Initialze global variables init() measurement(TGate(PauliX(I2)))

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

CNOT5_13