Reliable estimation of tail risk and detection of low-prevalence anomalies remain challenging under distribution shift and limited simulation budgets. This paper introduces a statistical mechanics-inspired hybrid quantum generative model that learns an energy-shaped proposal for rare-event simulation while producing a calibrated anomaly score for deployment. Across simulation budgets from 200 to 6400 samples, relative error decreased from 0.31 to 0.08, outperforming normalizing flows (0.44 to 0.12), diffusion sampling (0.48 to 0.14), and a classical energy model (0.46 to 0.13). At a fixed evaluation budget, the proposed estimator achieved relative error 0.10 with effective sample size 1120 and tail hit rate 6.8%, compared with 0.16, 760, and 4.1% for flows. For anomaly detection, AUROC reached 0.962 and AUPRC reached 0.714, with precision 0.61 at 80% recall, exceeding flow scoring (AUROC 0.935, AUPRC 0.624, precision 0.49) and VAE reconstruction (AUROC 0.928, AUPRC 0.598, precision 0.46). Under temporal drift after a single calibration, realized false positive rate stayed within 0.0004 of a 0.5% target, whereas baselines drifted by up to 0.0084. Ablations showed peak AUPRC near moderate circuit depth and mid-scale qubits, while monotone annealing reduced rare-event error from 0.12 to 0.10 and improved stability. Under increasing noise, mitigation preserved AUPRC from 0.74 at low noise to 0.69 at moderate noise, supporting feasibility for NISQ-constrained monitoring and tail estimation.
Reliable estimation of tail risk and detection of low-prevalence anomalies remain challenging under distribution shift and limited simulation budgets. This paper introduces a statistical mechanics-inspired hybrid quantum generative model that learns an energy-shaped proposal for rare-event simulation while producing a calibrated anomaly score for deployment. Across simulation budgets from 200 to 6400 samples, relative error decreased from 0.31 to 0.08, outperforming normalizing flows (0.44 to 0.12), diffusion sampling (0.48 to 0.14), and a classical energy model (0.46 to 0.13). At a fixed evaluation budget, the proposed estimator achieved relative error 0.10 with effective sample size 1120 and tail hit rate 6.8%, compared with 0.16, 760, and 4.1% for flows. For anomaly detection, AUROC reached 0.962 and AUPRC reached 0.714, with precision 0.61 at 80% recall, exceeding flow scoring (AUROC 0.935, AUPRC 0.624, precision 0.49) and VAE reconstruction (AUROC 0.928, AUPRC 0.598, precision 0.46). Under temporal drift after a single calibration, realized false positive rate stayed within 0.0004 of a 0.5% target, whereas baselines drifted by up to 0.0084. Ablations showed peak AUPRC near moderate circuit depth and mid-scale qubits, while monotone annealing reduced rare-event error from 0.12 to 0.10 and improved stability. Under increasing noise, mitigation preserved AUPRC from 0.74 at low noise to 0.69 at moderate noise, supporting feasibility for NISQ-constrained monitoring and tail estimation.
Rare events such as financial crashes, climate extremes, and biological anomalies are notoriously difficult to model due to their scarcity and heavy-tailed distributions. Classical deep generative models often struggle to capture these rare occurrences, either collapsing low-probability modes or producing poorly calibrated uncertainty estimates. In this work, we propose the Quantum-Enhanced Generative Model (QEGM), a hybrid classical quantum framework that integrates deep latent-variable models with variational quantum circuits. The framework introduces two key innovations: (i) a hybrid loss function that jointly optimizes reconstruction fidelity and tail-aware likelihood, and (ii) quantum randomness–driven noise injection to enhance sample diversity and mitigate mode collapse. Training proceeds via a hybrid loop where classical parameters are updated through backpropagation while quantum parameters are optimized using parameter-shift gradients. We evaluate QEGM on synthetic Gaussian mixtures and real-world datasets spanning finance, climate, and protein structure. Results demonstrate that QEGM consistently reduces tail KL-divergence by up to 50% compared to state-of-the-art baselines (GAN, VAE, Diffusion), while improving rare-event recall and coverage calibration. These findings highlight the potential as a principled approach for rare-event prediction, offering robustness beyond what is achievable with purely classical methods.
Classical ML models for fraud detection tend to break down on rare events, which are the cases that matter most. In imbalanced transaction datasets, new fraud patterns often fall outside what these models were trained to recognize. This paper presents a Hybrid Quantum-Classical Anomaly Detection Framework built to address that gap. Particle Swarm Optimization (PSO) handles feature selection, after which transaction features are encoded into quantum-inspired Hilbert spaces using Angle and Amplitude Encoding. Two quantum models, a Quantum Kernel SVM (QK-SVM) and a Variational Quantum Circuit (VQC), process these representations, and their outputs are fused with scores from Random Forest, XGBoost, and One-Class SVM through a weighted scoring scheme. On the Credit Card Fraud Detection benchmark, the hybrid framework outperforms classical-only baselines on rare event detection across Precision, Recall, F1-Score, and ROC-AUC, without needing actual quantum hardware.
Anomaly detection in high-energy physics is essential for identifying rare events that may signal physics beyond the Standard Model. While classical autoencoders are widely used, their latent spaces lack quantum-specific structure such as entanglement. To address this, we propose a hybrid Quantum Variational Autoencoder (QVAE) that incorporates a parameterized quantum circuit to encode latent variables and extract entanglement-based features. Using the LHC Olympics anomaly detection dataset, this research measures single-qubit von Neumann and Rényi-2 entropies from reduced density matrices of the latent quantum state. Experiments show that anomalous events exhibit statistically distinguishable entanglement signatures compared to background, confirmed by Kolmogorov-Smirnov tests (p < 0.003). Entanglement-based anomaly scores achieve competitive ROC-AUC performance and improve further when combined with reconstruction error. Ablation results demonstrate that removing entangling gates eliminates this separation, indicating that entanglement contributes meaningfully to anomaly detection. The proposed QVAE provides a promising direction for interpretable quantum-enhanced analysis of collider data.
Statistical downscaling is a crucial component of the weather modeling field, where high-resolution outputs must be reconstructed from coarse-resolution inputs with the full cost of dynamical refinement. In this work, we investigate a hybrid quantum-classical corrective diffusion model for probabilistic statistical downscaling of weather fields. The proposed model inserts variational quantum circuit layers into the most compressed bottleneck of the diffusion UNet while leaving the regression branch fully classical. This placement tests whether quantum circuits can act as compact nonlinear feature maps for latent-channel mixing. We evaluate intra-channel and cross-channel ansätze on 10m wind components. On the 2020 validation set, the hybrid models remain stable, preserve the large-scale spatial organization of the generated wind fields, and improve both MAE and CRPS relative to a classical corrective diffusion model in several configurations. Structural diagnostics further show that the hybrid variants preserve kinetic-energy spectra and windspeed distributions similar to its classical counterpart while producing controlled changes in tail behavior, extreme-windspeed localization, and joint wind field components structure. Backend studies on the 2020 validation set show negligible impact from simulated device noise at the tested circuit scale, whereas real-hardware deployment remains limited by qubit availability and execution fidelity. The 2021 out-of-distribution test shows that these in-distribution gains do not transfer uniformly under temporal shift, revealing a generalization gap that motivates future mitigation through stabilization and regularization. These results show that bottleneck-level quantum hybridization can make a nontrivial contribution to weather statistical downscaling, while also highlighting that circuit scale and hardware deployment remain key limiting factors.
Hybrid quantum–classical models deployed in open-world settings require reliable out-of-distribution detection under finite-shot measurement noise, where identical inputs can induce materially different logits across repeated circuit executions. This study evaluates three scoring rules, namely softmax confidence, energy scoring, and uncertainty-aware energy scoring, using a consistent validation-threshold protocol and multi-source OOD testing. Across three OOD shift families, uncertainty-aware energy achieved source-wise AUROC values of 0.953 (semantic shift), 0.942 (corruption shift), and 0.936 (background shift), compared with 0.941, 0.923, and 0.916 for energy-only scoring, and 0.902, 0.884, and 0.864 for softmax confidence. Aggregated over sources, uncertainty-aware energy reached AUROC 0.944 and AUPR 0.931, reducing FPR95 to 0.152, while energy-only produced AUROC 0.927, AUPR 0.914, and FPR95 0.193, and softmax yielded AUROC 0.883, AUPR 0.861, and FPR95 0.279. In-distribution classification remained stable with accuracy 0.898–0.902 across scoring variants, indicating that detection gains were not driven by degraded classification performance. Measurement-budget analysis shows that uncertainty-aware scoring substantially improves low-shot reliability. At 64 shots per observable, energy-only achieved AUROC 0.894 with FPR95 0.251, whereas uncertainty-aware energy reached AUROC 0.929 with FPR95 0.171, while the energy-score dispersion decreased monotonically from 0.42 at 64 shots to 0.17 at 1024 shots. As shot budgets increased, energy-only performance improved, but uncertainty-aware energy retained a consistent advantage, indicating that variance penalization improves score ordering, not only score variance. Architecture ablations further identify a practical expressivity–stability tradeoff: an intermediate-scale circuit (8 qubits, depth 6, brickwork entanglement) attained AUROC 0.949 with FPR95 0.149 and in-distribution accuracy 0.903, whereas further scaling (10 qubits, depth 6) produced AUROC 0.946 with higher FPR95 0.154 and increased score dispersion. Calibration behavior improved concurrently, with ECE reduced from 0.061 (softmax) to 0.044 (energy) and 0.036 (uncertainty-aware energy), supporting more stable operating points under threshold transfer. These findings demonstrate that integrating measurement uncertainty into energy-based scoring provides a robust control mechanism for hybrid quantum OOD detection, particularly under constrained shot budgets and measurement noise.
The practical value of quantum machine learning for network anomaly detection remains unclear under controlled and comparable benchmarking conditions. This study evaluates a trash-qubit-based Quantum Autoencoder (QAE) against seven classical anomaly-detection methods on UNSW-NB15 using shared data partitions, preprocessing steps, model selection procedures, and threshold calibration protocols. The experimental design included five independent seeds, three training set sizes, two feature budgets, and 12 QAE architectures, together with low-FPR analysis, finite-shot and synthetic-noise evaluation, less-constrained classical reference settings, and a cross-dataset assessment on TON_IoT. The Angle-RY encoding with a Real-Amplitudes Ring ansatz at depth L = 2 achieved the highest mean validation-selection AUPRC. On UNSW-NB15, the QAE was competitive in AUPRC and AUROC but remained behind the strongest classical baselines in F1-score, and its attack recall declined sharply under low-FPR constraints. The TON_IoT results further showed that relative model performance depended on the dataset. Under finite-shot and synthetic-noise conditions, anomaly-score rankings were largely preserved, whereas threshold-based decisions were more sensitive. Overall, the QAE showed competitive continuous-score discrimination on UNSW-NB15, but achieving reliable detection at low false-alarm rates remains a key operational challenge.