aihwkit.utils.visualization_web module

Visualization utilities (web).

aihwkit.utils.visualization_web.plot_device_compact_web(device, w_noise=0.0, n_steps=None, n_traces=3)[source]

Plots a compact step response figure for a given device (preset).

Note

It will use an amount of read weight noise w_noise for reading the weights.

Params:

device: PulsedDevice parameters w_noise: Weight noise standard deviation during read n_steps: Number of steps for up/down cycle n_traces: Number of traces to plot (for device-to-device variation) show: if True, displays the figure.

Returns:

the compact step response figure.

Parameters:
  • device (PulsedDevice) –

  • w_noise (float) –

  • n_steps (int | None) –

  • n_traces (int) –

Return type:

Figure | Axes

aihwkit.utils.visualization_web.save_plots_for_web(path=PosixPath('/tmp'), file_format='svg')[source]

Create the plots for the web.

Parameters:
  • path (Path) – the path where the images will be stored.

  • file_format (str) – the image format.

Return type:

None

aihwkit.utils.visualization_web.set_dark_style(axes)[source]

Sets a nice color cycle for a given axes.

Parameters:

axes (Axes) –

Return type:

None