Learning to Program Quantum Measurements for Machine Learning

Samuel Yen-Chi Chen, H. Eric Tseng, Hsin-Yi Lin, Shinjae Yoo2025

Abstract

Most quantum machine learning (QML) models rely on fixed, predefined measurement schemes that limit their expressivity and adaptability. This paper introduces a framework that uses a classical neural network to dynamically "program" the quantum measurement operator (the Hermitian matrix) for every individual data point. By treating the measurement process as a learnable, input-conditioned component, the proposed architecture significantly boosts classification accuracy and noise resilience compared to traditional variational quantum circuits.

Introduction

In the current era of Noisy Intermediate-Scale Quantum (NISQ) computing, Variational Quantum Circuits (VQCs) are the primary tools for QML. Typically, researchers focus on optimizing the "gates" (rotation angles) within these circuits while keeping the measurement process—how classical data is extracted from the quantum state—fixed, usually measuring a standard Pauli-Z operator.

The authors argue that this fixed measurement is a major bottleneck. It restricts the "spectral range" of the output, limiting the model's ability to represent complex functions. While some prior work has explored trainable measurements, those operators remain static after training. They cannot adapt to the specific nuances of a new, incoming data point during inference.

Methodology: Fast Weight Programmers for Quantum Circuits

The researchers propose a hybrid architecture inspired by Fast Weight Programmers (FWP). The system consists of two main parts:

  1. The Slow Programmer: A classical neural network (the "controller") that takes input data and generates parameters.
  2. The Fast Actor: A VQC whose parameters (gate angles) and measurement observables are "programmed" on-the-fly by the classical controller.
The Fast Weight Programmer (FWP) architecture where a classical controller dynamically generates parameters for the variational layers and the measurement observables.

Key Innovations

  • Dynamic Observables: Instead of a fixed $Z$ operator, the classical network outputs coefficients for an $N \times N$ Hermitian matrix $H(x)$. This means the "ruler" used to measure the quantum state changes based on the input data.
  • Differentiable Learning: The entire pipeline is end-to-end differentiable, allowing for simultaneous optimization of the classical controller and the quantum logic.
  • Geometric Framework: The authors frame the quantum state space as a complex vector bundle, where the measurement acts as a "bundle metric" that evolves across the data manifold.

Key Results and Performance

The framework was evaluated using synthetic benchmarks like make_moons, make_circles, and high-dimensional make_classification tasks. The "dual-generator" model, which programs both the circuit and the measurement, consistently outperformed all baselines.

Accuracy comparison across different models, demonstrating the superior convergence and final performance of the FWP-based approaches.

Performance Insights

  • Noise Resilience: In high-noise scenarios (e.g., make_moons with 0.3 noise), traditional VQCs showed significant degradation. The FWP model maintained near-perfect accuracy (~95%) with minimal variance, suggesting that data-conditioned measurements act as a powerful regularizer.
  • Scalability: On a 12-feature classification task, standard VQCs plateaued at 70% accuracy, while the dynamic FWP model achieved near 100%.
  • Convergence Speed: FWP-based models reached high accuracy within the first few epochs, bypassing the "barren plateau" problems often found in iterative quantum optimization.

Conclusion and Future Outlook

By allowing the measurement observable to be any Hermitian matrix, the model expands its spectral range beyond the typical $[-1, 1]$ of Pauli operators, allowing the VQC to better fit target labels. While the approach currently faces classical overhead as the number of qubits increases (due to the $2^n \times 2^n$ matrix size), it represents a significant step toward more expressive and robust quantum machine learning. Future work will focus on implementing these arbitrary measurements on real hardware via Pauli string decomposition and testing on real-world datasets in chemistry and NLP.

Summary updated

BibTeX
@misc{chen2025learning,
  author = {Samuel Yen-Chi Chen and H. Eric Tseng and Hsin-Yi Lin and Shinjae Yoo},
  title = {{Learning to Program Quantum Measurements for Machine Learning}},
  year = {2025},
  eprint = {2505.13525},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.13525},
}
Figure