- Access by Xinjiang University
Quantum encoder for fixed-Hamming-weight subspaces
Phys. Rev. Applied 23, 044014 – Published 4 April, 2025
DOI: https://doi.org/10.1103/PhysRevApplied.23.044014
Abstract
We present an exact -qubit computational-basis amplitude encoder of real- or complex-valued data vectors of components into a subspace of fixed Hamming weight . This represents a polynomial space compression of degree . The circuit is optimal in that it expresses an arbitrary data vector using only (controlled) reconfigurable beam splitter (RBS) gates. It is constructed by an efficient classical algorithm that sequentially generates all bitstrings of weight and identifies the gates that superpose the corresponding states with the correct amplitudes. An explicit compilation into and single-qubit gates is presented, with the total -gate count of 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 gates. Moreover, using generalized RBS gates that mix states of different Hamming weights, we extend the construction to efficiently encode arbitrary sparse vectors. We perform a proof-of-principle demonstration of our scheme on a commercial trapped-ion quantum computer. We successfully upload a -Gaussian probability distribution in the non-log-concave regime with and . We also illustrate 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.
Physics Subject Headings (PhySH)
Article Text
References (63)
- G.-L. R. Anselmetti, D. Wierichs, C. Gogolin, and R. M. Parrish, Local, expressive, quantum-number-preserving VQE ansätze for fermionic systems, New J. Phys. 23, 113010 (2021).
- J. M. Arrazola, O. D. Matteo, N. Quesada, S. Jahangiri, A. Delgado, and N. Killoran, Universal quantum circuits for quantum chemistry, Quantum 6, 742 (2022).
- L. Monbroussou, E. Z. Mamon, J. Landman, A. B. Grilo, R. Kukla, and E. Kashefi, Trainability and expressivity of Hamming-weight preserving quantum circuits for machine learning, ArXiv:2309.15547.
- E. A. Cherrat, I. Kerenidis, N. Mathur, J. Landman, M. Strahm, and Y. Y. Li, Quantum vision transformers, Quantum 8, 1265 (2024).
- S. Ramos-Calderer, A. Pérez-Salinas, D. García-Martín, C. Bravo-Prieto, J. Cortada, J. Planagumà, and J. I. Latorre, Quantum unary approach to option pricing, Phys. Rev. A 103, 032414 (2021).
- S. Johri, S. Debnath, A. Mocherla, A. Singh, A. Prakash, J. Kim, and I. Kerenidis, Nearest centroid classification on a trapped ion quantum computer, npj Quantum Inf. 7, 122 (2021).
- I. Kerenidis, J. Landman, and N. Mathur, Classical and quantum algorithms for orthogonal neural networks, ArXiv:2106.07198.
- I. Kerenidis and A. Prakash, Quantum machine learning with subspace states, ArXiv:2202.00054.
- H. Zhang, S. Ramos-Calderer, Y. Zhan, W.-K. Mok, H. Cai, F. Gao, X. Luo, G.-Q. Lo, L. C. Kwek, J. I. Latorre, and A. Q. Liu, Efficient option pricing with a unary-based photonic computing chip and generative adversarial learning, Photon. Res. 11, 1703 (2023).
- D. Ventura and T. Martinez, Initializing the amplitude distribution of a quantum state, Found. Phys. Lett. 12, 547 (1999).
- G.-L. Long and Y. Sun, Efficient scheme for initializing a quantum register with an arbitrary superposed state, Phys. Rev. A 64, 014303 (2001).
- L. Grover and T. Rudolph, Creating superpositions that correspond to efficiently integrable probability distributions, ArXiv:quant-ph/0208112.
- S. Lloyd and C. Weedbrook, Quantum generative adversarial learning, Phys. Rev. Lett. 121, 040502 (2018).
- P.-L. Dallaire-Demers and N. Killoran, Quantum generative adversarial networks, Phys. Rev. A 98, 012324 (2018).
- K. Mitarai, M. Kitagawa, and K. Fujii, Quantum analog-digital conversion, Phys. Rev. A 99, 012301 (2019).
- A. Holmes and A. Y. Matsuura, in 2020 IEEE International Conference on Quantum Computing and Engineering (QCE) (IEEE, 2020), p. 169.
- I. F. Araujo, D. K. Park, F. Petruccione, and A. J. da Silva, A divide-and-conquer algorithm for quantum state preparation, Sci. Rep. 11, 6329 (2021).
- S. Jaques and A. G. Rattew, QRAM: A survey and critique, ArXiv:2305.10310.
- A. Barenco, C. H. Bennett, R. Cleve, D. P. DiVincenzo, N. Margolus, P. Shor, T. Sleator, J. Smolin, and H. Weinfurter, Elementary gates for quantum computation, Phys. Rev. A 52, 3457 (1995).
- A. Y. Kitaev, Quantum computations: Algorithms and error correction, Russ. Math. Surv. 52, 1191 (1997).
- P. O. Boykin, T. Mor, M. Pulver, V. Roychowdhury, and F. Vatan, On universal and fault-tolerant quantum computing, ArXiv:quant-ph/9906054.
- M. Plesch and Č. Brukner, Quantum-state preparation with universal gate decompositions, Phys. Rev. A 83, 032302 (2011).
- W. J. Huggins, S. McArdle, T. E. O’Brien, J. Lee, N. C. Rubin, S. Boixo, K. B. Whaley, R. Babbush, and J. R. McClean, Virtual distillation for quantum error mitigation, Phys. Rev. X 11, 041036 (2021).
- J. Gibbs, K. Gili, Z. Holmes, B. Commeau, A. Arrasmith, L. Cincio, P. J. Coles, and A. Sornborger, Long-time simulations with high fidelity on quantum hardware, npj Quantum Inf. 8, 135 (2022).
- L. Zhao, J. Goings, K. Wright, J. Nguyen, J. Kim, S. Johri, K. Shin, W. Kyoung, J. I. Fuks, J.-K. K. Rhee, and Y. M. Rhee, Orbital-optimized pair-correlated electron simulations on trapped-ion quantum computers, npj Quantum Inf. 9, 60 (2023).
- N. Jain, J. Landman, N. Mathur, and I. Kerenidis, Quantum Fourier networks for solving parametric PDEs, Quantum Sci. Technol. 9, 035026 (2024).
- Z. He, R. Shaydulin, S. Chakrabarti, D. Herman, C. Li, Y. Sun, and M. Pistoia, Alignment between initial state and mixer improves QAOA performance for constrained optimization, npj Quantum Inf. 9, 121 (2023).
- E. A. Cherrat, S. Raj, I. Kerenidis, A. Shekhar, B. Wood, J. Dee, S. Chakrabarti, R. Chen, D. Herman, S. Hu, et al., Quantum deep hedging, Quantum 7, 1191 (2023).
- M. Ragone, B. N. Bakalov, F. Sauvage, A. F. Kemper, C. O. Marrero, M. Larocca, and M. Cerezo, A Lie algebraic theory of barren plateaus for deep parametrized quantum circuits, Nat. Commun. 15, 7172 (2024).
- IonQ Inc., IonQ Aria, https://ionq.com/quantum-systems/aria, 2024.
- P. Czarnik, A. Arrasmith, P. J. Coles, and L. Cincio, Error mitigation with Clifford quantum-circuit data, Quantum 5, 592 (2021).
- A. Lowe, M. H. Gordon, P. Czarnik, A. Arrasmith, P. J. Coles, and L. Cincio, Unified approach to data-driven quantum error mitigation, Phys. Rev. Res. 3, 033098 (2021).
- The gate is preferred by some authors and referred to as a Givens rotation.
- S. Even, Algorithmic Combinatorics (The Macmillan Company, 1973).
- J. Landman, N. Mathur, Y. Y. Li, M. Strahm, S. Kazdaghli, A. Prakash, and I. Kerenidis, Quantum methods for neural networks and application to medical image classification, Quantum 6, 881 (2022).
- T. M. L. de Veras, L. D. da Silva, and A. J. da Silva, Double sparse quantum state preparation, Quantum Inf. Process. 21, 204 (2022).
- I. F. Araujo, I. C. S. Araújo, L. D. da Silva, C. Blank, and A. J. da Silva, Quantum computing library, https://github.com/qclib/qclib, 2023.
- V. Shende, S. Bullock, and I. Markov, Synthesis of quantum-logic circuits, IEEE Trans. Computer-Aided Des. Integr. Circuits Syst. 25, 1000 (2006).
- A. Javadi-Abhari, M. Treinish, K. Krsulich, C. J. Wood, J. Lishman, J. Gacon, S. Martiel, P. D. Nation, L. S. Bishop, A. W. Cross, et al., Quantum computing with Qiskit, ArXiv:2405.08810.
- C. Tsallis, Possible generalization of Boltzmann-Gibbs statistics, J. Stat. Phys. 52, 479 (1988).
- C. Tsallis, S. V. F. Levy, A. M. C. Souza, and R. Maynard, Statistical-mechanical foundation of the ubiquity of Lévy distributions in nature, Phys. Rev. Lett. 75, 3589 (1995).
- D. Prato and C. Tsallis, Nonextensive foundation of Lévy distributions, Phys. Rev. E 60, 2398 (1999).
- C. Tsallis, Nonadditive entropy and nonextensive statistical mechanics—An overview after 20 years, Braz. J. Phys. 39, 337 (2009).
- L. Borland, Option pricing formulas based on a non-Gaussian stock price model, Phys. Rev. Lett. 89, 098701 (2002).
- M. Gell-Mann and C. Tsallis, in Nonextensive Entropy: Interdisciplinary Applications (Oxford University Press, 2004).
- V. Witkovský, Characteristic function of the Tsallis -Gaussian and its applications in measurement and metrology, Metrology 3, 222 (2023).
- F. Fernández-Navarro, C. Hervás-Martínez, M. Cruz-Ramírez, P. A. Gutiérrez, and A. Valero, Evolutionary -Gaussian Radial Basis Function Neural Network to determine the microbial growth/no growth interface of Staphylococcus aureus, Appl. Soft. Comput. 11, 3012 (2011).
- J. Helsen, I. Roth, E. Onorati, A. Werner, and J. Eisert, General framework for randomized benchmarking, PRX Quantum 3, 020357 (2022).
- S. Efthymiou, S. Ramos-Calderer, C. Bravo-Prieto, A. Pérez-Salinas, D. García-Martín, A. Garcia-Saez, J. I. Latorre, and S. Carrazza, Qibo: A framework for quantum simulation with hardware acceleration, Quantum Sci. Technol. 7, 015018 (2021).
- IonQ Inc., IonQ quantum cloud, https://ionq.com/quantum-cloud, 2024.
- IBM Inc., IBM Quantum, https://quantum-computing.ibm.com, 2025.
- Quantinuum, Quantinuum H series, https://docs.quantinuum.com/h-series/user_guide/emulator_user_guide/noise_model.html, 2025.
- G. Q. AI and Collaborators, Quantum error correction below the surface code threshold, Nature 638, 920 (2024).
- V. Bergholm, J. Izaac, M. Schuld, C. Gogolin, S. Ahmed, V. Ajith, M. S. Alam, G. Alonso-Linaje, B. AkashNarayanan, A. Asadi, et al., PennyLane: Automatic differentiation of hybrid quantum-classical computations, ArXiv:1811.04968.
- U. Azad and S. Fomichev, PennyLane quantum chemistry datasets, https://pennylane.ai/datasets/h4-molecule, 2023.
- A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, et al., PyTorch: An imperative style, high-performance deep learning library, ArXiv:1912.01703.
- D. P. Kingma and J. Ba, Adam: A method for stochastic optimization, ArXiv:1412.6980.
- S. Ramos-Calderer, Efficient quantum interpolation of natural data, Phys. Rev. A 106, 062427 (2022).
- M. Sciorilli, L. Borges, T. L. Patti, D. García-Martín, G. Camilo, A. Anandkumar, and L. Aolita, Towards large-scale quantum optimization solvers with few qubits, Nat. Commun. 16, 476 (2025).
- D. Raveh and R. I. Nepomechie, Deterministic Bethe state preparation, Quantum 8, 1510 (2024).
- J. Wilkens, Quantum Circuit Library, https://github.com/wilkensJ/drawio-library, 2023.
- R. Vale, T. M. D. Azevedo, I. C. S. Araújo, I. F. Araujo, and A. J. da Silva, Decomposition of multi-controlled special unitary single-qubit gates, ArXiv:2302.06377.
- R. Iten, R. Colbeck, I. Kukuljan, J. Home, and M. Christandl, Quantum circuits for isometries, Phys. Rev. A 93, 032318 (2016).