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 plottingmodes (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
code/api/strawberryfields.plot.generate_fock_chart
Download Python script
Download Notebook
View on GitHub