中国物理B ›› 2026, Vol. 35 ›› Issue (1): 10202-010202.doi: 10.1088/1674-1056/ade3ad

• • 上一篇    下一篇

Preparation of digital-encoded and analog-encoded quantum states corresponding to matrix operations

Kaitian Gao(高凯天), Youlong Yang(杨有龙)†, and Zhenye Du(杜振叶)   

  1. School of Mathematics and Statistics, Xidian University, Xi'an 710126, China
  • 收稿日期:2025-04-21 修回日期:2025-06-10 接受日期:2025-06-12 发布日期:2026-01-14
  • 通讯作者: Youlong Yang E-mail:ylyang@mail.xidian.edu.cn
  • 基金资助:
    Authors are grateful to Professor You-Long Yang for the encouragement to study quantum algorithms. Project supported by the National Natural Science Foundation of China (Grant No. 61573266), the Natural Science Basic Research Program of Shaanxi (Grant No. 2021JM-133), and the Fundamental Research Funds for the Central Universities and the Innovation Fund of Xidian University (Grant No. YJSJ25009).

Preparation of digital-encoded and analog-encoded quantum states corresponding to matrix operations

Kaitian Gao(高凯天), Youlong Yang(杨有龙)†, and Zhenye Du(杜振叶)   

  1. School of Mathematics and Statistics, Xidian University, Xi'an 710126, China
  • Received:2025-04-21 Revised:2025-06-10 Accepted:2025-06-12 Published:2026-01-14
  • Contact: Youlong Yang E-mail:ylyang@mail.xidian.edu.cn
  • Supported by:
    Authors are grateful to Professor You-Long Yang for the encouragement to study quantum algorithms. Project supported by the National Natural Science Foundation of China (Grant No. 61573266), the Natural Science Basic Research Program of Shaanxi (Grant No. 2021JM-133), and the Fundamental Research Funds for the Central Universities and the Innovation Fund of Xidian University (Grant No. YJSJ25009).

摘要: Efficient implementation of fundamental matrix operations on quantum computers, such as matrix products and Hadamard operations, holds significant potential for accelerating machine learning algorithms. A critical prerequisite for quantum implementations is the effective encoding of classical data into quantum states. We propose two quantum computing frameworks for preparing the distinct encoded states corresponding to matrix operations, including the matrix product, matrix sum, matrix Hadamard product and division. Quantum algorithms based on the digital encoding computing framework are capable of implementing the matrix Hadamard operation with a time complexity of $O({\rm poly} \log(mn/\epsilon))$ and the matrix product with a time complexity of $O({\rm poly} \log (mnl/ \epsilon))$, achieving an exponential speedup in contrast to the classical methods of $O(mn)$ and $O(mnl)$. Quantum algorithms based on the analog-encoding framework are capable of implementing the matrix Hadamard operation with a time complexity of $O(k_{1} \sqrt{mn} \cdot {\rm poly} \log(mn/\epsilon))$ and the matrix product with a time complexity of $O(k_{2} \sqrt{l} \cdot {\rm poly} \log (mnl/ \epsilon))$, where $k_{1}$ and $k_{2}$ are coefficients correlated with the elements of the matrix, achieving a square speedup in contrast to the classical counterparts. As applications, we construct an oracle that can access the trace of a matrix within logarithmic time, and propose several algorithms to respectively estimate the trace of a matrix, the trace of the product of two matrices, and the trace inner product of two matrices within logarithmic time.

关键词: quantum algorithm, matrix operation, digital and analog-encoded states, quantum computing

Abstract: Efficient implementation of fundamental matrix operations on quantum computers, such as matrix products and Hadamard operations, holds significant potential for accelerating machine learning algorithms. A critical prerequisite for quantum implementations is the effective encoding of classical data into quantum states. We propose two quantum computing frameworks for preparing the distinct encoded states corresponding to matrix operations, including the matrix product, matrix sum, matrix Hadamard product and division. Quantum algorithms based on the digital encoding computing framework are capable of implementing the matrix Hadamard operation with a time complexity of $O({\rm poly} \log(mn/\epsilon))$ and the matrix product with a time complexity of $O({\rm poly} \log (mnl/ \epsilon))$, achieving an exponential speedup in contrast to the classical methods of $O(mn)$ and $O(mnl)$. Quantum algorithms based on the analog-encoding framework are capable of implementing the matrix Hadamard operation with a time complexity of $O(k_{1} \sqrt{mn} \cdot {\rm poly} \log(mn/\epsilon))$ and the matrix product with a time complexity of $O(k_{2} \sqrt{l} \cdot {\rm poly} \log (mnl/ \epsilon))$, where $k_{1}$ and $k_{2}$ are coefficients correlated with the elements of the matrix, achieving a square speedup in contrast to the classical counterparts. As applications, we construct an oracle that can access the trace of a matrix within logarithmic time, and propose several algorithms to respectively estimate the trace of a matrix, the trace of the product of two matrices, and the trace inner product of two matrices within logarithmic time.

Key words: quantum algorithm, matrix operation, digital and analog-encoded states, quantum computing

中图分类号:  (Computational techniques; simulations)

  • 02.70.-c
03.67.-a (Quantum information) 03.67.Ac (Quantum algorithms, protocols, and simulations)