QXel.benchmark.bench_simulator module

class QXel.benchmark.bench_simulator.BenchSimulator(circ_name, circuit, benchmark_args, category=None, backend=None, instance_name=None)

Bases: object

Run one benchmark circuit through a selected frontend/backend stack.

__init__(circ_name, circuit, benchmark_args, category=None, backend=None, instance_name=None)

Store the circuit, runtime options, and output naming metadata.

change_circuit(circ, circ_name=None, benchmark_name=None)

Replace the active circuit and optionally rename the benchmark case.

score(counts)

Score GHZ-like output counts against the ideal two-peak distribution.

calculate_mean_exec_time(exec_time_list)

Calculate mean exec time.

run_simulation(func, *args, **kwargs)

Run simulation.

run_simulation_async(func, *args, **kwargs)

Run simulation async.

run_qiskit(shots)

Run qiskit.

run_pennylane(shots)

Run pennylane.

run_cirq(shots)

Run cirq.

pi_to_float(match)

convert ±pi(/N) → decimal string

run_qulacs(shots)

Run qulacs.

run_qxel(shots)

Run qxel.

save_benchmark_result()

Save benchmark result.

delete_former_errors()

Delete former errors.

run(shots)

Execute the configured circuit with the selected frontend.