An Efficient Quantum Algorithm for Linear System Problem in Tensor Format

2403.19829

YC

0

Reddit

0

Published 4/1/2024 by Zeguan Wu, Sidhant Misra, Tam'as Terlaky, Xiu Yang, Marc Vuffray

🔍

Abstract

Solving linear systems is at the foundation of many algorithms. Recently, quantum linear system algorithms (QLSAs) have attracted great attention since they converge to a solution exponentially faster than classical algorithms in terms of the problem dimension. However, low-complexity circuit implementations of the oracles assumed in these QLSAs constitute the major bottleneck for practical quantum speed-up in solving linear systems. In this work, we focus on the application of QLSAs for linear systems that are expressed as a low rank tensor sums, which arise in solving discretized PDEs. Previous works uses modified Krylov subspace methods to solve such linear systems with a per-iteration complexity being polylogarithmic of the dimension but with no guarantees on the total convergence cost. We propose a quantum algorithm based on the recent advances on adiabatic-inspired QLSA and perform a detailed analysis of the circuit depth of its implementation. We rigorously show that the total complexity of our implementation is polylogarithmic in the dimension, which is comparable to the per-iteration complexity of the classical heuristic methods.

Create account to get full access

or

If you already have an account, we'll log you in

Introduction

The paper discusses the potential of quantum algorithms to solve certain problems faster than classical algorithms. It mentions various quantum algorithms, including Shor's algorithm for integer factorization, Grover's algorithm for database search, the Quantum Approximate Optimization Algorithm (QAOA) for combinatorial optimization problems, and Quantum Linear System Algorithms (QLSAs) for solving quantum linear system problems. QLSAs, in particular, demonstrate exponential convergence speed-up compared to classical methods like Cholesky factorization.

Due to the significance of solving linear systems in numerical computation, researchers have focused on using QLSAs to speed up classical algorithms, such as classical PDE algorithms and classical optimization algorithms. However, a crucial challenge is the efficient quantum circuit implementation of the oracles required for preprocessing the input data and building quantum circuits from classical system descriptions.

The paper studies the use of QLSAs for solving a class of linear systems whose coefficient matrix and right-hand-side vector can be represented as a linear combination of a few tensor products of 2-by-2 matrices and 2-dimensional vectors, respectively. This problem is a special case of the linear system problem in tensor format (LSP-TF), which is frequently encountered in discretized PDE problems.

While some classical algorithms have been proposed to solve LSP-TF, they modify Krylov subspace methods by approximating the tensor format, sacrificing accuracy while keeping the complexity polylogarithmic in the problem size. However, their total complexity is unknown and unlikely to be better than the original Krylov subspace methods.

The paper's main contribution is to show that such linear systems can be efficiently solved using a quantum computer, and it provides a full and explicit circuit implementation of the algorithm.

Problem Definition

The provided text introduces notations used in the paper, including vectors, matrices, Pauli matrices, norms, and quantum state representations. It then defines the linear system problem (LSP) and the tensor-factored linear system problem (LSP-TF), which arises frequently in high-dimensional discretized PDEs.

The paper proposes applying Algorithm 1 to solve LSP-TF for a special case where the matrix A and vector b have tensor product structures. The authors assume the matrices and vectors satisfy certain norm bounds (Assumption 2.1) and the tensor ranks of A and b are constant (Assumption 2.2). The main contribution is a Hamiltonian decomposition for Algorithm 1 and a detailed circuit implementation with polylogarithmic depth in the problem dimension (Theorem 2.1).

The text then briefly introduces the quantum linear system algorithm (QLSA) proposed in previous work, which Algorithm 1 is based on. It explains how Algorithm 1 turns the continuous adiabatic evolution into a discretized piece-wise evolution using phase randomization.

Finally, the Trotterization method is introduced as a way to approximate the Hamiltonian evolution by decomposing the Hamiltonian into a sum of easily implementable terms. Lemmas on the error bounds of Trotterization and guidance on choosing the Trotter number are provided.

QLSA Circuit Design for LSP-TF

The provided section describes how to implement quantum circuits for simulating the time evolution of two types of Hamiltonians that arise when applying a specific algorithm (Algorithm 1) to the linear swap preserving tensor format (LSP-TF) problem.

The first type, called Type-1 Hamiltonians, are tensor products of Pauli and Hermitian matrices. The authors give a detailed algorithm (Algorithm 2) to implement the time evolution operator for these Hamiltonians using quantum multipliers and phase gates controlled by the binary representation of certain parameters.

