Decomposing dense matrices into dense Pauli tensors (2401.16378v2)
Abstract: Decomposing a matrix into a weighted sum of Pauli strings is a common chore of the quantum computer scientist, whom is not easily discouraged by exponential scaling. But beware, a naive decomposition can be cubically more expensive than necessary! In this manuscript, we derive a fixed-memory, branchless algorithm to compute the inner product between a 2N-by-2N complex matrix and an N-term Pauli tensor in O(2N) time, by leveraging the Gray code. Our scheme permits the embarrassingly parallel decomposition of a matrix into a weighted sum of Pauli strings in O(8N) time. We implement our algorithm in Python, hosted open-source on Github, and benchmark against a recent state-of-the-art method called the "PauliComposer" which has an exponentially growing memory overhead, achieving speedups in the range of 1.5x to 5x for N < 8. Note that our scheme does not leverage sparsity, diagonality, Hermitivity or other properties of the input matrix which might otherwise enable optimised treatment in other methods. As such, our algorithm is well-suited to decomposition of dense, arbitrary, complex matrices which are expected dense in the Pauli basis, or for which the decomposed Pauli tensors are a priori unknown.
- Tyson Jones. DensePauliComposer. https://github.com/TysonRayJones/DensePauliDecomposer, 2024.
- PauliComposer: compute tensor products of pauli matrices efficiently. Quantum Information Processing, 22(12):449, December 2023.
- Sebastián V. Romero. PauliComposer. https://github.com/sebastianvromero/PauliComposer, 2023.
- Efficient estimation of pauli observables by derandomization. Physical review letters, 127(3):030503, 2021.
- Finding exponential product formulas of higher orders. In Quantum annealing and other optimization methods, pages 37–68. Springer, 2005.
- Theory of variational quantum simulation. Quantum, 3:191, 2019.
- Distributed simulation of statevectors and density matrices. arXiv preprint arXiv:2311.01512, 2023.
- Robert W Doran. The gray code. Journal of Universal Computer Science, 13(11):4, 2007.
- E Knuth Donald et al. The art of computer programming. Sorting and searching, 3(426-458):4, 1999.
- MC Er. On generating the n-ary reflected gray codes. IEEE transactions on computers, 100(8):739–741, 1984.
- Sean Eron Anderson. Bit twiddling hacks. URL: http://graphics. stanford. edu/~ seander/bithacks. html, 2005.
- The world’s technological capacity to store, communicate, and compute information. science, 332(6025):60–65, 2011.
- Multithreading architecture. Synthesis Lectures on Computer Architecture, 8(1):1–109, 2013.
- False sharing and its effect on shared memory performance. In 4th symposium on experimental distributed and multiprocessor systems, pages 57–71. Citeseer, 1993.
- On the topological design of distributed computer networks. IEEE Transactions on communications, 25(1):48–60, 1977.
- Reducing branch divergence in gpu programs. In Proceedings of the fourth workshop on general purpose processing on graphics processing units, pages 1–8, 2011.
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Collections
Sign up for free to add this paper to one or more collections.