Tools for visualizing graphs, subgraphs, point processes, and vibronic spectra.

Visualization requires installation of the Plotly library, which is not a dependency of Strawberry Fields. Plotly can be installed using pip install plotly or by visiting their installation instructions.


graph(g[, s, plot_size])

Creates a plot of the input graph.

points(R[, sample, plot_size, point_size])

Creates a plot of two-dimensional points given their input coordinates.

spectrum(energies[, gamma, xmin, xmax])

Plots a vibronic spectrum based on input sampled energies.

subgraph(s[, plot_size])

Creates a plot of the input subgraph.