# arjuna08coder/noise-lab architecture

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

- Interactive diagram: https://gitdiagram.com/arjuna08coder/noise-lab
- Repository: https://github.com/arjuna08coder/noise-lab

## Overview

Noise Lab is a Streamlit quantum-noise study app. Users configure and run a local one-qubit T1/T2 experiment, inspect a zero-noise estimate, and optionally compare results with uploaded measurements. Separate tabs provide a transfer-learning noise study and published benchmarks, an analytical repetition-code example, and an optional IBM hardware run; the Qubit assistant sends experiment context to NVIDIA NIM. The graph reflects documented imports and calls; some tab internals are unsampled, so their internal relationships are not expanded.

Main entry points: [`app.py`](https://github.com/arjuna08coder/noise-lab/blob/main/app.py) (Streamlit app), [`transfer_learning.py`](https://github.com/arjuna08coder/noise-lab/blob/main/transfer_learning.py) (Transfer-learning lab), [`hardware_runtime.py`](https://github.com/arjuna08coder/noise-lab/blob/main/hardware_runtime.py) (Hardware runtime), [`nvidia_assistant.py`](https://github.com/arjuna08coder/noise-lab/blob/main/nvidia_assistant.py) (Qubit assistant)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["App interface"]
  node_app["Streamlit app<br/>[app.py]"]
end

subgraph group_experiments["Noise experiments"]
  node_local["Local simulation<br/>[quantum_noise.py]"]
  node_zne["Local ZNE<br/>[quantum_noise.py]"]
  node_qec["Bit-flip example<br/>[app.py]"]
end

subgraph group_research["Research studies"]
  node_qtl["Transfer-learning lab"]
  node_dataset["Two-moons data"]
  node_circuit["Quantum features"]
  node_classifier["RBF classifier"]
  node_paper["Paper benchmarks<br/>[paper_results.py]"]
end

subgraph group_integrations["External integrations"]
  node_hardware["Hardware runtime"]
  node_assistant["Qubit assistant"]
end

node_user(("Researcher"))
node_ibm["IBM Quantum"]
node_nim["NVIDIA NIM"]

node_user -->|"configures and views"| node_app
node_app -->|"runs simulation"| node_local
node_app -->|"requests estimate"| node_zne
node_app -->|"shows example"| node_qec
node_app -->|"runs study"| node_qtl
node_qtl -->|"generates"| node_dataset
node_qtl -->|"extracts features"| node_circuit
node_qtl -->|"classifies features"| node_classifier
node_app -->|"shows benchmarks"| node_paper
node_app -->|"submits job"| node_hardware
node_hardware -->|"runs on backend"| node_ibm
node_app -->|"sends snapshot"| node_assistant
node_assistant -->|"requests chat"| node_nim

click node_app "https://github.com/arjuna08coder/noise-lab/blob/main/app.py"
click node_local "https://github.com/arjuna08coder/noise-lab/blob/main/quantum_noise.py"
click node_zne "https://github.com/arjuna08coder/noise-lab/blob/main/quantum_noise.py"
click node_qec "https://github.com/arjuna08coder/noise-lab/blob/main/app.py"
click node_qtl "https://github.com/arjuna08coder/noise-lab/blob/main/transfer_learning.py"
click node_dataset "https://github.com/arjuna08coder/noise-lab/blob/main/transfer_learning.py"
click node_circuit "https://github.com/arjuna08coder/noise-lab/blob/main/transfer_learning.py"
click node_classifier "https://github.com/arjuna08coder/noise-lab/blob/main/transfer_learning.py"
click node_paper "https://github.com/arjuna08coder/noise-lab/blob/main/paper_results.py"
click node_hardware "https://github.com/arjuna08coder/noise-lab/blob/main/hardware_runtime.py"
click node_assistant "https://github.com/arjuna08coder/noise-lab/blob/main/nvidia_assistant.py"

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_app toneBlue
class node_local,node_zne,node_qec toneAmber
class node_qtl,node_dataset,node_circuit,node_classifier,node_paper toneMint
class node_hardware,node_assistant toneRose
class node_user,node_ibm,node_nim toneIndigo
```

## Components

### App interface

- [Streamlit app](https://github.com/arjuna08coder/noise-lab/blob/main/app.py): `app.py`

### Noise experiments

- [Local simulation](https://github.com/arjuna08coder/noise-lab/blob/main/quantum_noise.py): `quantum_noise.py`
- [Local ZNE](https://github.com/arjuna08coder/noise-lab/blob/main/quantum_noise.py): `quantum_noise.py`
- [Bit-flip example](https://github.com/arjuna08coder/noise-lab/blob/main/app.py): `app.py`

### Research studies

- [Transfer-learning lab](https://github.com/arjuna08coder/noise-lab/blob/main/transfer_learning.py): `transfer_learning.py`
- [Two-moons data](https://github.com/arjuna08coder/noise-lab/blob/main/transfer_learning.py): `transfer_learning.py`
- [Quantum features](https://github.com/arjuna08coder/noise-lab/blob/main/transfer_learning.py): `transfer_learning.py`
- [RBF classifier](https://github.com/arjuna08coder/noise-lab/blob/main/transfer_learning.py): `transfer_learning.py`
- [Paper benchmarks](https://github.com/arjuna08coder/noise-lab/blob/main/paper_results.py): `paper_results.py`

### External integrations

- [Hardware runtime](https://github.com/arjuna08coder/noise-lab/blob/main/hardware_runtime.py): `hardware_runtime.py`
- [Qubit assistant](https://github.com/arjuna08coder/noise-lab/blob/main/nvidia_assistant.py): `nvidia_assistant.py`

### Other components

- **Researcher**
- **IBM Quantum**
- **NVIDIA NIM**

## Connections

- Researcher → Streamlit app: configures and views (evidence: `README.md`)
- Streamlit app → Local simulation: runs simulation (evidence: `app.py`)
- Streamlit app → Local ZNE: requests estimate (evidence: `app.py`)
- Streamlit app → Bit-flip example: shows example (evidence: `README.md`)
- Streamlit app → Transfer-learning lab: runs study (evidence: `app.py`)
- Transfer-learning lab → Two-moons data: generates (evidence: `transfer_learning.py`)
- Transfer-learning lab → Quantum features: extracts features (evidence: `transfer_learning.py`)
- Transfer-learning lab → RBF classifier: classifies features (evidence: `transfer_learning.py`)
- Streamlit app → Paper benchmarks: shows benchmarks (evidence: `app.py`)
- Streamlit app → Hardware runtime: submits job (evidence: `app.py`)
- Hardware runtime → IBM Quantum: runs on backend (evidence: `hardware_runtime.py`)
- Streamlit app → Qubit assistant: sends snapshot (evidence: `app.py`)
- Qubit assistant → NVIDIA NIM: requests chat (evidence: `nvidia_assistant.py`)
