English

Quantum encoder for fixed Hamming-weight subspaces

Quantum Physics 2025-04-08 v3

Abstract

We present an exact nn-qubit computational-basis amplitude encoder of real- or complex-valued data vectors of d=(nk)d=\binom{n}{k} components into a subspace of fixed Hamming weight kk. This represents a polynomial space compression of degree kk. The circuit is optimal in that it expresses an arbitrary data vector using only d1d-1 (controlled) Reconfigurable Beam Splitter (RBS) gates and is constructed by an efficient classical algorithm that sequentially generates all bitstrings of weight kk and identifies the gates that superpose the corresponding states with the correct amplitudes. An explicit compilation into CNOTs and single-qubit gates is presented, with the total CNOT-gate count of O(kd)\mathcal{O}(k\, d) provided in analytical form. In addition, we show how to load data in the binary basis by sequentially stacking encoders of different Hamming weights using O(dlog(d))\mathcal{O}(d\,\log(d)) CNOT gates. Moreover, using generalized RBS gates that mix states of different Hamming weights, we extend the construction to efficiently encode arbitrary sparse vectors. Experimentally, we perform a proof-of-principle demonstration of our scheme on a commercial trapped-ion quantum computer. We successfully upload a qq-Gaussian probability distribution in the non-log-concave regime with n=6n = 6 and k=2k = 2. We also showcase how the effect of hardware noise can be alleviated by quantum error mitigation. Numerically, we show how our encoder can improve the performance of variational quantum algorithms for problems that include particle-preserving symmetries. Our results constitute a versatile framework for quantum data compression with various potential applications in fields such as quantum chemistry, quantum machine learning, and constrained combinatorial optimizations.

Keywords

Cite

@article{arxiv.2405.20408,
  title  = {Quantum encoder for fixed Hamming-weight subspaces},
  author = {Renato M. S. Farias and Thiago O. Maciel and Giancarlo Camilo and Ruge Lin and Sergi Ramos-Calderer and Leandro Aolita},
  journal= {arXiv preprint arXiv:2405.20408},
  year   = {2025}
}

Comments

13 pages, 7 figures, 4 tables; Revised text + new subsections + new numerical data