Learn R Programming

QGameTheory (version 0.1.2)

QMeasure: Measurement

Description

This function performs a projective measurement of a quantum state n, in the computational basis and plots the corresponding probability distributions of the qubits.

Usage

QMeasure(n)

Arguments

n

a vector representing a quantum state

Value

No return value, plots the probability distributions of the qubits after performing a projective measurement of a quantum state n.

References

https://books.google.co.in/books?id=66TgFp2YqrAC&pg=PA25&redir_esc=y https://en.wikipedia.org/wiki/Measurement_in_quantum_mechanics

Examples

Run this code
# NOT RUN {
init()
QMeasure(Q$Q10110)

# }

Run the code above in your browser using DataLab