exa.core.experiment.utils.parallel_utils.wrap_2qb_plot_for_circuit_dimension

exa.core.experiment.utils.parallel_utils.wrap_2qb_plot_for_circuit_dimension#

wrap_2qb_plot_for_circuit_dimension(plotting_function, circuit_index)#

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) – The plotting function.

  • circuit_index (int) – The circuit index.

Returns:

Wrapped plot with the circuit_index dimension handled correctly.

Return type:

Callable