Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Functions | Variables
benchmark_perf Namespace Reference

Functions

def benchmark_func (func, num_runs=10, warmup=3)
 
def main ()
 
def print_results (results, title="Benchmark Results")
 
def print_summary (results)
 
def run_benchmark (circuits, num_runs=10, warmup=3)
 

Variables

int NUM_RUNS = 1
 
string PRIMARY_BACKEND = "density_matrix"
 
string REFERENCE_BACKEND = "qiskit_aer_density_matrix"
 
int WARMUP_RUNS = 0
 

Detailed Description

Performance Benchmark: SQUANDER vs Qiskit Noisy Circuit Simulation

Benchmarks execution time of identical circuits in both frameworks.

Run with: python benchmarks/benchmark_perf.py

Function Documentation

◆ benchmark_func()

def benchmark_perf.benchmark_func (   func,
  num_runs = 10,
  warmup = 3 
)
Benchmark a function with warmup runs.

Definition at line 24 of file benchmark_perf.py.

Here is the caller graph for this function:

◆ main()

def benchmark_perf.main ( )

Definition at line 125 of file benchmark_perf.py.

Here is the call graph for this function:

◆ print_results()

def benchmark_perf.print_results (   results,
  title = "Benchmark Results" 
)
Print benchmark results in a formatted table.

Definition at line 87 of file benchmark_perf.py.

Here is the caller graph for this function:

◆ print_summary()

def benchmark_perf.print_summary (   results)
Print benchmark summary statistics.

Definition at line 103 of file benchmark_perf.py.

Here is the caller graph for this function:

◆ run_benchmark()

def benchmark_perf.run_benchmark (   circuits,
  num_runs = 10,
  warmup = 3 
)
Run benchmark on a list of circuits.

Definition at line 46 of file benchmark_perf.py.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ NUM_RUNS

int benchmark_perf.NUM_RUNS = 1

Definition at line 20 of file benchmark_perf.py.

◆ PRIMARY_BACKEND

string benchmark_perf.PRIMARY_BACKEND = "density_matrix"

Definition at line 16 of file benchmark_perf.py.

◆ REFERENCE_BACKEND

string benchmark_perf.REFERENCE_BACKEND = "qiskit_aer_density_matrix"

Definition at line 17 of file benchmark_perf.py.

◆ WARMUP_RUNS

int benchmark_perf.WARMUP_RUNS = 0

Definition at line 21 of file benchmark_perf.py.