An efficient algorithm to compute entanglement in states with low magic
ChunJun Cao, Gong Cheng, Tianci Zhou
TL;DR
The paper addresses the challenge of computing entanglement in magic-rich quantum states by exploiting stabilizer-code structure to separate entanglement into a stabilizer contribution and a logical contribution for states of the form $|\Psi\rangle=\sum_{j=1}^K c_j |\psi_j\rangle$ with common stabilizers. For low stabilizer nullity $\nu$, the method delivers a polynomial-in-$n$ and exponential-in-$\nu$ classical algorithm to obtain the von Neumann entropy, the entanglement spectrum, and all Rényi entropies, using an RT-like decomposition $S(\rho_A)=S(\rho_a)+\mathscr{A}(\rho_A)$ where the area term is stabilizer-only. The bulk entropy $S(\rho_a)$ is computed from the logical state on a $2^\nu$-dimensional subspace, while $\mathscr{A}(\rho_A)$ is obtained from a reference stabilizer state, enabling efficient reconstruction of the full entanglement spectrum. The framework applies to sparse-magic circuits, MIPT studies, holographic stabilizer codes, and experimental learning of entropies, providing a practical tool for exploring entanglement in magic-rich quantum many-body systems.
Abstract
A bottleneck for analyzing the interplay between magic and entanglement is the computation of these quantities in highly entangled quantum many-body magic states. Efficient extraction of entanglement can also inform our understanding of dynamical quantum processes such as measurement-induced phase transition and approximate unitary designs. We develop an efficient classical algorithm to compute the von Neumann entropy and entanglement spectrum for such states under the condition that they have low stabilizer nullity. The algorithm exploits the property of stabilizer codes to separate entanglement into two pieces: one generated by the common stabilizer group and the other from the logical state. The low-nullity constraint ensures both pieces can be computed efficiently. Our algorithm can be applied to study the entanglement in sparsely $T$-doped circuits with possible Pauli measurements as well as certain classes of states that have both high entanglement and magic. Combining with stabilizer learning subroutines, it also enables the efficient learning of von Neumann entropies for low-nullity states prepared on quantum devices.
