sf.plot.generate_fock_chart

generate_fock_chart(state, modes, cutoff)[source]

Populates a chart dictionary with marginal Fock state probability distributions for multiple modes.

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

  • modes (list) – list of modes to generate Fock charts for

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

Returns

a Plot.ly JSON-format bar chart

Return type

dict