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 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

  • renderer (string) – the renderer for plotting with Plot.ly