# emmanuella-adams/eigenwall architecture

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

- Interactive diagram: https://gitdiagram.com/emmanuella-adams/eigenwall
- Repository: https://github.com/emmanuella-adams/eigenwall

## Overview

EigenWall is a research prototype comparing classical MVDR beamforming with an HHL-style quantum linear solver for simulated deep-space antenna arrays. Its main workflow simulates target, interference, and noise snapshots; estimates and regularizes covariance; computes classical and quantum weights; then evaluates beam patterns, nulls, and performance. Separate experiments investigate QPE precision, snapshot starvation, conditioning, quantum noise, and trapped-ion resource estimates. The README documents the overall pipeline; some subsystem links rely on its descriptions because those implementations were not sampled.

Main entry points: [`eigenwall/quantum/hhl_solver.py`](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/quantum/hhl_solver.py) (HHL Solver), [`experiments/experiment_02_beamforming.py`](https://github.com/emmanuella-adams/eigenwall/blob/main/experiments/experiment_02_beamforming.py) (Beamforming Benchmark), [`eigenwall/signal_model.py`](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/signal_model.py) (Signal Snapshots), [`eigenwall/covariance.py`](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/covariance.py) (Covariance Regularization)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_array["Array Modeling"]
  node_signal["Signal Snapshots<br/>[signal_model.py]"]
  node_covariance["Covariance Regularization<br/>[covariance.py]"]
end

subgraph group_classical["Classical Beamforming"]
  node_classical_weights["Classical MVDR Weights<br/>[beamforming.py]"]
  node_patterns["Beam Patterns<br/>[beamforming.py]"]
  node_matrix_utils["Matrix Utilities<br/>[matrix_utils.py]"]
end

subgraph group_quantum["Quantum Solver"]
  node_hhl["HHL Solver<br/>[hhl_solver.py]"]
  node_state_prep["State Preparation"]
  node_qpe["Phase Estimation<br/>[qpe.py]"]
  node_iqpe["Iterative QPE<br/>[iqpe.py]"]
  node_measurement["Post-selection<br/>[measurement.py]"]
  node_ionq["IonQ Resource Analysis<br/>[ionq_resources.py]"]
end

subgraph group_evaluation["Evaluation Experiments"]
  node_metrics["Performance Metrics<br/>[metrics.py]"]
  node_beam_experiment["Beamforming Benchmark"]
  node_other_experiments["Robustness Studies"]
end

node_spacecraft(("Spacecraft Signal"))
node_interference(("Interference Sources"))
node_thermal(("Thermal Noise"))

node_spacecraft -->|"contributes signal"| node_signal
node_interference -->|"contributes interference"| node_signal
node_thermal -->|"adds noise"| node_signal
node_signal -->|"forms snapshots"| node_covariance
node_covariance -->|"provides covariance"| node_classical_weights
node_covariance -->|"provides matrix"| node_hhl
node_classical_weights -->|"synthesizes pattern"| node_patterns
node_hhl -->|"reconstructs weights"| node_patterns
node_hhl -->|"prepares state"| node_state_prep
node_hhl -->|"uses QPE"| node_qpe
node_hhl -->|"uses IQPE"| node_iqpe
node_qpe -->|"prepares input"| node_state_prep
node_hhl -->|"compiles circuit"| node_ionq
node_beam_experiment -->|"simulates snapshots"| node_signal
node_beam_experiment -->|"estimates covariance"| node_covariance
node_beam_experiment -->|"computes baseline"| node_classical_weights
node_beam_experiment -->|"solves quantum system"| node_hhl
node_beam_experiment -->|"budgets resources"| node_ionq
node_beam_experiment -->|"evaluates results"| node_metrics
node_beam_experiment -->|"computes patterns"| node_patterns
node_other_experiments -->|"tests solver"| node_hhl
node_other_experiments -->|"post-selects shots"| node_measurement
node_metrics -->|"normalizes states"| node_matrix_utils
node_metrics -->|"uses steering vectors"| node_signal

click node_signal "https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/signal_model.py"
click node_covariance "https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/covariance.py"
click node_classical_weights "https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/beamforming.py"
click node_patterns "https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/beamforming.py"
click node_matrix_utils "https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/matrix_utils.py"
click node_hhl "https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/quantum/hhl_solver.py"
click node_state_prep "https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/quantum/state_preparation.py"
click node_qpe "https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/quantum/qpe.py"
click node_iqpe "https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/quantum/iqpe.py"
click node_measurement "https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/quantum/measurement.py"
click node_ionq "https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/quantum/ionq_resources.py"
click node_metrics "https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/metrics.py"
click node_beam_experiment "https://github.com/emmanuella-adams/eigenwall/blob/main/experiments/experiment_02_beamforming.py"
click node_other_experiments "https://github.com/emmanuella-adams/eigenwall/tree/main/experiments"

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_signal,node_covariance toneBlue
class node_classical_weights,node_patterns,node_matrix_utils toneAmber
class node_hhl,node_state_prep,node_qpe,node_iqpe,node_measurement,node_ionq toneMint
class node_metrics,node_beam_experiment,node_other_experiments toneRose
class node_spacecraft,node_interference,node_thermal toneIndigo
```

## Components

### Array Modeling

- [Signal Snapshots](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/signal_model.py): `eigenwall/signal_model.py`
- [Covariance Regularization](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/covariance.py): `eigenwall/covariance.py`

### Classical Beamforming

- [Classical MVDR Weights](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/beamforming.py): `eigenwall/beamforming.py`
- [Beam Patterns](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/beamforming.py): `eigenwall/beamforming.py`
- [Matrix Utilities](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/matrix_utils.py): `eigenwall/matrix_utils.py`

### Quantum Solver

- [HHL Solver](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/quantum/hhl_solver.py): `eigenwall/quantum/hhl_solver.py`
- [State Preparation](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/quantum/state_preparation.py): `eigenwall/quantum/state_preparation.py`
- [Phase Estimation](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/quantum/qpe.py): `eigenwall/quantum/qpe.py`
- [Iterative QPE](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/quantum/iqpe.py): `eigenwall/quantum/iqpe.py`
- [Post-selection](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/quantum/measurement.py): `eigenwall/quantum/measurement.py`
- [IonQ Resource Analysis](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/quantum/ionq_resources.py): `eigenwall/quantum/ionq_resources.py`

### Evaluation Experiments

- [Performance Metrics](https://github.com/emmanuella-adams/eigenwall/blob/main/eigenwall/metrics.py): `eigenwall/metrics.py`
- [Beamforming Benchmark](https://github.com/emmanuella-adams/eigenwall/blob/main/experiments/experiment_02_beamforming.py): `experiments/experiment_02_beamforming.py`
- [Robustness Studies](https://github.com/emmanuella-adams/eigenwall/tree/main/experiments): `experiments`

### Other components

- **Spacecraft Signal**
- **Interference Sources**
- **Thermal Noise**

## Connections

- Spacecraft Signal → Signal Snapshots: contributes signal (evidence: `README.md`)
- Interference Sources → Signal Snapshots: contributes interference (evidence: `README.md`)
- Thermal Noise → Signal Snapshots: adds noise (evidence: `README.md`)
- Signal Snapshots → Covariance Regularization: forms snapshots (evidence: `README.md`)
- Covariance Regularization → Classical MVDR Weights: provides covariance (evidence: `README.md`)
- Covariance Regularization → HHL Solver: provides matrix (evidence: `README.md`)
- Classical MVDR Weights → Beam Patterns: synthesizes pattern (evidence: `README.md`)
- HHL Solver → Beam Patterns: reconstructs weights (evidence: `experiments/experiment_02_beamforming.py`)
- HHL Solver → State Preparation: prepares state (evidence: `eigenwall/quantum/hhl_solver.py`)
- HHL Solver → Phase Estimation: uses QPE (evidence: `eigenwall/quantum/hhl_solver.py`)
- HHL Solver → Iterative QPE: uses IQPE (evidence: `eigenwall/quantum/hhl_solver.py`)
- Phase Estimation → State Preparation: prepares input (evidence: `eigenwall/quantum/qpe.py`)
- HHL Solver → IonQ Resource Analysis: compiles circuit (evidence: `eigenwall/quantum/hhl_solver.py`)
- Beamforming Benchmark → Signal Snapshots: simulates snapshots (evidence: `experiments/experiment_02_beamforming.py`)
- Beamforming Benchmark → Covariance Regularization: estimates covariance (evidence: `experiments/experiment_02_beamforming.py`)
- Beamforming Benchmark → Classical MVDR Weights: computes baseline (evidence: `experiments/experiment_02_beamforming.py`)
- Beamforming Benchmark → HHL Solver: solves quantum system (evidence: `experiments/experiment_02_beamforming.py`)
- Beamforming Benchmark → IonQ Resource Analysis: budgets resources (evidence: `experiments/experiment_02_beamforming.py`)
- Beamforming Benchmark → Performance Metrics: evaluates results (evidence: `experiments/experiment_02_beamforming.py`)
- Beamforming Benchmark → Beam Patterns: computes patterns (evidence: `experiments/experiment_02_beamforming.py`)
- Robustness Studies → HHL Solver: tests solver (evidence: `experiments/experiment_05_noise.py`)
- Robustness Studies → Post-selection: post-selects shots (evidence: `experiments/experiment_05_noise.py`)
- Performance Metrics → Matrix Utilities: normalizes states (evidence: `eigenwall/metrics.py`)
- Performance Metrics → Signal Snapshots: uses steering vectors (evidence: `eigenwall/metrics.py`)
