sf.plot.generate_quad_chart¶
-
generate_quad_chart
(state, mode, xvec, pvec)[source]¶ Populates a chart dictionary with x and p reduced quadrature probabilities for a single mode.
- Parameters
state (
BaseState
) – the state used for plottingmode (int) – the mode for which quadrature probabilities are obtained
xvec (array) – array of discretized \(x\) quadrature values
pvec (array) – array of discretized \(p\) quadrature values
- Returns
a Plot.ly JSON-format line plot
- Return type
dict
code/api/strawberryfields.plot.generate_quad_chart
Download Python script
Download Notebook
View on GitHub