# srideep-27/qiskit-fallfest-ps-c1-h2 architecture

> Architecture diagram of the GitHub repository srideep-27/qiskit-fallfest-ps-c1-h2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/srideep-27/qiskit-fallfest-ps-c1-h2
- Repository: https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2

## Overview

This is a Qiskit project for estimating H₂ ground-state energy and comparing ideal and noisy VQE results across two simulated processor layouts. The intended workflow spans molecular Hamiltonian/reference calculation, VQE optimization, processor-specific noise simulation, benchmark metrics, and result visualization. The excerpts show the VQE-to-problem dependency and visualization’s CSV input; benchmark orchestration and notebook wiring are not shown, so those links are left unverified rather than inferred.

Main entry points: [`src/benchmark.py`](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/benchmark.py) (Processor benchmark), [`src/visualization.py`](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/visualization.py) (Energy chart), [`src/vqe.py`](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/vqe.py) (VQE optimizer), [`src/processors.py`](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/processors.py) (Noisy simulator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_quantum_model["H₂ model"]
  node_hamiltonian["H₂ Hamiltonian<br/>[problem.py]"]
end

subgraph group_simulation["VQE and simulation"]
  node_vqe["VQE optimizer<br/>[vqe.py]"]
  node_benchmark["Processor benchmark<br/>[benchmark.py]"]
  node_processor_sim["Noisy simulator<br/>[processors.py]"]
  node_processor_configs["Processor layouts"]
  node_routing["Qubit routing<br/>[routing.py]"]
end

subgraph group_analysis["Benchmark and reporting"]
  node_metrics["Result metrics<br/>[metrics.py]"]
  node_metrics_csv[("Benchmark table")]
  node_visualization["Energy chart<br/>[visualization.py]"]
  node_figure_output["Energy figure"]
  node_report["Results discussion<br/>[report.md]"]
end

node_engineer(("Project user"))
node_notebook["Notebook workflow<br/>[main.ipynb]"]

node_engineer -.->|"runs workflow"| node_notebook
node_vqe -->|"uses model"| node_hamiltonian
node_benchmark -.->|"runs VQE"| node_vqe
node_benchmark -.->|"simulates layouts"| node_processor_sim
node_processor_sim -->|"loads settings"| node_processor_configs
node_benchmark -.->|"checks connectivity"| node_routing
node_benchmark -.->|"collects metrics"| node_metrics
node_benchmark -.->|"writes results"| node_metrics_csv
node_visualization -->|"reads table"| node_metrics_csv
node_visualization -->|"saves chart"| node_figure_output

click node_notebook "https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/main.ipynb"
click node_hamiltonian "https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/problem.py"
click node_vqe "https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/vqe.py"
click node_benchmark "https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/benchmark.py"
click node_processor_sim "https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/processors.py"
click node_processor_configs "https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/tree/main/processors"
click node_routing "https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/routing.py"
click node_metrics "https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/metrics.py"
click node_metrics_csv "https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/results/tables/architecture_metrics.csv"
click node_visualization "https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/visualization.py"
click node_figure_output "https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/tree/main/results/figures"
click node_report "https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/report.md"

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_hamiltonian,node_engineer toneBlue
class node_vqe,node_benchmark,node_processor_sim,node_processor_configs,node_routing toneAmber
class node_metrics,node_metrics_csv,node_visualization,node_figure_output,node_report toneMint
class node_notebook toneTeal
```

## Components

### H₂ model

- [H₂ Hamiltonian](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/problem.py): `src/problem.py`

### VQE and simulation

- [VQE optimizer](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/vqe.py): `src/vqe.py`
- [Processor benchmark](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/benchmark.py): `src/benchmark.py`
- [Noisy simulator](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/processors.py): `src/processors.py`
- [Processor layouts](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/tree/main/processors): `processors`
- [Qubit routing](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/routing.py): `src/routing.py`

### Benchmark and reporting

- [Result metrics](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/metrics.py): `src/metrics.py`
- [Benchmark table](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/results/tables/architecture_metrics.csv): `results/tables/architecture_metrics.csv`
- [Energy chart](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/src/visualization.py): `src/visualization.py`
- [Energy figure](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/tree/main/results/figures): `results/figures`
- [Results discussion](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/report.md): `report.md`

### Other components

- **Project user**
- [Notebook workflow](https://github.com/srideep-27/qiskit-fallfest-ps-c1-h2/blob/main/main.ipynb): `main.ipynb`

## Connections

- Project user → Notebook workflow: runs workflow
- VQE optimizer → H₂ Hamiltonian: uses model (evidence: `src/vqe.py`)
- Processor benchmark → VQE optimizer: runs VQE
- Processor benchmark → Noisy simulator: simulates layouts
- Noisy simulator → Processor layouts: loads settings (evidence: `src/processors.py`)
- Processor benchmark → Qubit routing: checks connectivity
- Processor benchmark → Result metrics: collects metrics
- Processor benchmark → Benchmark table: writes results
- Energy chart → Benchmark table: reads table (evidence: `src/visualization.py`)
- Energy chart → Energy figure: saves chart (evidence: `src/visualization.py`)
