Random sampling of permutations through quantum circuits
Bibhas Adhikari
TL;DR
The paper tackles efficient random sampling of permutations and permutation-based hypothesis testing in a quantum setting. It builds a classical SSJTT-inspired framework that expresses permutations as products of adjacent transpositions and then develops a quantum circuit model that realizes these transpositions on $n$-qubit registers using generalized Toffoli, $X$, and CNOT gates, enabling both random sampling of permutations and exact permutation implementation on a compact primary register. Key contributions include an $O(N^2)$ classical sampling method, a quantum circuit architecture with $O(N\log_2 N)$ qubits and $O(N^3\log_2 N)$ gates for general sampling, and a concrete quantum algorithm for the two-sample randomization test with potential $O(\sqrt{N})$ speedup over the classical approach. The work also introduces a nested corona product graph representation of the symmetric group to enable sampling from restricted permutation sets, broadening the applicability to structured permutation tests and post-quantum cryptographic tasks. Overall, the framework links combinatorial permutation generation with quantum circuit synthesis to enable scalable, permutation-based quantum data processing and hypothesis testing.
Abstract
In this paper, we introduce a classical algorithm for random sampling of permutations, drawing inspiration from the Steinhaus-Johnson-Trotter algorithm. Our approach takes a comprehensive view of permutation sampling by expressing them as products of adjacent transpositions. Building on this, we develop a quantum analogue of the classical algorithm using a quantum circuit model for random sampling of permutations. As an application, we present a quantum algorithm for the two-sample randomization test to assess the difference of means in classical data. Finally, we propose a nested corona product graph generative model for symmetric groups, which facilitates random sampling of permutations from specific sets of permutations through a quantum circuit model.