The second type, called Type-2 Hamiltonians, are more complicated as they are not in tensor product form initially. The authors show how to decompose these Hamiltonians into a product of three matrices, where the outer two are unitaries that can be implemented efficiently, and the inner matrix is a tensor product that can be handled similarly to the Type-1 case using Algorithm 2.

Cost estimates in terms of number of operations and circuit depths are provided for implementing both types of Hamiltonians. A key assumption made is that certain parameters can be represented exactly using a fixed number of qubits, which is discussed further in Section 4.1 of the paper.

Circuit Cost Analysis

The section analyzes the total cost required to implement Algorithm 1 using the proposed quantum circuits. It is divided into three parts:

The first part estimates the cost when the data (σH1,i and σH2,j) cannot be represented exactly using p qubits. It introduces the concept of ϵ-approximate binary representation and shows that p = ⌈1−log2(ϵ)⌉ qubits suffice to obtain an ϵ-approximation. It then bounds the error introduced in the quantum circuit due to this approximation.

The second part analyzes the error from the Trotterization method used to implement the time evolution operator e^(-itH). It bounds this error in terms of the commutative factor α and shows that choosing the Trotter number r = O(m^2d^4κ^2/ϵ) ensures the error is O(ϵ^2/log^2κ).

The third part combines the errors from data approximation and Trotterization to bound the total error. It shows that the proposed implementation of Algorithm 1 produces an O(ϵ)-approximate solution using O(κ^2 log(N) log^2(κ)/ϵ^2) arithmetic operations, single qubit gates, and calls to a p-qubit multiplier with depth O(p^3). The cost of preparing the initial state is shown to be negligible.

Overall, the analysis provides bounds on the resources (number of operations, gates, gate depth) required to implement Algorithm 1 up to a given precision ϵ, taking into account errors from data approximation and Trotterization.

Conclusion

This paper explores using an adiabatic inspired quantum linear system algorithm (QLSA) to solve linear systems in tensor format. The focus is on linear systems where the matrices are linear combinations of tensor products of 2x2 Hermitian matrices, and the vectors are linear combinations of tensor products of 2-dimensional vectors.

The paper explicitly describes the quantum circuit components used in implementing the QLSA, which only requires single-qubit unitary circuits, p-qubit quantum multipliers, and their controlled versions. The number of classical arithmetic operations and these gates is polynomial in n, m, and d, making the time complexity polylogarithmic in the system's dimension – better than classical algorithms for general linear systems.

Compared to a classical algorithm for tensor-formatted linear systems, the total complexity of this quantum approach is comparable to that algorithm's single-step complexity in terms of problem dimension. Potential future work could extend these results to higher dimensional components and cases where components are in different subspaces. Further investigation into improving the dependence on condition number and accuracy for structured problems is also suggested.

Acknowledgement

The authors express gratitude to Faisal Alam and Muqing Zheng for their insightful discussions. This research was financially supported by the Defense Advanced Research Projects Agency through the project "The Quantum Computing Revolution and Optimization: Challenges and Opportunities." Additional funding came from the National Science Foundation's CAREER program and the U.S. Department of Energy's Office of Electricity Advanced Grid Modeling program. The computational resources utilized were provided by the Oak Ridge Leadership Computing Facility, a user facility operated by the Department of Energy's Office of Science.



This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

Related Papers

A Catalyst Framework for the Quantum Linear System Problem via the Proximal Point Algorithm

A Catalyst Framework for the Quantum Linear System Problem via the Proximal Point Algorithm

Junhyung Lyle Kim, Nai-Hui Chia, Anastasios Kyrillidis

YC

0

Reddit

0

Solving systems of linear equations is a fundamental problem, but it can be computationally intensive for classical algorithms in high dimensions. Existing quantum algorithms can achieve exponential speedups for the quantum linear system problem (QLSP) in terms of the problem dimension, but even such a theoretical advantage is bottlenecked by the condition number of the coefficient matrix. In this work, we propose a new quantum algorithm for QLSP inspired by the classical proximal point algorithm (PPA). Our proposed method can be viewed as a meta-algorithm that allows inverting a modified matrix via an existing texttt{QLSP_solver}, thereby directly approximating the solution vector instead of approximating the inverse of the coefficient matrix. By carefully choosing the step size $eta$, the proposed algorithm can effectively precondition the linear system to mitigate the dependence on condition numbers that hindered the applicability of previous approaches.

Read more

6/21/2024

📊

Multivariate trace estimation using quantum state space linear algebra

Liron Mor Yosef, Shashanka Ubaru, Lior Horesh, Haim Avron

YC

0

Reddit

0

