Skip to content

Runner

Generated from the docstrings in the source code.

runner

Deterministic batch simulation runner driven by YAML configuration. HPC Cluster Logging & Config Validation Enabled.

SimulationRunner(config_path: str)

HPC Batch Simulation Runner. No pseudo-RNG. All parameters are explicitly declared in config or derived from deterministic hash.

Source code in quantumlab/runner.py
def __init__(self, config_path: str):
    self.config_path = Path(config_path)
    if not self.config_path.exists():
        raise FileNotFoundError(f"Simulation config file not found: {config_path}")

    with open(self.config_path, "r", encoding="utf-8") as f:
        self.config = yaml.safe_load(f) or {}

    self.output_dir = Path(self.config.get("output_dir", "output"))
    self.output_dir.mkdir(parents=True, exist_ok=True)