A composite measurement scheme for efficient quantum observable estimation

Zijian Zhang, Kouhei Nakaji, Matthew Choi, Alán Aspuru‐GuzikarXiv 2023 · DOI

Abstract

Estimation of the expectation value of observables is a key subroutine in quantum computing and is also the bottleneck of the performance of many near-term quantum algorithms. Many works have been proposed to reduce the number of measurements needed for this task and they provide different measurement schemes for generating the measurements to perform. In this paper, we propose a new approach, composite measurement scheme, which composes multiple measurement schemes by distributing shots to them with a trainable ratio. As an example of our method, we study the case where only Pauli measurements are allowed and propose Composite-LBCS (C-LBCS), a composite measurement scheme made by composing locally-biased classical shadows. We numerically demonstrate C-LBCS on molecular systems up to $\mathrm{CO}_2$ (30 qubits) and show that C-LBCS outperforms the previous state-of-the-art methods despite its simplicity. We also show that C-LBCS can be efficiently optimized by stochastic gradient descent and is trainable even when the observable contains a large number of terms. We believe our method opens up a reliable way toward efficient observable estimation on large quantum systems.

Introduction

In the current Noisy Intermediate-Scale Quantum (NISQ) era, algorithms like the Variational Quantum Eigensolver (VQE) are essential for simulating chemistry and materials. However, these algorithms face a massive "measurement bottleneck." Calculating the energy of a molecule requires measuring its Hamiltonian, an observable often composed of thousands or millions of individual Pauli strings. Because quantum measurements are destructive, the quantum state must be recreated and measured repeatedly to achieve a precise average. Naive approaches scale poorly with system size, and while methods like Classical Shadows and Grouping mitigate this, they often lack the flexibility to handle the complex structure of real-world molecular Hamiltonians efficiently.

The Composite Measurement Scheme (CMS)

To address this, we propose a "top-down" approach called a Composite Measurement Scheme (CMS). Instead of selecting a single measurement strategy, CMS treats different strategies as "sub-schemes" and assigns each a probability—a trainable ratio—to determine how measurement shots are distributed.

Overview of the Composite Measurement Scheme (CMS) architecture.

Our flagship implementation is Composite-LBCS (C-LBCS), which combines multiple Locally-Biased Classical Shadows (LBCS). For every measurement shot, the algorithm samples a sub-scheme based on its assigned weight and then uses that sub-scheme to decide which Pauli operators to measure on each qubit. This ensemble approach provides significantly higher representation power than single schemes.

Optimization and Scalability

We optimize the scheme using "Average one-shot variance" as the cost function. Crucially, this function is state-independent, averaging performance over the entire Hilbert space. This allows the measurement strategy to be optimized without prior knowledge of the ground state. To ensure stability and efficiency, we employ several optimization techniques:

  • Gradient Rescaling: Prevents sub-schemes with low weights from "freezing out."
  • Two Time-Scale Update Rule (TTUR): Utilizes different learning rates for sub-scheme parameters and distribution weights.
  • Stochastic Gradient Descent (SGD): Enables training on small batches of Hamiltonian terms, making the method scalable to massive molecules.

Experimental Results

We evaluated C-LBCS on a suite of molecular Hamiltonians, ranging from small molecules like $\text{LiH}$ (12 qubits) to medium/large molecules like $\text{CO}_2$ (30 qubits), using both Jordan-Wigner (JW) and Bravyi-Kitaev (BK) encodings.

Performance comparison of C-LBCS against state-of-the-art measurement schemes.

As shown in the results, C-LBCS consistently outperformed previous state-of-the-art methods, including ShadowGrouping (SG) and Overlapped Grouping Measurement (OGM). For the 30-qubit $\text{CO}_2$ molecule (JW encoding), C-LBCS achieved an average one-shot variance of 2335, compared to 2442 for ShadowGrouping and 11655 for derandomized classical shadows. Furthermore, the method proved insensitive to batch size in SGD, allowing for efficient training on consumer-grade GPUs even for Hamiltonians with tens of thousands of terms.

Conclusion

C-LBCS demonstrates that combining simple measurement schemes can create a highly expressive framework that outperforms specialized single-strategy methods. While this study focused on Pauli measurements, the composite framework can potentially be extended to more complex Clifford measurements. By optimizing for the average state, the scheme remains robust even as quantum states evolve during algorithmic execution, providing a reliable path toward efficient observable estimation in large-scale quantum systems.

Summary updated

BibTeX
@misc{zhang2023composite,
  author = {Zijian Zhang and Kouhei Nakaji and Matthew Choi and Alán Aspuru‐Guzik},
  title = {{A composite measurement scheme for efficient quantum observable estimation}},
  year = {2023},
  eprint = {2305.02439},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.02439},
}
Figure