sf.plot.plot_quad¶
-
plot_quad
(state, modes, xvec, pvec, renderer='browser')[source]¶ Plot the x and p-quadrature probability distributions with Plot.ly.
- Parameters
state (
BaseState
) – the state used for plottingmode (int) – mode used to calculate the reduced Wigner function
xvec (array) – array of discretized \(x\) quadrature values
pvec (array) – array of discretized \(p\) quadrature values
renderer (string) – the renderer for plotting with Plot.ly
code/api/strawberryfields.plot.plot_quad
Download Python script
Download Notebook
View on GitHub