English

Quantum circuits for permutation matrices

Quantum Physics 2025-12-16 v1 Computational Complexity

Abstract

Two different algorithms are presented for generating a quantum circuit realization of a matrix representing a permutation on 2n2^n letters. All circuits involve nn qubits and only use multi--controlled Toffoli gates. The first algorithm constructs a circuit from any decomposition of the permutation into a product of transpositions, but uses one ancilla line. The second, which uses no ancillae, constructs a circuit from a decomposition into a product of transpositions that have a Hamming distance of one. We show that any permutation admits such a decomposition, and we give a strategy for reducing the number of transpositions involved.

Keywords

Cite

@article{arxiv.2512.11938,
  title  = {Quantum circuits for permutation matrices},
  author = {Jason Hanson},
  journal= {arXiv preprint arXiv:2512.11938},
  year   = {2025}
}