Goto

Collaborating Authors

 qubit


Benchmarking Quantum Machine Learning for Power-System Attack Detection: Evaluation Choices Can Decide the Outcome

arXiv.org Artificial Intelligence

Quantum machine learning is proposed to detect grid cyberattacks, but no study we could read tests quantum and classical detectors under white-box, transfer, and black-box attacks and random label flips in one protocol. We compare two quantum and six classical detectors on public grid-attack data under equal tuning budgets. Our main finding: evaluation choices can decide the outcome. On these data, seven choices each changed a reported result with model families fixed. Row-level splits inflate our best score by 0.31 macro-averaged F1 over held-out files, where matched-dimensionality classical and quantum models barely clear chance. Under its own white-box attack the quantum kernel's score falls from 0.56 to 0.01 (chance 0.50), while a transferred attack in the same run leaves 0.52. Trees admit no gradient-based white-box attack, so their attacked scores are upper bounds. These attack results use eight-dimension detectors under row-level splits. On gas-pipeline and simulated-grid data, neither quantum detector is more accurate or consistently more robust; three of the seven choices reproduce fully on gas data with one pressure feature log-scaled (two within noise), and none of the four checked on the grids does. Benchmarks should hold out whole files and give every model its own attack where possible. We release code and checklist.


Mitigating large circuits with a learned small-circuit mitigator

arXiv.org Artificial Intelligence

Learning-based quantum error mitigation infers noise-free results from noisy measurement data. However, exact training labels become prohibitively expensive to compute as circuits grow, and the generalization capability of a trained model to infer accurate results on circuits of depths and sizes it was not trained on poses a challenge. We show that circuit cutting allows such a model to be reused on circuits larger than those it was trained on. We benchmark this approach against zero-noise extrapolation, Clifford data regression, and probabilistic error cancellation on simulated circuits several times wider and deeper than the training circuits. On random-circuit chains, the fragment-wise mitigator removes most of the reconstructed error. For a holographic Ising-chain eigensolver under a fixed shot budget, it recovers most of the noise-induced energy error, close to 90\% or more, and outperforms Clifford data regression and probabilistic error cancellation. Since the mitigator is trained once and needs no additional circuits or noise amplification at inference, its cost is paid up front rather than for every new circuit. The approach is also modular. Any improvement to the small-circuit mitigator, such as retraining on larger fragments or on device-specific noise, carries over directly to every circuit that can be cut into such fragments. Our proposal thus offers a practical route to bringing learned error mitigation to quantum computations far beyond the reach of exact training labels, provided they can be partitioned with a moderate number of cuts.


An Analytically Trained Variational Quantum Circuit using the Output Probability Distribution of Quantum Phase Estimation on NISQ Hardware

arXiv.org Artificial Intelligence

Quantum Phase Estimation (QPE) is the standard algorithm for molecular ground-state energy estimation and often serves as a subroutine in larger quantum algorithms, but its deep circuits make it impractical on current noisy hardware. A previous variational approach replaces the QPE subroutine with a shallow Variational Quantum Circuit (VQC) trained to reproduce the QPE measurement distribution, but generates the training target by classically simulating the full QPE circuit, which is prohibitive for molecules. We reformulate this idea, computing the training target analytically from the Dirichlet kernel, using only a reference energy, the number of ancilla qubits and the evolution time, so the controlled-unitary and inverse-QFT operations of QPE are never simulated. Using H$_2$, we select the VQC stepwise by comparing its IBM Quantum hardware output with the target using four metrics. We first choose the entangler (linear or full) and number of layers of an $R_Y$-$R_Z$-$CZ$ ansatz, with and without dynamical decoupling (DD). As DD degraded performance with depth, we then choose, without DD, the ansatz ($R_Y$-$R_Z$-$CZ$ or $R_Y$-$CZ$) and the training simulator (ideal or noisy). The configuration fixed on H$_2$, a single-layer linear-entangler $R_Y$-$CZ$ ansatz trained on the ideal simulator, is validated on LiH, H$_2$O, BeH$_2$, NH$_3$, CH$_4$, O$_2$ and N$_2$, recovering the dominant QPE bitstring on hardware with errors within chemical accuracy ($1.59 \times 10^{-3}$ Ha) for all eight molecules at the chosen evolution times. We also analyze the hardware side lobes of both ansรคtze, and a noise analysis of the selected ansatz at 8 and 64 layers examines how DD performs with depth. As training requires a known reference energy, the surrogate is not meant for standalone energy estimation, but can replace the QPE subroutine where a larger algorithm uses only its measurement outcome.


