plotting module

plotting.plot_adjacency_heatmap(df, directory)[source]

Plot heatmap of fidelities between all nodes in a quantum network (adjacency matrix plot with fidelities).

Parameters:
  • df (pandas.DataFrame) – Dataframe with stats of all runs in the network.

  • directory (str) – Directory to save the plots

plotting.plot_best_fidelity_phase_heatmap(dfs, directory, config_names)[source]

Plot heatmaps showing the best phase for each parameter configuration based on fidelity values.

Parameters:
  • dfs (list[pandas.DataFrame]) – List of dataframes, each representing a different switch configuration

  • directory (str) – Directory to save the plots

  • config_names (list[str])

  • dataframes (List of configuration names corresponding to the)

plotting.plot_mean_fidelity_2d(df, directory)[source]

Plot mean fidelity heatmaps for each phase in a single dataframe.

Parameters:
  • df (pandas.DataFrame) – Dataframe for a single switch configuration

  • directory (str) – Directory to save the plots

plotting.plot_mean_fidelity_heatmap(dfs, directory, config_names)[source]

Plot mean fidelities as heatmaps in a grid layout for multiple dataframes.

Parameters:
  • dfs (list[pandas.DataFrame]) – List of dataframes, each representing a different switch configuration

  • directory (str) – Directory to save the plots

  • config_names (list[str]) – List of configuration names corresponding to the dataframes

plotting.plot_mean_operation_count_2d(dfs, directory)[source]

Plot mean quantum operation count for each phase in all dataframes.

Parameters:
  • dfs (list[pandas.DataFrame]) – Dataframe for a single switch configuration

  • directory (str) – Directory to save the plots

plotting.plot_mean_phase_fidelity_heatmap(df, directory)[source]

Plot mean fidelity heatmaps for each phase in a single dataframe as a heatmap.

Parameters:
  • df (pandas.DataFrame) – Dataframe for a single switch configuration

  • directory (str) – Directory to save the plots

plotting.plot_mean_simtime_2d(df, directory)[source]

Plot mean simulation time for each phase in a single dataframe.

Parameters:
  • df (pandas.DataFrame) – Dataframe for a single switch configuration

  • directory (str) – Directory to save the plots

plotting.plot_mean_success_prob_2d(dfs, directory)[source]

Plot mean success probability for each phase in all dataframes.

Parameters:
  • dfs (list[pandas.DataFrame]) – Dataframe for a single switch configuration

  • directory (str) – Directory to save the plots

plotting.plot_switch_fidelity_2d(dfs, directory)[source]

Plot mean fidelity in all dataframes.

Parameters:
  • dfs (list[pandas.DataFrame]) – Dataframe for a single switch configuration

  • directory (str) – Directory to save the plots