QMeasure: Measurement

Description Usage Arguments Value References Examples

View source: R/QMeasure.R

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

1

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

1
2
init()
QMeasure(Q$Q10110)

QGameTheory documentation built on July 8, 2020, 7:27 p.m.