Block Search Conditioned on Features for Sequential Quantum Data Encoding

arXiv.org Artificial Intelligence

Sequential quantum data encoding is addressed through the joint selection of input features and encoding blocks within a fixed quantum register. At each step, a new feature, a block of operations, its placement, and its rotation weights are selected together from training data, extending the incremental construction of Q-FLAIR. With direct-loss selection (RAW), nine to twelve features were retained in four qubits across five new Bars and Stripes datasets. Under the same final calibration, mean changes relative to the calibrated Q-FLAIR reference were +5.53 percentage points in balanced accuracy, -15.83% in binary cross-entropy (BCE), and +7.79% in area under the ROC curve (AUC). The prespecified success criterion was met in four of five datasets and for the mean paired differences. These results were obtained by comparing complete procedures under a common cap of 32 operations.


Quantum-to-Quantum Transfer Learning Exhibits Improved Robustness in Low-Data Regimes

arXiv.org Artificial Intelligence

Transfer learning under limited data is a challenging setting, where models must adapt to new tasks with minimal supervision. Prior work has primarily focused on improving absolute accuracy in transfer learning. However, empirical evidence comparing quantum and classical models in realistic transfer learning settings remains limited, especially in low-data regimes. In this work, we systematically study the robustness of quantum models under reduced training data. We evaluate multiple quantum and classical architectures across diverse transfer tasks and retraining configurations, and quantify robustness using accuracy degradation and relative performance retention (RPR). Our results show that, although classical models often achieve higher peak performance, they exhibit significantly larger degradation when training data is limited. In contrast, quantum models maintain more stable performance across data regimes, indicating improved robustness and data efficiency. These findings provide empirical evidence that quantum models can offer improved robustness in low-resource transfer learning scenarios.


Benchmarking memory and nonlinear processing capacity of quantum recurrent neural networks for time series prediction

arXiv.org Artificial Intelligence

Quantum machine learning has emerged as a promising approach to time series prediction. While quantum reservoir computing has been widely explored for this setting, variational quantum models tailored to sequential data remain comparatively understudied, largely because they are difficult to train. In this work, we present a rigorous benchmark of variational quantum recurrent neural networks (QRNNs) on time series prediction tasks, focusing on two key capabilities: memory and nonlinear processing. We introduce a task-driven methodology that quantifies model capacity, enabling an intuitive and fair comparison across architectures, including classical recurrent baselines. We evaluate the proposed framework on two generic benchmark tasks and on a synthetic dataset describing a chaotic system. Overall, the quantum models achieve performance comparable to their classical counterparts, but classical models scale better with the memory size within the range studied. Notably, one QRNN variant shows higher average capacity on the task designed to jointly probe memory and nonlinear capacity. Moreover, our results show that quantum models offer better capacity when we are able to find a good parameter initialization. However, the increasing sensitivity to initialization leads to a lower probability of finding good solutions as the model size increases. These results provide a principled starting point for designing richer quantum recurrent architectures and for assessing where they may offer practical benefits.


Weight-Space Programming of Variational Quantum Circuits: Large Language Models Write Quantum Circuit Parameters Without an Optimizer

arXiv.org Artificial Intelligence

Variational quantum algorithms (VQAs) optimize circuit angles through repeated quantum-device evaluations, often facing vanishing gradients and high optimization costs. We ask whether a large language model (LLM) can write these angles directly. Extending *weight-space programming* from classical networks to quantum circuits, we provide a frontier LLM (\gpt) with the problem, circuit, and gate conventions. Its angles are executed exactly as written, without returning losses, gradients, or accuracy feedback. Across 139 requests, we test handwritten-digit classification, VQE ground-state estimation for spin chains and H$_2$, and MaxCut QAOA, comparing against random weights, classical optimization, and optimization initialized with LLM weights on the same circuit. When parameters have interpretable structure, the LLM matches or approaches the optimizer: it achieves 95--100\% of the energy spectrum on every VQE problem, derives the exact H$_2$ ground state in closed form, finds optimal depth-one QAOA angles for every graph, and reaches 93--96\% accuracy on digits 3 versus 8 with 12--18 hand-written weights, outperforming an optimizer trained on the same ten examples. Its weights are also strong warm starts: optimization reaches its best value after a median of one evaluation rather than hundreds. Allowed to design circuits, the LLM chooses data-dependent rotation chains encoding pixel importance in all 30 cases (one qubit for binary tasks, one chain per qubit for ten classes), reaching 65\% accuracy across ten digits. Yet the approach fails in opaque weight spaces: accuracy drops to chance when fixed circuits exceed 30 weights, while optimization improves. It is also sensitive to gate conventions: 6 of 42 QAOA replies reverse mixing-angle signs and fail. We release all prompts, replies, and scores.


