The scripts in this repository are used to collect data for two benchmarks and plot the results.
First, circuit construction performance with OpenQudit is measured agaisnt Tket and Qiskit. To collect and plot the data:
- Collect data for Tket and Qiskit by running benchpress.
- Collect data for OpenQudit by compiling and running the included run-benchpress-construct crate.
- Input the data into the
draw_graph.pyscript, and run it.
Second, BQSKit's best general-purpose compilation is measured agaisnt Tket and Qiskit compilation. To collect and plot the data:
- To generate the Benchpress circuits, run
partition_feynman,partition_hamiltonians, andpartition_qasm_benchto generate the corresponding benchpress BQSKit circuits and store them in the apartitioned_circuitsdirectory. - Then, you can launch the BQSKit compiler by running
run_circwith the corresponding benchmark name. - This will output the circuit data into a pickle file. To gather all the data, then run the
gather_counts.py. - Finally, input the gathered data to
draw_graph.pyand run. X. The generated pickle file will be auto-detected by thedraw_graph.pyscript, which can be used to plot the results.