sf.plot.generate_wigner_chart

generate_wigner_chart(state, mode, xvec, pvec, contours=True)[source]

Populates a chart dictionary with reduced Wigner function surface plot data.

Parameters
  • state (BaseState) – the state used for plotting

  • mode (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

  • contours (bool) – whether to show the contour lines in the plot

Returns

a Plot.ly JSON-format surface plot

Return type

dict