A quantum compiler design method by using linear combinations of permutations
Ammar Daskin
TL;DR
The paper addresses how to translate a general $A$ into a quantum circuit by first embedding $A$ into a block-encoded unitary and then transforming it into a doubly stochastic matrix $S$, which can be written as a linear combination of permutation matrices via the Birkhoff–von Neumann theorem. It then details how to map permutation matrices to quantum circuits, decompose permutations into transpositions, and construct a circuit for $S$ using an ancilla and controlled permutation blocks. The authors discuss practical compiler-oriented optimizations, including simplifications, term truncation, and integration into quantum compiler design, as well as extensions to Hamiltonian simulation. This framework provides a generic route to exact or approximate circuit synthesis for arbitrary matrices and lays groundwork for permutation-based abstractions in future quantum programming languages and compilers.
Abstract
A matrix can be converted into a doubly stochastic matrix by using two diagonal matrices. And a doubly stochastic matrix can be written as a sum of permutation matrices. In this paper, we describe a method to write a given generic matrix in terms of quantum gates based on the block encoding. In particular, we first show how to convert a matrix into doubly stochastic matrices and by using Birkhoff's algorithm, we express that matrix in terms of a linear combination of permutations which can be mapped to quantum circuits. We then discuss a few optimization techniques that can be applied in a possibly future quantum compiler software based on the method described here.
