Skip to content

Commit

Permalink
Plot compiled gate counts instead of raw in plot_latest_benchmarks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jordandsullivan committed Dec 16, 2024
1 parent f8f0660 commit 7630975
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified benchmarks/latest_compiler_benchmarks_by_circuit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions benchmarks/scripts/plot_latest_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

# Find the most recent date in the 'date' column
latest_date = df_all['date'].max()
print("latest date is", latest_date)

# Filter the dataframe to only include rows from the most recent date
df_latest = df_all[df_all['date'] == latest_date]
Expand Down Expand Up @@ -73,7 +74,7 @@
# Plot gate count
ax[1].bar(
[grp_indices + i * bar_width for grp_indices in grp_indices], # Shift bars for each compiler
grp['raw_multiq_gates'], # Gate count data
grp['compiled_multiq_gates'], # Gate count data
width=bar_width,
label=key,
color=color_map[key]
Expand All @@ -89,7 +90,7 @@

ax[1].set_title(f"Gate Counts on Circuits (Date: {latest_date})")
ax[1].set_xlabel("Circuit Name")
ax[1].set_ylabel("Raw Gate Count")
ax[1].set_ylabel("Compiled Count")
ax[1].set_xticks(x_positions)
ax[1].set_xticklabels(circuit_names, rotation=75)
ax[1].set_yscale("log")
Expand Down

0 comments on commit 7630975

Please sign in to comment.