sf.plot.plot_wigner¶
-
plot_wigner
(state, mode, xvec, pvec, renderer='browser', contours=True)[source]¶ Plot the Wigner function 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
contours (bool) – whether to show the contour lines in the plot
code/api/strawberryfields.plot.plot_wigner
Download Python script
Download Notebook
View on GitHub