- Open Access
Nonstabilizerness of neural quantum states
Phys. Rev. Research 7, 043289 – Published 12 December, 2025
DOI: https://doi.org/10.1103/v5tw-yn1f
Abstract
We introduce a methodology to estimate nonstabilizerness or “magic,” a key resource for quantum complexity, with neural quantum states (NQS). Our framework relies on two schemes based on Monte Carlo sampling to quantify nonstabilizerness via stabilizer Rényi entropy (SRE) in arbitrary variational wave functions. When combined with NQS, this approach is effective for systems with strong correlations and in dimensions larger than one, unlike tensor network methods. First, we study the magic content in an ensemble of random NQS, demonstrating that neural network parametrizations of the wave function capture finite nonstabilizerness besides large entanglement. Second, we investigate the nonstabilizerness in the ground state of the Heisenberg model. In one dimension, we find that the SRE vanishes at the Majumdar-Ghosh point , consistent with a stabilizer ground state. In two dimensions, a dip in the SRE is observed near maximum frustration around , suggesting a valence bond solid between the two antiferromagnetic phases.
Physics Subject Headings (PhySH)
Article Text
Supplemental Material
References (107)
- J. Eisert, M. Cramer, and M. B. Plenio, Colloquium: Area laws for the entanglement entropy, Rev. Mod. Phys. 82, 277 (2010).
- J. I. Cirac and P. Zoller, Goals and opportunities in quantum simulation, Nat. Phys. 8, 264 (2012).
- A. A. Houck, H. E. Türeci, and J. Koch, On-chip quantum simulation with superconducting circuits, Nat. Phys. 8, 292 (2012).
- D. Gottesman, Stabilizer codes and quantum error correction, arXiv:quant-ph/9705052.
- D. Gottesman, The Heisenberg representation of quantum computers, arXiv:quant-ph/9807006.
- S. Aaronson and D. Gottesman, Improved simulation of stabilizer circuits, Phys. Rev. A 70, 052328 (2004).
- D. Gross, Non-negative Wigner functions in prime dimensions, Appl. Phys. B 86, 367 (2007).
- V. Veitch, C. Ferrie, D. Gross, and J. Emerson, Negative quasi-probability as a resource for quantum computation, New J. Phys. 14, 113011 (2012).
- D. Gross, S. Nezami, and M. Walter, Schur–Weyl duality for the Clifford group with applications: Property testing, a robust Hudson theorem, and de Finetti representations, Commun. Math. Phys. 385, 1325 (2021).
- M. Howard and E. Campbell, Application of a resource theory for magic states to fault-tolerant quantum computing, Phys. Rev. Lett. 118, 090501 (2017).
- S. Bravyi, D. Browne, P. Calpin, E. Campbell, D. Gosset, and M. Howard, Simulation of quantum circuits by low-rank stabilizer decompositions, Quantum 3, 181 (2019).
- M. Heinrich and D. Gross, Robustness of magic and symmetries of the stabiliser polytope, Quantum 3, 132 (2019).
- T. Haug and M. Kim, Scalable measures of magic resource for quantum computers, PRX Quantum 4, 010301 (2023).
- M. Beverland, E. Campbell, M. Howard, and V. Kliuchnikov, Lower bounds on the non-Clifford resources for quantum computations, Quantum Sci. Technol. 5, 035009 (2020).
- L. Leone, S. F. E. Oliviero, and A. Hamma, Stabilizer Rényi entropy, Phys. Rev. Lett. 128, 050402 (2022).
- S. F. E. Oliviero, L. Leone, A. Hamma, and S. Lloyd, Measuring magic on a quantum processor, npj Quantum Inf. 8, 148 (2022).
- P. Niroula, C. D. White, Q. Wang, S. Johri, D. Zhu, C. Monroe, C. Noel, and M. J. Gullans, Phase transition in magic with random quantum circuits, Nat. Phys. 20, 1786 (2024).
- D. Bluvstein, S. J. Evered, A. A. Geim, S. H. Li, H. Zhou, T. Manovitz, S. Ebadi, M. Cain, M. Kalinowski, D. Hangleiter et al., Logical quantum processor based on reconfigurable atom arrays, Nature (London) 626, 58 (2024).
- S. Bera and M. Schirò, Non-stabilizerness of Sachdev-Ye-Kitaev model, arXiv:2502.01582 [quant-ph].
- R. Smith, Z. Papić, and A. Hallam, Non-stabilizerness in kinetically-constrained Rydberg atom arrays, Phys. Rev. B 111, 245148 (2025).
- N. Dowling, K. Modi, and G. A. L. White, Bridging entanglement and magic resources within operator space, Phys. Rev. Lett. 135, 160201 (2025).
- T. Haug and L. Piroli, Stabilizer entropies and nonstabilizerness monotones, Quantum 7, 1092 (2023).
- L. Leone and L. Bittel, Stabilizer entropies are monotones for magic-state resource theory, Phys. Rev. A 110, L040403 (2024).
- S. R. White, Density matrix formulation for quantum renormalization groups, Phys. Rev. Lett. 69, 2863 (1992).
- R. Orús, A practical introduction to tensor networks: Matrix product states and projected entangled pair states, Ann. Phys. 349, 117 (2014).
- A. F. Mello, A. Santini, and M. Collura, Hybrid stabilizer matrix product operator, Phys. Rev. Lett. 133, 150604 (2024).
- A. F. Mello, A. Santini, G. Lami, J. D. Nardis, and M. Collura, Clifford dressed time-dependent variational principle, Phys. Rev. Lett. 134, 150403 (2025).
- T. Haug and L. Piroli, Quantifying nonstabilizerness of matrix product states, Phys. Rev. B 107, 035148 (2023).
- P. S. Tarabunga, E. Tirrito, M. C. Bañuls, and M. Dalmonte, Nonstabilizerness via matrix product states in the Pauli basis, Phys. Rev. Lett. 133, 010601 (2024).
- A. Paviglianiti, G. Lami, M. Collura, and A. Silva, Estimating non-stabilizerness dynamics without simulating it, PRX Quantum 6, 030320 (2025).
- G. Lami and M. Collura, Nonstabilizerness via perfect Pauli sampling of matrix product states, Phys. Rev. Lett. 131, 180401 (2023).
- P. S. Tarabunga, E. Tirrito, T. Chanda, and M. Dalmonte, Many-body magic via Pauli-Markov chains—From criticality to gauge theories, PRX Quantum 4, 040317 (2023).
- P. S. Tarabunga, Critical behaviours of non-stabilizerness in quantum spin chains, Quantum 8, 1413 (2024).
- G. Lami and M. Collura, Unveiling the stabilizer group of a matrix product state, Phys. Rev. Lett. 133, 010602 (2024).
- T. Spriggs, A. Ahmadi, B. Chen, and E. Greplova, Quantum resources of quantum and classical variational methods, Mach. Learn.: Sci. Technol. 6, 015042 (2025).
- G. Carleo and M. Troyer, Solving the quantum many-body problem with artificial neural networks, Science 355, 602 (2017).
- Z. Liu and B. K. Clark, Non-equilibrium quantum Monte Carlo algorithm for stabilizer Renyi entropy in spin systems, Phys. Rev. B 111, 085144 (2025).
- M. Troyer and U.-J. Wiese, Computational complexity and fundamental limitations to fermionic quantum Monte Carlo simulations, Phys. Rev. Lett. 94, 170201 (2005).
- M. Collura, J. D. Nardis, V. Alba, and G. Lami, The quantum magic of fermionic Gaussian states, arXiv:2412.05367 [quant-ph].
- M. V. den Nest, Simulating quantum computers with probabilistic methods, arXiv:0911.1624 [quant-ph].
- P. S. Tarabunga and C. Castelnovo, Magic in generalized Rokhsar-Kivelson wavefunctions, Quantum 8, 1347 (2024).
- See Supplemental Material at http://link.aps.org/supplemental/10.1103/v5tw-yn1f for additional details on the two Monte Carlo estimators for the SRE and their benchmark against MPS, the annealed importance sampling scheme, the optimization of the deep ViT ansatz, and the variational error on the SRE density, which also includes Refs. [102, 103, 104, 105, 106, 107].
- A. Montanaro, Learning stabilizer states by Bell sampling, arXiv:1707.04012 [quant-ph].
- C.-Y. Lai and H.-C. Cheng, Learning quantum circuits of some T gates, IEEE Trans. Inf. Theory 68, 3951 (2022).
- T. Haug, S. Lee, and M. S. Kim, Efficient quantum algorithms for stabilizer entropies, Phys. Rev. Lett. 132, 240602 (2024).
- M. B. Hastings, I. González, A. B. Kallin, and R. G. Melko, Measuring Renyi entanglement entropy in quantum Monte Carlo simulations, Phys. Rev. Lett. 104, 157201 (2010).
- P. R. N. Falcão, P. S. Tarabunga, M. Frau, E. Tirrito, J. Zakrzewski, and M. Dalmonte, Non-stabilizerness in U(1) lattice gauge theory, Phys. Rev. B 111, L081102 (2025).
- R. M. Neal, Annealed importance sampling, Stat. Comput. 11, 125 (2001).
- J. Odavić, T. Haug, G. Torre, A. Hamma, F. Franchini, and S. M. Giampaolo, Complexity of frustration: A new source of non-local non-stabilizerness, SciPost Phys. 15, 131 (2023).
- D.-L. Deng, X. Li, and S. Das Sarma, Quantum entanglement in neural network states, Phys. Rev. X 7, 021021 (2017).
- V. Havlicek, Amplitude ratios and neural network quantum states, Quantum 7, 938 (2023).
- G. Lami, T. Haug, and J. De Nardis, Quantum state designs with Clifford enhanced matrix product states, PRX Quantum 6, 010345 (2025).
- O. Sharir, A. Shashua, and G. Carleo, Neural tensor contractions and the expressive power of deep neural quantum states, Phys. Rev. B 106, 205136 (2022).
- D. Wu, R. Rossi, F. Vicentini, and G. Carleo, From tensor-network quantum states to tensorial recurrent neural networks, Phys. Rev. Res. 5, L032001 (2023).
- Y.-H. Zhang, Z. Jia, Y.-C. Wu, and G.-C. Guo, An efficient algorithmic way to construct Boltzmann machine representations for arbitrary stabilizer code, arXiv:1809.08631 [quant-ph].
- Z.-A. Jia, Y.-H. Zhang, Y.-C. Wu, L. Kong, G.-C. Guo, and G.-P. Guo, Efficient machine-learning representations of a surface code with boundaries, defects, domain walls, and twists, Phys. Rev. A 99, 012307 (2019).
- S. Lu, X. Gao, and L.-M. Duan, Efficient representation of topologically ordered states with restricted Boltzmann machines, Phys. Rev. B 99, 155136 (2019).
- Y. Zheng, H. He, N. Regnault, and B. A. Bernevig, Restricted Boltzmann machines and matrix product states of one-dimensional translationally invariant stabilizer codes, Phys. Rev. B 99, 155129 (2019).
- M. Y. Pei and S. R. Clark, Compact neural-network quantum state representations of Jastrow and stabilizer states, J. Phys. A: Math. Theor. 54, 405304 (2021).
- Z. Denis, A. Sinibaldi, and G. Carleo, Comment on “Can neural quantum states learn volume-law ground states?” Phys. Rev. Lett. 134, 079701 (2025).
- D. N. Page, Average entropy of a subsystem, Phys. Rev. Lett. 71, 1291 (1993).
- F. Verstraete and J. I. Cirac, Renormalization algorithms for quantum-many body systems in two and higher dimensions, arXiv:cond-mat/0407066.
- S. Eggert, Numerical evidence for multiplicative logarithmic corrections from marginal operators, Phys. Rev. B 54, R9612 (1996).
- S. R. White and I. Affleck, Dimerization and incommensurate spiral spin correlations in the zigzag spin chain: Analogies to the Kondo lattice, Phys. Rev. B 54, 9862 (1996).
- W.-J. Hu, F. Becca, A. Parola, and S. Sorella, Direct evidence for a gapless spin liquid by frustrating Néel antiferromagnetism, Phys. Rev. B 88, 060402 (2013).
- S.-S. Gong, W. Zhu, D. N. Sheng, O. I. Motrunich, and M. P. A. Fisher, Plaquette ordered phase and quantum phase diagram in the spin- square Heisenberg model, Phys. Rev. Lett. 113, 027201 (2014).
- S. Morita, R. Kaneko, and M. Imada, Quantum spin liquid in spin 1/2 Heisenberg model on square lattice: Many-variable variational Monte Carlo study combined with quantum-number projections, J. Phys. Soc. Jpn. 84, 024720 (2015).
- X. Liang, W.-Y. Liu, P.-Z. Lin, G.-C. Guo, Y.-S. Zhang, and L. He, Solving frustrated quantum many-particle models with convolutional neural networks, Phys. Rev. B 98, 104426 (2018).
- L. Wang and A. W. Sandvik, Critical level crossings and gapless spin liquid in the square-lattice spin- Heisenberg antiferromagnet, Phys. Rev. Lett. 121, 107202 (2018).
- R. Haghshenas and D. N. Sheng, -symmetric infinite projected entangled-pair states study of the spin-1/2 square Heisenberg model, Phys. Rev. B 97, 174408 (2018).
- F. Ferrari, F. Becca, and J. Carrasquilla, Neural Gutzwiller-projected variational wave functions, Phys. Rev. B 100, 125131 (2019).
- K. Choo, T. Neupert, and G. Carleo, Two-dimensional frustrated model studied with neural network quantum states, Phys. Rev. B 100, 125124 (2019).
- A. Szabó and C. Castelnovo, Neural network wave functions and the sign problem, Phys. Rev. Res. 2, 033075 (2020).
- X. Liang, S.-J. Dong, and L. He, Hybrid convolutional neural network and projected entangled pair states wave functions for quantum many-particle states, Phys. Rev. B 103, 035138 (2021).
- Y. Nomura and M. Imada, Dirac-type nodal spin liquid revealed by refined quantum many-body solver using neural-network wave function, correlation ratio, and level spectroscopy, Phys. Rev. X 11, 031034 (2021).
- L. L. Viteritti, F. Ferrari, and F. Becca, Accuracy of restricted Boltzmann machines for the one-dimensional Heisenberg model, SciPost Phys. 12, 166 (2022).
- H. Chen, D. Hendry, P. Weinberg, and A. E. Feiguin, Systematic improvement of neural network quantum states using a Lanczos recursion, in Proceedings of the 36th International Conference on Neural Information Processing Systems, NIPS ’22 (Curran Associates Inc., Red Hook, NY, 2024).
- M. Li, J. Chen, Q. Xiao, F. Wang, Q. Jiang, X. Zhao, R. Lin, H. An, X. Liang, and L. He, Bridging the gap between deep learning and frustrated quantum spin system for extreme-scale simulations on new generation of sunway supercomputer, IEEE Trans. Parallel Distrib. Syst. 33, 2846 (2022).
- C. Roth, A. Szabó, and A. H. MacDonald, High-accuracy variational Monte Carlo for frustrated magnets with deep neural networks, Phys. Rev. B 108, 054410 (2023).
- X. Liang, M. Li, Q. Xiao, J. Chen, C. Yang, H. An, and L. He, Deep learning representations for quantum many-body systems on heterogeneous hardware, Mach. Learn.: Sci. Technol. 4, 015035 (2023).
- E. Ledinauskas and E. Anisimovas, Scalable imaginary time evolution with neural network quantum states, SciPost Phys. 15, 229 (2023).
- M. Reh, M. Schmitt, and M. Gärttner, Optimizing design choices for neural quantum states, Phys. Rev. B 107, 195115 (2023).
- L. L. Viteritti, R. Rende, and F. Becca, Transformer variational wave functions for frustrated quantum spin systems, Phys. Rev. Lett. 130, 236401 (2023).
- A. Chen and M. Heyl, Empowering deep neural quantum states through efficient optimization, Nat. Phys. 20, 1476 (2024).
- R. Rende, L. L. Viteritti, L. Bardone, F. Becca, and S. Goldt, A simple linear algebra identity to optimize large-scale neural network quantum states, Commun. Phys. 7, 260 (2024).
- J.-Q. Wang, H.-Q. Wu, R.-Q. He, and Z.-Y. Lu, Variational optimization of the amplitude of neural-network quantum many-body ground states, Phys. Rev. B 109, 245120 (2024).
- L. L. Viteritti, R. Rende, A. Parola, S. Goldt, and F. Becca, Transformer wave function for two dimensional frustrated magnets: Emergence of a spin-liquid phase in the Shastry-Sutherland model, Phys. Rev. B 111, 134411 (2025).
- S. Sorella, Green function Monte Carlo with stochastic reconfiguration, Phys. Rev. Lett. 80, 4558 (1998).
- S. Sorella, Wave function optimization in the variational Monte Carlo method, Phys. Rev. B 71, 241103 (2005).
- C. K. Majumdar and D. K. Ghosh, On next‐nearest‐neighbor interaction in linear chain. I, J. Math. Phys. 10, 1388 (1969).
- X. Qian and M. Qin, Absence of spin liquid phase in the Heisenberg model on the square lattice, Phys. Rev. B 109, L161103 (2024).
- M. Schmitt and M. Heyl, Quantum many-body dynamics in two dimensions with artificial neural networks, Phys. Rev. Lett. 125, 100503 (2020).
- A. Sinibaldi, C. Giuliani, G. Carleo, and F. Vicentini, Unbiasing time-dependent variational Monte Carlo by projected quantum evolution, Quantum 7, 1131 (2023).
- L. Gravina, V. Savona, and F. Vicentini, Neural projected quantum dynamics: A systematic study, Quantum 9, 1803 (2025).
- A. Sinibaldi, D. Hendry, F. Vicentini, and G. Carleo, Time-dependent neural Galerkin method for quantum dynamics, arXiv:2412.11778 [quant-ph].
- J. Nys, G. Pescia, A. Sinibaldi, and G. Carleo, Ab-initio variational wave functions for the time-dependent many-electron Schrödinger equation, Nat. Commun. 15, 9404 (2024).
- G. Carleo et al., NetKet: A machine learning toolkit for many-body quantum systems, SoftwareX 10 100311 (2019).
- F. Vicentini et al., NetKet 3: Machine learning toolbox for many-body quantum systems, SciPost Phys. Codebases 7 (2022).
- A. Sinibaldi, cqsl/nqsmagic: First release, Zenodo (2025), doi: 10.5281/zenodo.16941784.
- C. Gidney, Stim: A fast stabilizer circuit simulator, Quantum 5, 497 (2021).
- M. Fishman, S. R. White, and E. M. Stoudenmire, The ITensor software library for tensor network calculations, SciPost Phys. Codebases 4 (2022).
- G. B. Mbeng, A. Russomanno, and G. E. Santoro, The quantum Ising chain for beginners, SciPost Phys. Lect. Notes 82 (2024).
- S. F. E. Oliviero, L. Leone, and A. Hamma, Magic-state resource theory for the ground state of the transverse-field Ising model, Phys. Rev. A 106, 042426 (2022).
- Z. Liu, H. Mao, C.-Y. Wu, C. Feichtenhofer, T. Darrell, and S. Xie, A ConvNet for the 2020s, in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (2022), pp. 11976–11986.
- Y. Bengio, A. Courville, and P. Vincent, Representation learning: A review and new perspectives, IEEE Trans. Pattern Anal. Mach. Intell. 35, 1798 (2013).
- Z. Denis and G. Carleo, Accurate neural quantum states for interacting lattice bosons, Quantum 9, 1772 (2025).
- W. Marshall, Antiferromagnetism, Proc. R. Soc. London A 232, 48 (1955).