How vivianaranha/quantum-convolutional-neural-network works
This is a local-first synthetic image-classification and benchmarking application: users generate or load 8×8 line images, then classify them with a QCNN and matched classical baselines. Its main workflow spans image generation and spatial compression, model training, repeated held-out evaluation and sensitivity analysis, artifact/report production, and saved-model inference. The dashboard and CLI are separate entry points. Benchmark internals were not excerpted, so orchestration links below rely on README workflow statements; other links cite shown callers.
Main entry points: benchmark.py Benchmark runner · cli.py Command line · app.py Dashboard · inference.py Saved-model inference
Components 15
User entry points
- Dashboard
app.py - Command line
src/quantum_cnn/cli.py - Run configuration
src/quantum_cnn/config.py
Image inputs
- Synthetic images
src/quantum_cnn/data.py - Patch features
src/quantum_cnn/data.py
Models and evaluation
- Benchmark runner
src/quantum_cnn/benchmark.py - QCNN simulator
src/quantum_cnn/qcnn.py - Classical baselines
src/quantum_cnn/models.py - Repeated holdouts
src/quantum_cnn/benchmark.py - Metrics and probes
src/quantum_cnn/metrics.py
Results and inference
- Run artifacts
src/quantum_cnn/artifacts.py - Plots and diagnostics
src/quantum_cnn/visualization.py - Saved-model inference
src/quantum_cnn/inference.py
Other components
- User
- Image file
Connections 22
- User → Dashboard: opens
app.py - User → Command line: runs
src/quantum_cnn/cli.py - Dashboard → Run configuration: configures
app.py - Dashboard → Benchmark runner: runs
app.py - Command line → Run configuration: loads
src/quantum_cnn/cli.py - Command line → Benchmark runner: runs
src/quantum_cnn/cli.py - Dashboard → Synthetic images: generates sample
app.py - Command line → Synthetic images: generates sample
src/quantum_cnn/cli.py - Command line → Image file: loads
src/quantum_cnn/cli.py - Synthetic images → Patch features: extracts features
src/quantum_cnn/data.py - Benchmark runner → Synthetic images: generates dataset
README.md - Benchmark runner → Patch features: uses features
README.md - Benchmark runner → Repeated holdouts: evaluates repeats
README.md - Benchmark runner → QCNN simulator: trains QCNN
README.md - Benchmark runner → Classical baselines: trains baselines
README.md - Benchmark runner → Metrics and probes: computes metrics
README.md - Saved-model inference → Patch features: extracts features
src/quantum_cnn/inference.py - Saved-model inference → Classical baselines: scores models
src/quantum_cnn/inference.py - Benchmark runner → Run artifacts: persists results
README.md - Run artifacts → Plots and diagnostics: saves plots
src/quantum_cnn/artifacts.py - Dashboard → Saved-model inference: classifies image
app.py - Command line → Saved-model inference: predicts image
src/quantum_cnn/cli.py