measurement: Computes the square of the modulus

Description Usage Arguments Value Note Author(s) References See Also Examples

Description

This function computes the square of the amplitude of the vectors

Usage

1

Arguments

a

The vector

Value

x The square of the modulus of the vector

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
CNOT5_13

Examples

1
2
3
# Initialze global variables
init()
measurement(TGate(PauliX(I2)))


Search within the QCSimulator package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.