Skip to content

Commit

Permalink
Problem with JSON result summary in BTC_03_QPE
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfeco committed Nov 11, 2024
1 parent ce47033 commit 5a1e61c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tnbs/BTC_03_QPE/my_benchmark_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def summarize_results(**kwargs):
benchmark_file = kwargs.get("benchmark_file", None)
index_columns = [0, 1, 2, 3, 4]
pdf = pd.read_csv(benchmark_file, header=[0, 1], index_col=index_columns)
print(pdf)
pdf.reset_index(inplace=True)
n_qbits = list(set(pdf["n_qbits"]))
angle_methods = list(set(pdf["angle_method"]))
Expand Down Expand Up @@ -70,7 +71,7 @@ def summarize_results(**kwargs):
metric["COUNT"] = int(step_pdf[metric_name]["count"].iloc[0])
metrics.append(metric)
result["Metrics"] = metrics
results.append(result)
results.append(result)
return results

if __name__ == "__main__":
Expand All @@ -85,7 +86,7 @@ def summarize_results(**kwargs):
################## Configuring the files ##########################

configuration = {
"benchmark_file" : "Results/kernel_SummaryResults.csv"
"benchmark_file" : "2024_11_07_BTC_03_QPE/kernel_SummaryResults.csv"
}

######## Execute Validations #####################################
Expand Down

0 comments on commit 5a1e61c

Please sign in to comment.