mqt.ionshuttler.single_shuttler.run_benchmarks¶
Module Contents¶
- run_simulation_for_architecture(arch: list[int], seeds: list[int], pz: str, max_timesteps: int, compilation: bool = True) tuple[list[int], list[float], int, int, int][source]¶
Runs simulations for the given architecture and seeds, logs the results.
- Parameters:
arch – Architecture parameters.
seeds – List of seed values.
pz – Position of Processing zone.
max_timesteps – Maximum timesteps.
compilation – Compilation flag (Gate Selection Step).
- Returns:
(timestep_arr, cpu_time_arr, number_of_registers, n_of_traps, seq_length)
- log_results(arch: list[int], timestep_arr: list[int], cpu_time_arr: list[float], number_of_registers: int, n_of_traps: int, seq_length: int, compilation: bool = True) None[source]¶
Logs the results of the simulation to a file.
- Parameters:
arch – Architecture parameters.
timestep_arr – List of timesteps.
cpu_time_arr – List of CPU times.
number_of_registers – Number of registers.
n_of_traps – Number of traps.
seq_length – Sequence length.
compilation – Compilation flag (Gate Selection Step).