[Paper Review] Quantum Algorithms to Matrix Multiplication
This paper proposes three quantum algorithms for matrix multiplication using swap test, SVE, and HHL, focusing on efficient quantum input and output processing. The swap test-based method achieves $Õ(n^2/ε)$ complexity with no assumptions, outperforming others by efficiently preparing quantum states from classical data, solving the input problem for matrix multiplication in polynomial time.
In this paper, we study quantum algorithms of matrix multiplication from the viewpoint of inputting quantum/classical data to outputting quantum/classical data. The main target is trying to overcome the input and output problem, which are not easy to solve and many quantum algorithms will encounter, to study matrix operations in quantum computer with high efficiency. And solving matrix multiplication will be the first step. We propose three quantum algorithms to matrix multiplication based on swap test, SVE and HHL. From the point of making fewer assumptions, swap test method works the best than the other two. We also show that the quantum algorithm of matrix multiplication with classical input and output data by swap test achieves the best complexity $\widetilde{O}(n^2/ε)$ with no assumptions. This is proved by giving an efficient quantum algorithm in polynomial time to solve the input problem, that is to prepare the quantum states of the classical data efficiently. Other contributions of this paper include: (1). Extending swap test to a more general form that is suitable to deal with quantum data in parallel, which will have further applications in other matrix operations. (2). Generalizing SVE technique such that it applies to any matrix (not just Hermitian) directly only with quantum data. (3). Proposing two new efficient quantum algorithms to prepare quantum states of classical data, which solves the input problem efficiently than other quantum algorithms.
Motivation & Objective
- To address the input and output problem in quantum matrix multiplication, where transforming classical data to quantum states and back is a major bottleneck.
- To develop quantum algorithms that operate efficiently on both quantum and classical data inputs and outputs.
- To eliminate reliance on unproven assumptions like QRAM by providing efficient quantum state preparation for classical data.
- To establish a foundation for extending classical matrix operations (e.g., QR, LU) to the quantum domain with full quantum input and output.
Proposed method
- Proposes a generalized swap test to enable quantum-to-quantum matrix multiplication, extending the original swap test from classical to quantum output.
- Introduces two new quantum algorithms to prepare quantum states from classical data, achieving better complexity than prior methods.
- Applies the swap test to matrix multiplication with classical input and quantum output, achieving $Õ(n^2/ε)$ complexity.
- Generalizes SVE (Singular Value Estimation) to work with non-Hermitian matrices using only quantum input data.
- Uses HHL algorithm for matrix multiplication with quantum input and output, but depends on the condition number of the matrices.
- Analyzes complexity under precision $ε$ and condition number assumptions, showing polynomial-time solvability when these are bounded by polylog(n).
Experimental results
Research questions
- RQ1Can matrix multiplication be performed efficiently in a quantum computer when input and output are both quantum, without relying on QRAM assumptions?
- RQ2What is the optimal quantum algorithm for matrix multiplication when classical data is input and quantum data is output, and what is its complexity?
- RQ3How can quantum state preparation from classical data be made efficient enough to not dominate the overall complexity of matrix multiplication?
- RQ4Can the swap test be generalized to support quantum-to-quantum operations, and what are its applications beyond matrix multiplication?
- RQ5How do the complexities of SVE and HHL-based approaches compare to the swap test method under realistic assumptions about matrix structure and precision?
Key findings
- The swap test-based quantum algorithm for matrix multiplication with classical input and quantum output achieves $Õ(n^2/ε)$ complexity with no assumptions, making it the most efficient under general conditions.
- The proposed quantum state preparation algorithms (Theorem 4.1 and 4.2) achieve better complexity than existing methods, with Theorem 4.2 reaching $O(\log n / \epsilon^2)$ for general classical data.
- When the condition number of the matrices is bounded by $O(\text{poly} \log n)$, both SVE and HHL-based algorithms achieve efficient performance, though they require stronger assumptions than the swap test method.
- The input problem—preparing quantum states from classical data—can be solved efficiently in $O(n^2)$ time for $n \times n$ matrices, which is acceptable as it matches the lower bound of matrix multiplication.
- The generalized swap test enables quantum-to-quantum matrix multiplication, extending the original swap test’s scope and enabling broader applications in quantum matrix operations.
- Theoretical analysis confirms that the swap test method is optimal in terms of assumptions and complexity, outperforming SVE and HHL in the general case.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.