Skip to content

Commit

Permalink
Add print test
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-mills-cqc committed Apr 16, 2024
1 parent f46a45d commit 32f0be5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/automatic_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,12 @@ jobs:
repository: CQCL/pytket-benchmarking-store
path: pytket-benchmarking-store

- name: Test write result to env variable
- name: Test write two to env variable
run: echo "RETURN_TEST=$(python tket/automated_benchmarking/automated_benchmarking.py return-test)" >> $GITHUB_ENV

- name: Test run benchmarks
run: python tket/automated_benchmarking/automated_benchmarking.py percentage-better pytket-benchmarking-store/benchmarking_circuits/quantum_volume temp_compiled QiskitIBMQ PytketIBMQ

- name: Test write result to env variable
run: echo "RETURN_TEST=$(python tket/automated_benchmarking/automated_benchmarking.py percentage-better pytket-benchmarking-store/benchmarking_circuits/quantum_volume temp_compiled QiskitIBMQ PytketIBMQ)" >> $GITHUB_ENV

Expand Down
3 changes: 3 additions & 0 deletions automated_benchmarking/automated_benchmarking.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,15 @@ def percentage_better(

for compiler in compilers:

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)
compiled_circuit_mgr.run_circuit(
pass_runner=pass_runner,
original_circuit=original_circuit,
Expand Down

0 comments on commit 32f0be5

Please sign in to comment.