plot-qstate-missing-method: plot-qstate

Description Usage Arguments Value Examples

Description

Plots a circuit corresponding to a qstate object

Usage

1
2
## S4 method for signature 'qstate,missing'
plot(x, y, ...)

Arguments

x

qstate object

y

not used here

...

additional parameters to be passed on

Value

nothing is returned, but a plot created

Examples

1
2
3
4
x <- qstate(2)
y <- H(1) * x
z <- CNOT(c(1,2)) * y
plot(z)

qsimulatR documentation built on Jan. 13, 2021, 3:13 p.m.