Equivariant Reinforcement Learning for Clifford Quantum Circuit Synthesis

arXiv.org Artificial Intelligence

We consider the problem of synthesizing Clifford quantum circuits for devices with all-to-all qubit connectivity. We approach this task as a reinforcement learning problem in which an agent learns to discover a sequence of elementary Clifford gates that reduces a given symplectic matrix representation of a Clifford circuit to the identity. This formulation permits a simple learning curriculum based on random walks from the identity. We introduce a novel neural network architecture that is equivariant to qubit relabelings of the symplectic matrix representation, and which is size-agnostic, allowing a single learned policy to be applied across different qubit counts without circuit splicing or network reparameterization. On six-qubit Clifford circuits, the largest regime for which optimal references are available, our agent finds circuits within one two-qubit gate of optimality in milliseconds per instance, and finds optimal circuits in 99.2% of instances within seconds per instance. After continued training on ten-qubit instances, the agent scales to unseen Clifford tableaus with up to thirty qubits, including targets generated from circuits with over a thousand Clifford gates, where it achieves lower average two-qubit gate counts than Qiskit's Aaronson-Gottesman and greedy Clifford synthesizers.


GFlowQEC: Generative Flow Networks that Learn to Sample Quantum LDPC Codes

arXiv.org Artificial Intelligence

Choosing a quantum error-correcting code for a real device means scoring candidates with circuit-level simulations so slow that only a few hundred can be run. So every evaluation counts, and a search is judged by how many good codes it finds per paid evaluation. Quantum LDPC codes built from a few group elements protect many logical qubits, but good ones are rare in a huge space. We introduce GFlowQEC, to our knowledge the first generative flow network (GFlowNet) for quantum code design. It builds a code one group element at a time and learns to propose codes in proportion to a power of their score. We train it once on scores from earlier searches, freeze it, and let it propose lifted-product codes with 180 physical qubits, scored by their distances. Ranking ten of its draws per paid call, it finds more than twice as many new top-scoring codes (inequivalent to any it was trained on) as tuned parallel tempering, even when tempering starts from GFlowQEC's training codes. It finds more than three and a half times as many as a supervised screen ranking ten random candidates per call. When both rank a hundred, the screen beats GFlowQEC, and does best ranking GFlowQEC's draws. Soft Q-learning, which shares the GFlowNet's optimal policy, does as well at one noise bias and better at the other, so the gain does not depend on the GFlowNet's training loss. Trained proposers can make a budget of expensive evaluations go further when good codes are rare.


Hybrid Quantum-Classical GANs for the Generation of Adversarial Network Flows

arXiv.org Artificial Intelligence

Classical generative adversarial networks (GANs) have been applied to generate adversarial network traffic capable of attacking intrusion detection systems, but they suffer from shortcomings such as the need for large amounts of high-dimensional datasets, mode collapse, and high computational overhead. In this work, we propose a hybrid quantum-classical GAN (QC-GAN) framework where a variational quantum generator is used to generate synthetic network traffic flows mimicking malicious traffic using latent representations. Instead of sampling classical noise vectors, we encode the latent vector (the hidden features) as a quantum state, which is the basis for claiming more expressive latent representations and reducing computational overhead. A classical discriminator will be trained on real-world datasets (UNSW-NB15) and the proposed QC-GAN-generated fake network flows. In this configuration, the generator aims to minimize the discriminator's ability to distinguish real from fake traffic, while the discriminator aims to maximize its classification accuracy, in an iterative manner. In our attack model, we assume that the attacker is a state actor with access to limited quantum computing power, whereas the discriminator is chosen to be classical, as will likely be the case for most end users and organizations. We test the generated flows using classical intrusion detection system (IDS) models, such as a random forest classifier and a convolutional neural network-based classifier, for their ability to bypass the detection process. This work aims to highlight the possibilities of quantum machine learning as a means of generating advanced attack flows and stress testing classical IDS. Lastly, we further evaluate how hardware-based noise affects these attacks to offer a new perspective on IDS, highlighting the need for a quantum resilient defense system.