Skip to main content
QUICK REVIEW

[Paper Review] Compiling basic linear algebra subroutines for quantum computers

Liming Zhao, Zhikuan Zhao|arXiv (Cornell University)|Feb 27, 2019
Quantum Computing Algorithms and ArchitectureComputer Science2 references6 citations
TL;DR

This paper introduces the Quantum Matrix Algebra Toolbox (QMAT), a framework for compiling basic linear algebra subroutines—such as matrix addition, multiplication, tensor products, and functions of matrices—into quantum gate sequences. It enables efficient estimation of scalar outputs like trace, determinant, and Schatten p-norms via phase estimation and sampling, achieving error bounds independent of matrix size under bounded singular values.

ABSTRACT

Efficiently processing basic linear algebra subroutines is of great importance for a wide range of computational problems. In this paper, we consider techniques to implement matrix functions on a quantum computer, which are composed of basic matrix operations on a set of matrices. These matrix operations include addition, multiplication, Kronecker sum, tensor product, Hadamard product, and single-matrix functions. We discuss the composed matrix functions in terms of the estimation of scalar quantities such as inner products, trace, determinant and Schatten p-norms. We thus provide a framework for compiling instructions for linear algebraic computations into gate sequences on actual quantum computers.

Motivation & Objective

  • To develop a composable, quantum-compiled framework for basic matrix operations on quantum computers.
  • To enable efficient estimation of scalar matrix functions—such as trace, determinant, and Schatten p-norms—without full state reconstruction.
  • To provide a compilation pipeline from high-level matrix function specifications to executable quantum gate sequences using embedded Hermitian matrices.
  • To ensure error bounds on scalar estimations remain independent of matrix dimension under bounded singular values.
  • To support BQP-complete computation by leveraging unitary access to matrix embeddings.

Proposed method

  • Embed non-Hermitian matrices into Hermitian forms using three distinct embedding operators X₁(A), X₂(A), and X₃(A) based on 3×3 nilpotent matrices R₁, R₂, R₃.
  • Use Hamiltonian simulation techniques on the embedded Hermitian matrices to implement elementary matrix operations such as addition, multiplication, Kronecker sum, tensor product, and Hadamard product.
  • Apply phase estimation to the eigenvalues of the embedded matrices to estimate scalar quantities like trace, determinant, and Schatten p-norms.
  • Use Monte Carlo sampling with T repetitions to estimate the p-th power of the Schatten norm, bounding the error via Chebyshev’s inequality.
  • Establish error bounds using Lipschitz continuity and Jensen’s inequality, showing that relative error depends only on ε and σ-estimation error εσ, not on matrix dimension N.
  • Derive sample complexity T ≈ C(1 + εσ²)/(ε²a) for a given confidence level a, with a = 0.01 yielding 99% confidence.

Experimental results

Research questions

  • RQ1How can basic linear algebra operations on complex matrices be compiled into quantum gate sequences for actual quantum hardware?
  • RQ2What is the achievable error bound for estimating scalar matrix functions like trace, determinant, and Schatten p-norms using quantum phase estimation and sampling?
  • RQ3Can the error in estimating these scalar quantities be made independent of matrix dimension N under reasonable assumptions on singular values?
  • RQ4How does the sample complexity scale with desired precision and error tolerance in the phase estimation step?
  • RQ5What is the role of matrix embedding in enabling universal quantum computation for linear algebra tasks?

Key findings

  • The framework achieves estimation of Schatten p-norms with relative error bounded by |ε|^(1/p) + κ_p |εσ|^(1/p), independent of matrix dimension N when singular values are Θ(1).
  • The number of required samples T scales as O((1 + εσ²)/(ε²a)) for a given confidence level a, with a = 0.01 ensuring 99% confidence.
  • Trace estimation error is bounded by |Tr(A)|(1 ± ε ± ελ), with sample complexity T ≈ C(1 + ελ²)/(ε²a), derived from the p=1 case of Schatten norm estimation.
  • Determinant estimation error is bounded by Ke |Tr(log(A))| (ε_log(λ) + ε), where Ke is the Lipschitz constant of the exponential function, and is 1 when ||A|| ≤ 1.
  • The relative error in Schatten norm estimation does not grow with matrix size N, provided singular values are bounded away from zero and infinity.
  • The method supports BQP-complete computation, as it can encode arbitrary quantum circuits through the unitary access to embedded matrices.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.