exa.core.experiment.utils.parallel_utils.plot_with_circuit_index

exa.core.experiment.utils.parallel_utils.plot_with_circuit_index#

plot_with_circuit_index(plotting_function, circuit_index, *args, **kwargs)#

Handles the circuit_index==1 case for plotting.

If circuit_index==1, the circuit_index dimension is not present in the data, and the whole dataset should be used for the plotting.

Parameters:
  • plotting_function (Callable[[...], Figure]) – The plotting function.

  • circuit_index (int) – The circuit index.

  • args – Args given to plotting function.

  • kwargs – Kwargs given to plotting function.

Returns:

Wrapped plot with the circuit_index dimension handled correctly.

Return type:

Figure