sf.plot.plot_fock

plot_fock(state, modes, cutoff=None, renderer='browser')[source]

Plot the (marginal) Fock state probabilities with Plot.ly.

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

  • modes (list) – List of modes to generate output for. If more than one mode is provided, then the reduced state is computed for each mode, and marginal Fock probabilities plotted per mode.

  • cutoff (int) – The cutoff value determining the maximum Fock state to get probabilities for. Only required if state is a BaseGaussianState.

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