How ottomp/wind-forecasting-quantum works
This is a research codebase for short-horizon multivariate weather forecasting with a quantum neural network, with analysis capabilities documented for comparison against an MLP. The principal workflow prepares weather inputs and multi-hour targets, trains and evaluates forecasts, then reports metrics and prediction plots. The experiment script is the orchestration layer; model, dataset, and statistics modules provide supporting runtime behavior. Some experiment code is omitted, so links to unsampled stages are shown only where the excerpt or README supports them.
Main entry points: experiments-public.py Experiment runner · models.py Quantum network · WeatherForcasting_DATA.csv Weather data · circuits.py Entangling circuits
Components 19
Forecast workflow
- Experiment runner
experiments-public.py - Forecast preparation
experiments-public.py - Split and scale
experiments-public.py - Batch dataset
utils/datasets.py - Model training
experiments-public.py - Early stopping
utils/models.py - Test prediction
experiments-public.py
Quantum model
- Quantum network
utils/models.py - Quantum circuit
utils/models.py - Classical output
utils/models.py - Entangling circuits
utils/circuits.py
Evaluation and reporting
- Error intervals
utils/statistics.py - Forecast metrics
utils/statistics.py - Distribution test
utils/statistics.py - Forecast plots
experiments-public.py - MLP comparison
experiments-public.py
Research resources
- Weather data
data/WeatherForcasting_DATA.csv - Analysis outputs
analysis
Other components
- Researcher
Connections 19
- Researcher → Experiment runner: runs
README.md - Experiment runner → Weather data: loads
- Experiment runner → Forecast preparation: prepares
experiments-public.py - Weather data → Forecast preparation: supplies inputs
- Experiment runner → Split and scale: splits and scales
experiments-public.py - Experiment runner → Batch dataset: creates datasets
experiments-public.py - Experiment runner → Quantum network: constructs
experiments-public.py - Quantum network → Quantum circuit: executes
utils/models.py - Quantum network → Classical output: projects outputs
utils/models.py - Experiment runner → Model training: trains
experiments-public.py - Model training → Early stopping: checks stopping
experiments-public.py - Experiment runner → Test prediction: predicts
experiments-public.py - Experiment runner → Error intervals: computes intervals
experiments-public.py - Experiment runner → Forecast metrics: analyzes forecasts
experiments-public.py - Experiment runner → Distribution test: tests distributions
experiments-public.py - Experiment runner → Forecast plots: plots forecasts
experiments-public.py - Experiment runner → Analysis outputs: writes results
experiments-public.py - Experiment runner → MLP comparison: compares models
README.md - Entangling circuits → Quantum network: alternative circuits