Skip to content

Commit

Permalink
Remove unnecessary prints
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-mills-cqc committed Apr 17, 2024
1 parent 71383f1 commit df2840c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions automated_benchmarking/automated_benchmarking.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ def percentage_better(
compilers: Annotated[List[Compilers], typer.Argument(help="Compilers to compare.")],
):

print("compilers", compilers)
print("compiled_path", compiled_path)
print("circuit_suite_path", circuit_suite_path)
# print("compilers", compilers)
# print("compiled_path", compiled_path)
# print("circuit_suite_path", circuit_suite_path)

storage_manager = LocalStorage(
directory_path=compiled_path,
Expand All @@ -143,15 +143,15 @@ def percentage_better(

for compiler in compilers:

print("compiler", compiler)
# print("compiler", compiler)

pass_runner = TimedPassRunner(
compiler_pass=compilers_dict[compiler],
label=compiler.value,
)

for original_circuit in circuit_suite_mgr:
print("original_circuit", original_circuit)
# print("original_circuit", original_circuit)
compiled_circuit_mgr.run_circuit(
pass_runner=pass_runner,
original_circuit=original_circuit,
Expand All @@ -166,7 +166,7 @@ def percentage_better(
comparison_func=lambda circuit : circuit.n_2qb_gates(),
)
data['pytket better'] = data['PytketIBMQ'] <= data['QiskitIBMQ']
print(len(data.loc[data['pytket better']]) / len(data))
print(100 * len(data.loc[data['pytket better']]) / len(data))


@app.command()
Expand Down

0 comments on commit df2840c

Please sign in to comment.