Tomography of Quantum States From Structured Measurements via Quantum-Aware Transformer

Hailan Ma, Zhenhong Sun, Daoyi Dong, Chunlin Chen, Herschel Rabitz · DOI

Abstract

Quantum state tomography (QST) is the process of reconstructing the state of a quantum system (mathematically described as a density matrix) through a series of different measurements, which can be solved by learning a parameterized function to translate experimentally measured statistics into physical density matrices. However, the specific structure of quantum measurements for characterizing a quantum state has been neglected in previous work. In this paper, we explore the similarity between highly structured sentences in natural language and intrinsically structured measurements in QST. To fully leverage the intrinsic quantum characteristics involved in QST, we design a quantum-aware transformer (QAT) model to capture the complex relationship between measured frequencies and density matrices. In particular, we query quantum operators in the architecture to facilitate informative representations of quantum data and integrate the Bures distance into the loss function to evaluate quantum state fidelity, thereby enabling the reconstruction of quantum states from measured data with high fidelity. Extensive simulations and experiments (on IBM quantum computers) demonstrate the superiority of the QAT in reconstructing quantum states with favorable robustness against experimental noise.

Introduction: The Challenge of Quantum State Tomography

Quantum State Tomography (QST) is the "medical imaging" of the quantum world—it is the process of reconstructing the mathematical description of a quantum state (the density matrix $\rho$) from a series of experimental measurements. However, QST faces two massive hurdles: the curse of dimensionality and the impact of experimental noise. As qubits are added, the data required grows exponentially. Furthermore, measurements are not just random numbers; they are highly structured, grouped into "detectors" or sets of operators. Previous machine learning attempts often treated this data as a flat list, ignoring the intrinsic relationship between the measurement settings and the results.

Methodology: Quantum Data as Structured Language

The core innovation of this research is the Quantum-Aware Transformer (QAT). The authors draw a clever analogy between the hierarchical structure of natural language and the structure of quantum measurements. In this framework, individual measurement outcomes act as characters, groups of measurement operators (detectors) act as words, and the full set of measurements used to characterize a state forms a sentence.

The analogy between natural language processing (a) and quantum state tomography (b), where quantum measurements are treated as structured sentences.

Quantum-Aware Architecture

Unlike standard models that only process measured frequencies, the QAT "queries" the actual physical quantum operators used in the experiment. This allows the model to learn the physical context of the data rather than just memorizing statistical patterns.

The Quantum-Aware Transformer architecture featuring cross-attention layers that query physical measurement operators (O').

As shown in the architecture, the model uses cross-attention layers to link measured frequencies with their corresponding physical operators ($O'$). This effectively allows the model to learn the "grammar" of the quantum experiment. To ensure the resulting density matrix is always "physical" (positive semi-definite with a unit trace), the model outputs a vector transformed via Cholesky decomposition.

Furthermore, instead of standard Mean Squared Error (MSE), the authors integrated an approximation of the Bures distance into the loss function. In quantum physics, Bures distance is a measure of "closeness" between states that directly relates to fidelity. By using a geometric approximation based on the angle between vectors, the model prioritizes getting the "quantum geometry" right.

Experimental Results and Hardware Validation

The researchers evaluated the QAT using both simulated data (100,000 states for 2, 3, and 4-qubit systems) and real-world hardware from IBM quantum computers (ibmq_manila and ibmq_belem).

  • Superior Fidelity: In 2-qubit simulations, QAT achieved a significantly lower log-infidelity compared to Fully Connected Networks (FCN), Convolutional Neural Networks (CNN), and traditional Linear Regression Estimation (LRE).
  • Robustness to Noise: One of the most impressive results was QAT's performance with limited measurement copies ("shots"). Even when only a few shots were available (high noise), QAT maintained high fidelity while traditional methods' performance plummeted.
  • Hardware Success: On the IBM ibmq_manila processor (1000 shots), QAT reached a mean fidelity of 0.9948, significantly outperforming both the standard LRE method (0.9179) and IBM’s built-in tomography tools (0.9173).

Conclusion and Future Outlook

The QAT demonstrates that the hierarchical structure of quantum measurements maps perfectly onto the Transformer architecture, suggesting that Transformers are naturally suited for physics problems with nested symmetries. While full QST still faces scaling challenges for very large qubit counts, this "language model" approach opens new doors for Shadow Tomography and Quantum Process Tomography. Future work will focus on extending this model to incomplete measurement sets where data may be missing or restricted.

Summary updated

BibTeX
@article{ma2025tomography,
  author = {Hailan Ma and Zhenhong Sun and Daoyi Dong and Chunlin Chen and Herschel Rabitz},
  title = {{Tomography of Quantum States From Structured Measurements via Quantum-Aware Transformer}},
  journal = {IEEE Trans. Cybernetics},
  year = {2025},
  doi = {10.1109/tcyb.2025.3556466},
}
Figure