# hidorakai002/qff-srmap-2026-ps-s3 architecture

> Architecture diagram of the GitHub repository hidorakai002/qff-srmap-2026-ps-s3, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hidorakai002/qff-srmap-2026-ps-s3
- Repository: https://github.com/hidorakai002/qff-srmap-2026-ps-s3

## Overview

PS-S3 is a reproducible quantum-simulation benchmark comparing Trotter error and shared-model processor noise on Processor A and B. The workflow loads frozen benchmark settings, builds Trotter circuits, compiles and simulates them for each processor, compares noisy results with exact classical evolution, then saves tables and figures. The experiment also covers multiple Trotter orders, seeds, and times. Source excerpts show the main runtime calls; the README documents the benchmark scope and reported capabilities. Results are represented as outputs, not implementation internals.

Main entry points: [`main.py`](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/main.py) (Benchmark runner), [`src/experiment.py`](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/experiment.py) (Experiment orchestration), [`src/processors.py`](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/processors.py) (Processor definitions), [`src/metrics.py`](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/metrics.py) (Compilation and metrics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runner["Experiment runner"]
  node_runner["Benchmark runner<br/>[main.py]"]
  node_settings["Benchmark settings<br/>[benchmark.json]"]
  node_experiment["Experiment orchestration<br/>[experiment.py]"]
end

subgraph group_simulation["Quantum simulation"]
  node_trotter["Trotter circuits<br/>[circuits.py]"]
  node_exact["Exact evolution<br/>[problem.py]"]
  node_compile["Compilation and metrics<br/>[metrics.py]"]
  node_noise["Shared noise model<br/>[noise.py]"]
end

subgraph group_benchmark["Processor benchmark"]
  node_processor_loader["Processor definitions<br/>[processors.py]"]
  node_processor_a["Processor A map<br/>[processor_A.json]"]
  node_processor_b["Processor B map<br/>[processor_B.json]"]
end

subgraph group_outputs["Results and analysis"]
  node_tables[("Experiment tables")]
  node_visualization["Plots and figures<br/>[visualization.py]"]
  node_figures["Generated figures"]
end

node_engineer(("Researcher"))

node_engineer -->|"runs"| node_runner
node_runner -->|"loads settings"| node_settings
node_runner -->|"runs experiment"| node_experiment
node_experiment -->|"builds circuits"| node_trotter
node_experiment -->|"computes reference"| node_exact
node_experiment -->|"compiles and measures"| node_compile
node_compile -->|"uses noise model"| node_noise
node_experiment -->|"loads processors"| node_processor_loader
node_processor_loader -->|"loads map"| node_processor_a
node_processor_loader -->|"loads map"| node_processor_b
node_runner -->|"saves tables"| node_tables
node_runner -->|"generates figures"| node_visualization
node_visualization -->|"loads processor maps"| node_processor_loader
node_runner -->|"writes figures"| node_figures

click node_runner "https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/main.py"
click node_settings "https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/configs/benchmark.json"
click node_experiment "https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/experiment.py"
click node_trotter "https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/circuits.py"
click node_exact "https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/problem.py"
click node_compile "https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/metrics.py"
click node_noise "https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/noise.py"
click node_processor_loader "https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/processors.py"
click node_processor_a "https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/processors/processor_A.json"
click node_processor_b "https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/processors/processor_B.json"
click node_tables "https://github.com/hidorakai002/qff-srmap-2026-ps-s3/tree/main/results/tables"
click node_visualization "https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/visualization.py"
click node_figures "https://github.com/hidorakai002/qff-srmap-2026-ps-s3/tree/main/results/figures"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_runner,node_settings,node_experiment toneBlue
class node_trotter,node_exact,node_compile,node_noise toneAmber
class node_processor_loader,node_processor_a,node_processor_b toneMint
class node_tables,node_visualization,node_figures toneRose
class node_engineer toneIndigo
```

## Components

### Experiment runner

- [Benchmark runner](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/main.py): `main.py`
- [Benchmark settings](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/configs/benchmark.json): `configs/benchmark.json`
- [Experiment orchestration](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/experiment.py): `src/experiment.py`

### Quantum simulation

- [Trotter circuits](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/circuits.py): `src/circuits.py`
- [Exact evolution](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/problem.py): `src/problem.py`
- [Compilation and metrics](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/metrics.py): `src/metrics.py`
- [Shared noise model](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/noise.py): `src/noise.py`

### Processor benchmark

- [Processor definitions](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/processors.py): `src/processors.py`
- [Processor A map](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/processors/processor_A.json): `processors/processor_A.json`
- [Processor B map](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/processors/processor_B.json): `processors/processor_B.json`

### Results and analysis

- [Experiment tables](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/tree/main/results/tables): `results/tables`
- [Plots and figures](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/blob/main/src/visualization.py): `src/visualization.py`
- [Generated figures](https://github.com/hidorakai002/qff-srmap-2026-ps-s3/tree/main/results/figures): `results/figures`

### Other components

- **Researcher**

## Connections

- Researcher → Benchmark runner: runs (evidence: `README.md`)
- Benchmark runner → Benchmark settings: loads settings
- Benchmark runner → Experiment orchestration: runs experiment (evidence: `main.py`)
- Experiment orchestration → Trotter circuits: builds circuits (evidence: `src/experiment.py`)
- Experiment orchestration → Exact evolution: computes reference (evidence: `src/experiment.py`)
- Experiment orchestration → Compilation and metrics: compiles and measures (evidence: `src/experiment.py`)
- Compilation and metrics → Shared noise model: uses noise model (evidence: `src/metrics.py`)
- Experiment orchestration → Processor definitions: loads processors (evidence: `src/experiment.py`)
- Processor definitions → Processor A map: loads map (evidence: `src/processors.py`)
- Processor definitions → Processor B map: loads map (evidence: `src/processors.py`)
- Benchmark runner → Experiment tables: saves tables (evidence: `main.py`)
- Benchmark runner → Plots and figures: generates figures (evidence: `main.py`)
- Plots and figures → Processor definitions: loads processor maps (evidence: `src/visualization.py`)
- Benchmark runner → Generated figures: writes figures (evidence: `main.py`)
