This repository contains multiple quantum/ML tasks implemented as part of a GSoC-style project workflow.
docs/— project context and research planning notesqmaml_hep/— portable Q-MAML core for HEP-inspired few-shot tasksscripts/— experiment and benchmark runners for Q-MAMLtask1/— quantum circuit fundamentals (state prep, SWAP test)task2/— classical GNN jet classification (DGCNN vs GAT)task3/— open-ended commentary task (quantum computing/QML perspective)task6/— quantum representation learning with contrastive fidelity loss on MNISTtest/— smoke tests for Q-MAML componentsreport/— consolidated LaTeX report for the full workspace
- Implemented 5-qubit circuit with Hadamard/CNOT/SWAP/RX operations
- Implemented SWAP-test circuit to estimate overlap between two 2-qubit states
- Generated diagrams and outputs in
task1/
- Graph construction from jet point clouds
- Two architectures implemented:
- DGCNN (
task2/src/dgcnn.py) - GAT (
task2/src/gat_net.py)
- DGCNN (
- Training/evaluation pipeline in
task2/src/train.py - Figures in
task2/figures/, checkpoints intask2/models/, logs intask2/logs/
- Personal technical commentary on quantum computing/QML
- Includes algorithm/software perspective and proposed directions
- MNIST pair sampling with same/different class labels
- Trainable image-to-quantum-state embedding
- SWAP-test fidelity circuit
- Contrastive objective to push same-class fidelity up and different-class fidelity down
- Outputs in
task6/outputs/andtask6/outputs_strong/
- Added reusable package in
qmaml_hep/with:- synthetic task generation (
data.py) - variational quantum classifier (
model.py) - MAML-style inner/outer optimization (
qmaml.py) - classical + quantum baselines (
baselines.py)
- synthetic task generation (
- Added execution scripts in
scripts/:python -m scripts.run_experimentpython -m scripts.run_benchmarkspython -m scripts.summarize_benchmarks
- Added smoke test:
python -m unittest test/test_qmaml_smoke.py -v - Setup dependencies via:
pip install -r requirements-qmaml.txt
A full LaTeX report is provided at:
report/results_report.tex- compiled PDF:
report/results_report.pdf
Build (PowerShell):
cd report
.\build_report.ps1If script execution is restricted, run directly:
pdflatex -interaction=nonstopmode -output-directory report report\results_report.tex
pdflatex -interaction=nonstopmode -output-directory report report\results_report.tex- License:
LICENSE(MIT) - Contribution workflow:
CONTRIBUTING.md