In this paper, we present a quantum algorithm for approximating multivariate traces, i.e. the traces of matrix products. Our research is motivated by the extensive utility of multivariate traces in elucidating spectral characteristics of matrices, as well as by recent advancements in leveraging quantum computing for faster numerical linear algebra. Central to our approach is a direct translation of a multivariate trace formula into a quantum circuit, achieved through a sequence of low-level circuit construction operations. To facilitate this translation, we introduce emph{quantum Matrix States Linear Algebra} (qMSLA), a framework tailored for the efficient generation of state preparation circuits via primitive matrix algebra operations. Our algorithm relies on sets of state preparation circuits for input matrices as its primary inputs and yields two state preparation circuits encoding the multivariate trace as output. These circuits are constructed utilizing qMSLA operations, which enact the aforementioned multivariate trace formula. We emphasize that our algorithm's inputs consist solely of state preparation circuits, eschewing harder to synthesize constructs such as Block Encodings. Furthermore, our approach operates independently of the availability of specialized hardware like QRAM, underscoring its versatility and practicality.

Read more

5/3/2024

👀

Quantum Algorithms for the Pathwise Lasso

Joao F. Doriguello, Debbie Lim, Chi Seng Pun, Patrick Rebentrost, Tushar Vaidya

YC

0

Reddit

0

We present a novel quantum high-dimensional linear regression algorithm with an $ell_1$-penalty based on the classical LARS (Least Angle Regression) pathwise algorithm. Similarly to available classical algorithms for Lasso, our quantum algorithm provides the full regularisation path as the penalty term varies, but quadratically faster per iteration under specific conditions. A quadratic speedup on the number of features $d$ is possible by using the quantum minimum-finding routine from Durr and Hoyer (arXiv'96) in order to obtain the joining time at each iteration. We then improve upon this simple quantum algorithm and obtain a quadratic speedup both in the number of features $d$ and the number of observations $n$ by using the approximate quantum minimum-finding routine from Chen and de Wolf (ICALP'23). As one of our main contributions, we construct a quantum unitary to approximately compute the joining times to be searched over by the approximate quantum minimum finding. Since the joining times are no longer exactly computed, it is no longer clear that the resulting approximate quantum algorithm obtains a good solution. As our second main contribution, we prove, via an approximate version of the KKT conditions and a duality gap, that the LARS algorithm (and thus our quantum algorithm) is robust to errors. This means that it still outputs a path that minimises the Lasso cost function up to a small error if the joining times are approximately computed. Moreover, we show that, when the observations are sampled from a Gaussian distribution, our quantum algorithm's complexity only depends polylogarithmically on $n$, exponentially better than the classical LARS algorithm, while keeping the quadratic improvement on $d$. Finally, we propose a dequantised algorithm that also retains the polylogarithmic dependence on $n$, albeit with the linear scaling on $d$ from the standard LARS algorithm.

Read more

6/18/2024

🛠️

Evidence of Scaling Advantage for the Quantum Approximate Optimization Algorithm on a Classically Intractable Problem

Ruslan Shaydulin, Changhao Li, Shouvanik Chakrabarti, Matthew DeCross, Dylan Herman, Niraj Kumar, Jeffrey Larson, Danylo Lykov, Pierre Minssen, Yue Sun, Yuri Alexeev, Joan M. Dreiling, John P. Gaebler, Thomas M. Gatterman, Justin A. Gerber, Kevin Gilmore, Dan Gresh, Nathan Hewitt, Chandler V. Horst, Shaohan Hu, Jacob Johansen, Mitchell Matheny, Tanner Mengle, Michael Mills, Steven A. Moses, Brian Neyenhuis, Peter Siegfried, Romina Yalovetzky, Marco Pistoia

YC

0

Reddit

0

The quantum approximate optimization algorithm (QAOA) is a leading candidate algorithm for solving optimization problems on quantum computers. However, the potential of QAOA to tackle classically intractable problems remains unclear. Here, we perform an extensive numerical investigation of QAOA on the low autocorrelation binary sequences (LABS) problem, which is classically intractable even for moderately sized instances. We perform noiseless simulations with up to 40 qubits and observe that the runtime of QAOA with fixed parameters scales better than branch-and-bound solvers, which are the state-of-the-art exact solvers for LABS. The combination of QAOA with quantum minimum finding gives the best empirical scaling of any algorithm for the LABS problem. We demonstrate experimental progress in executing QAOA for the LABS problem using an algorithm-specific error detection scheme on Quantinuum trapped-ion processors. Our results provide evidence for the utility of QAOA as an algorithmic component that enables quantum speedups.

Read more

6/4/2024