Integrate Qshot (noise-aware shot-count recommender) as a pipeline block
Yuchen Yuan
fd88622
New research block from the JQub lab (handover from Tong Li). Given a
QuantumCircuit + an IBM calibration snapshot + a target fidelity α,
Qshot predicts the minimum shots needed to reach α × F_converged on
that backend.
Backend:
* qlib/qshot/ — handover package (recommend_shots_v4, dual_gnn_model,
show_dag, train_dual_gnn) + new __init__.py wrapping lazy singleton
and NOISE_SNAPSHOTS registry. GNN-fallback lazy imports converted
to package-relative so it works as a proper Python package.
* cache/qshot/ — 12 dataset dirs (~3.3k records) + best_model.pt (LFS).
* _handle_qshot in workflow_service: binds free circuit parameters to
zero (Aer constraint), calls singleton.predict, surfaces shots /
fidelity ± std / fit parameters / pilot measurements in summary.
* NodeType += "qshot"; dispatcher wired.
* requirements += hdbscan, torch-geometric, pylatexenc. torch-scatter /
torch-sparse NOT pinned — PyG falls back to pure-Python scatter
without them, far simpler on HF Spaces.
Fr…