plotprobs: plotprobs

Description Usage Arguments Value Examples

View source: R/plotprobs.R

Description

Plots the probabilities of each of the amplitudes of ket in a barplot

Usage

1
plotprobs(v,color=rep("Blue",length(v)),customLegend=FALSE,lgNm="",lgCl="")

Arguments

v

ket that is to be plotted

color

Text, possibly an array, specifying the colors of the bars

customLegend

Boolean specifying if a custom legend should be inserted

lgNm

Vector of legend names

lgCl

Vector of legend colors

Value

A plot

Examples

1
 plotprobs(ket(1,0,1,0),color=c("Red","Blue","Red","Blue"))

QuantumOps documentation built on Feb. 3, 2020, 5:07 p.m.