powered by
Plots the probabilities of each of the amplitudes of ket in a barplot
plotprobs(v,color=rep("Blue",length(v)),customLegend=FALSE,lgNm="",lgCl="")
ket that is to be plotted
Text, possibly an array, specifying the colors of the bars
Boolean specifying if a custom legend should be inserted
Vector of legend names
Vector of legend colors
A plot
# NOT RUN { plotprobs(ket(1,0,1,0),color=c("Red","Blue","Red","Blue")) # }
Run the code above in your browser using DataLab