Learn R Programming

QuantumOps (version 3.0.1)

probs: probs

Description

Returns a column vector containing the probabilities of measuring the system in each state

Usage

probs(ket)

Arguments

ket

ket (column vector) that is input to the gate

Value

Column vector containing probabilities

Examples

Run this code
# NOT RUN {
 probs(ket(1,1))
# }

Run the code above in your browser using DataLab