Quantifying Nonstabilizerness of Quantum Codes by Removing the Inert Background

arXiv:2609.06177 · quant-ph, math-ph, math.MP · Submitted 2026-09-05 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Quantum Radio. Generated commentary on the latest quantum physics and condensed matter papers.

Kai: I'm Kai, and with me are Mira and Lev, guest researcher.

Mira: Today's paper: "Quantifying Nonstabilizerness of Quantum Codes by Removing the Inert Background".

Kai: The gist Quantifying nonstabilizerness by removing an inert background resolves difficulties in quantifying quantum magic by reducing it to finite classical counting problems for broad classes of codes.

Mira: First, who's behind it and why it matters.

Title and authors: Kai: So let's look at the title and who wrote this. The paper is titled "Quantifying Nonstabilizerness of Quantum Codes by Removing the Inert Background," written by Yuan Liu and Ke-Mi Xu.

Mira: They are clearly focusing on making that measurement accessible, and I think their approach of using Clifford transformations to isolate the cubic part is a very clever way to handle this inherent difficulty.

Lev: From an error correction standpoint, if you can reduce the problem to a finite counting task, that means you have a concrete bound or formula you can actually use when designing codes for real quantum computers.

Kai: The implication here is that instead of chasing an infinite sum, we might be able to calculate exactly how "non-stabilizer" a code is just by looking at its structure after this background subtraction.

Mira: It shifts the focus from measuring the entire Pauli group structure to analyzing the specific nonlinearities that survive the peeling process.

Lev: That makes sense; if you can isolate a cubic term, you're looking at something much more tractable than a full exponential search over all possible operators.

Kai: And this paper sets up these dictionaries—the indicator and phase ones—as the main methodology to make that isolation happen mathematically.

The paper's summary: Kai: Now for the actual summary of what they did. Basically, they established this structural observation where Clifford operations remove the inert part, which is always the quadratic sector of a stabilizer state.

Mira: They then show that this leaves an order-three object that holds all the magic, and they provide two specific formulas—the indicator dictionary and the phase dictionary—to quantify it using fourth moments of those states.

Lev: The paper shows how these dictionaries work for any code state that is Clifford-equivalent to a subset state, which is a broad class, not just one specific type of code.

Kai: For example, on the indicator side, the magic turns into an additive energy calculation involving the support of the state—that's what they call E(one)(S), which depends on how things overlap <ref:2609.06177#pg3>.

Mira: And then on the phase side, when you look at a phase state, it maps to something related to the rank data of a cubic Hessian matrix, which is just a way to count specific geometric features of that function.

Lev: So, for someone building hardware or designing software for quantum computation, this means you don't need the full Pauli group description; you just need to calculate these two specific quantities based on the code's structure.

Kai: It sounds like they are providing a direct mathematical pathway to compute nonstabilizerness using these dictionary tools instead of brute force.

The paper's improvements: Mira: The real strength, I think, is how they apply these tools to concrete examples. They use the dictionaries to yield specific results for four different code families that are relevant in different areas of quantum information science.

Kai: Take CWS codes, for instance; the reduction reproduces a known dictionary and makes the nonstabilizerness of Kerdock codes exactly computable, which is a big step because those were previously hard.

Lev: For experimentalists, being able to compute that exact value means you can set a clear benchmark for how far your physical system is from being perfectly stabilizer-based.

Mira: Then they look at permutation-invariant codes and Dicke states, where they get a closed form for all Dicke states, reducing the calculation from thousands of terms down to just a short binomial sum.

Kai: That reduction for the one hundred-qubit case is huge; it takes something that looked overwhelmingly complex and makes it manageable <ref:2609.06177#pg1>.

Lev: For those of us thinking about error correction, having a formula that simplifies an exponential problem into something polynomial or short means we can actually analyze the error threshold much faster.

Mira: And for cubic-phase codes, they get a lower bound saturated only by the D4 code, which gives a solid limit on how much magic you can expect in those systems.

Conclusion: Kai: So to wrap up, the main point of this paper is that by removing the inert quadratic background via Clifford transformations, we isolate an order-three object that carries all the magic.

Mira: The unifying idea they use to do this is a Parseval fourth moment identity, which manifests as the additive energy term on the indicator side and a Hessian-rank count on the phase side.

Lev: So what this means for us in practice is that we can now reduce these complex quantum resource problems to finite combinatorial tasks for these specific code families.

Kai: It gives us exact tools to identify maximally magical codes among them, like finding the CCZ state as a specific case where the magic is at its maximum.

Mira: It also provides diagnostics for group multiplication states, telling you immediately if the group law is cyclic or not by checking if the diagonal expectation is confined to zero or one.

Lev: For me, it shows that even for complicated topological orders, we might be able to get hard numerical bounds using these structural ideas when we look at specific families of codes.

Kai: So this paper on "Quantifying Nonstabilizerness of Quantum Codes by Removing the Inert Background" gives us a clear roadmap for tackling these hard quantification problems without needing an exponential search anymore.

Beijing Institute of Technology

quant-ph, math-ph, math.MP

Submitted: 2026-09-05

Updated: 2026-10-08

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 76/100

The gist: The gist Quantifying nonstabilizerness by removing an inert background resolves difficulties in quantifying quantum magic by reducing it to finite classical counting problems for broad classes of

Key concepts

Nonstabilizerness (Magic)
This is a quantum resource that measures how much a quantum state deviates from the set of stabilizer states. It signifies the degree to which a state requires more than just stabilizer operations to be manipulated, making it crucial for universal quantum computation and fault-tolerant codes.
Second-order Stabilizer Rényi Entropy (SRE)
This is a specific mathematical measure used to quantify nonstabilizerness. It involves calculating the fourth moment of the Pauli group operators applied to a quantum state. While useful, directly calculating this for generic states is computationally impractical because it requires summing over an exponentially large number of Pauli operators.
Clifford Unitary Removal
The central technique involves using a Clifford unitary transformation to remove an 'inert' part of the state. This inert part corresponds to the quadratic (order-two) sector, which is easy to handle. By removing this background, the remaining order-three (cubic) object is isolated and carries all the essential magic that can be exactly calculated.
Fourth-Moment Dictionaries
These are two specific mathematical tools derived from Parseval's identity used to calculate the magic. One dictionary relates the magic to the additive energy of a subset state, and another relates it to the rank data of a cubic Hessian matrix for phase states.

Terminology

Summary

The gist

Quantifying nonstabilizerness by removing an inert background resolves difficulties in quantifying quantum magic by reducing it to finite classical counting problems for broad classes of codes.

Quantifying Nonstabilizerness

Nonstabilizerness, or magic, quantifies the departure of a quantum state from the stabilizer polytope, which is a resource enabling universal quantum computation alongside stabilizer operations [1–4]. A convenient measure is the second-order stabilizer R´enyi entropy (SRE), defined by M2(ψ⟩) = − log2 2−n X P ∈Pn ⟨ψPψ⟩ 4, where Pn is the n-qubit Pauli group [5, 6]. Direct evaluation of this measure is impractical for generic states because the sum runs over all 4n Pauli operators [7, 8]. Prior work has provided exact values only in special cases and qualitative facts for code families [9–13].

The Peeling Principle

The central observation is that a Clifford unitary conjugates the Pauli group into itself and leaves M2 invariant, meaning any part of a state generated by Clifford operations is invisible to M2 and removable [21]. For a broad range of states, this inert part is precisely the quadratic (order-two) sector, which can be removed because a stabilizer state has a quadratic phase (−1)q(x) in the computational basis [21]. Removing this background isolates an order-three (cubic) object that carries all the magic [22]. This reduction yields closed forms for several code families, such as a formula for all Dicke states and bounds for cubic-phase codes [24–25].

Two Fourth-Moment Dictionaries

The reduction is realized through two fourth-moment dictionaries derived from Parseval’s identity [6]:

  1. On the indicator side, the magic of a subset state S⟩ is given by M2(S⟩) = 4 log2 S − log2 E(1)(S), where E(1)(S) = X x∈F n 2 E(S), and E(S) is the additive energy of S [8, 9]. This dictionary applies to any code whose state is Clifford-equivalent to a subset state [23].

  2. On the phase side, for a phase state Cf⟩, M2(Cf⟩) = n − log2 2−3n X u,v∈F n 2 X x (−1)∂ 2 f(x;u,v) / 4, where f is the phase function [10]. For cubic functions f, the second derivative is affine in x, leading to M2(Cf⟩) = 2n − log2 N(B), where N(B) counts singular directions of the Hessian [11].

Results for Code Families

The dictionaries yield specific results for four code families:

)&CWS codes the reduction reproduces the companion dictionary [23] and makes nonstabilizerness of Kerdock codes exactly computable [24, 25]. The magic is governed by the additive combinatorial nonlinearity of the classical label code [15].

)&Permutation-invariant Codes and Dicke States A permutation-invariant code has a code space closed under arbitrary qubit permutations [34], and its canonical basis states are the Dicke states [35]. The magic of a 100-qubit Dicke state reduces from a sum over 4100 terms to a short binomial sum [26–28].

)&Cubic-phase Codes and non-Abelian Topological Order For cubic-phase codes, the decoupled form of twisted quantum doubles and non-Abelian topological order yields the exact magic together with a lower bound saturated only by the determinant on F 3 2 (the D4 code) [17]. The minimal instance is equivalent to the D4 topological order [17].

)&Group Algebra Group States For group multiplication states, M2(ψG⟩) = 0 if and only if the group law is cyclic, and the minimal non-cyclic case carries exactly the magic of the ControlledControlled-Z (CCZ) state [24]. The minimal non-cyclic group is the Klein four-group, which exposes the bridge to the cubic picture [37].

Conclusion

In every case, an order-three (cubic) object carries magic after removing an order-two background via a Clifford transformation [15]. The unifying identity is a Parseval fourth moment, which on the indicator side becomes E(1) and on the phase side the Hessian-rank count N(B) [22]. This analysis reduces nonstabilizerness to finite combinatorial problems for these families.

--- Page 1 ---

Quantifying Nonstabilizerness of Quantum Codes by Removing the Inert Background Yuan Liu and Ke-Mi Xu∗ MIIT Key Laboratory of Complex-field Intelligent Exploration, School of Optics and Photonics, Beijing Institute of Technology, Beijing 100081, China Nonstabilizerness (magic) is the quantum resource that, together with stabilizer operations, makes universal quantum computation possible. It appears in fault-tolerant codes and topological order. However, quantifying nonstabilizerness is difficult. The standard measure sums over exponentially many Pauli operators, and for quantum codes no quantitative theory has been available. We resolve this by a structural observation: the Clifford sector carries no magic and can be removed by a Clifford transformation, leaving an order-three object whose magic is an exactly evaluable fourth moment. Removing this inert background yields closed forms for several code families: a formula for all Dicke states, reducing a 100-qubit case from 4100 terms to a short binomial sum; a bound for cubic-phase codes (twisted quantum doubles and non-Abelian topological order), saturated only by the D4 code; and a cyclic/zero criterion for group multiplication states. Together these results reduce the computation of nonstabilizerness for a broad class of codes to finite classical counting problems, and identify the maximally magical codes among them.

--- Page 2 ---

Nonstabilizerness, or magic, quantifies the departure of a quantum state from the stabilizer polytope. Together with stabilizer operations, it is the resource that enables universal quantum computation [1–4]. A convenient measure of nonstabilizerness is the second-order stabilizer R´enyi entropy (SRE) [5, 6] M2(ψ⟩) = − log2 2−n X P ∈Pn ⟨ψPψ⟩ 4, (1) where Pn is the n-qubit Pauli group. The global phases of P are suppressed, since they do not enter the fourth moment. For a generic state the sum runs over all 4n Pauli operators, so a direct evaluation is impractical already for a few tens of qubits [7, 8]. Prior work gives exact values only in special cases and qualitative facts only for code families. Closed forms are known for the W state [9, 10] and for fixedexcitation Dicke [11] and hypergraph states [12], and the permutation-invariant machinery of [13] evaluates symmetric states efficiently in a Dicke basis, but these do not extend to full families or to large codes. Twisted quantum doubles furnish non-Pauli topological stabilizer codes [14, 15], whose SRE encodes fusion rules [16] and whose non-Abelian orders carry extensive, long-ranged magic [17–20], but no exact values have been reported. The exact magic of these code families has thus remained out of reach.

--- Page 3 ---

The central observation of this work is that for a broad and physically relevant class of states the sum of Eq. (1) collapses. A Clifford unitary conjugates the Pauli group into itself and leaves M2 invariant, so any part of a state generated by Clifford operations is invisible to M2 and removable. For a wide range of states, this inert part is precisely the quadratic (order-two) sector: a stabilizer state has a quadratic phase (−1)q(x) in the computational basis [21], and quadratic phases are Clifford-implementable. Removing this background isolates an order-three (cubic) object that carries all the magic. In the language of the Pauli and Clifford hierarchy [22], the Pauli group is a central extension of F 2n 2 classified by the symplectic form, the Clifford layer is the quadratic sector, and magic is the order-three obstruction to quadraticity. Removing the inert background thus reduces the nonstabilizerness of each family to a finite, exactly evaluable quantity. We realize this by two fourth-moment dictionaries: on the indicator side a code state peels to a subset state whose magic is the additive energy of its support, and on the phase side to a phase state whose magic is the rank data of a cubic Hessian. Applied to four code families, the dictionaries yield several results. For Codeword-stabilized (CWS) codes the reduction reproduces the companion dictionary [23] and makes nonstabilizerness of Kerdock codes exactly computable [24, 25]. For permutation-invariant codes we obtain a closed form for all Dicke states, valid for every excitation number k and block length n, so that the magic of a 100-qubit Dicke state reduces from a sum over 4100 terms to a short binomial sum. For cubic-phase codes, the decoupled form of twisted quantum doubles and non-Abelian topological order, we obtain the exact magic together with a lower bound saturated only by the determinant on F 3 2 (the D4 code).

Improvements for AI systems

  1. Better quantification of quantum resource utilization by using a structural observation: the Clifford sector carries no magic and can be removed by a Clifford transformation, leaving an order-three object whose magic is an exactly evaluable fourth moment. This allows for the reduction of complex sums to finite classical counting problems, enabling exact computation of nonstabilizerness for broad code families.

  2. Exact identification of maximally magical quantum codes: The paper provides tools to identify the maximally magical codes among them by yielding closed forms and bounds for specific code families, such as finding that the bound is attainable only if every Mu with u != 0 is nonsingular and identifying the CCZ state as the maximally magic single cubic.

  3. Efficient analysis of permutation-invariant states: The derived formula for Dicke states reduces the computation of nonstabilizerness from a sum over 4100 terms to a short binomial sum, which significantly accelerates characterization for large systems like 100-qubit codes.

  4. Precise classification of topological order magic: For cubic-phase codes, the magic is quantified by the cubic departure from stabilizer quadraticity, allowing systems with non-Abelian topological order to be characterized by the rank data of a Hessian, specifically identifying that for a benchmark family, M2 = 6 - log2 22.

  5. Group theory diagnostics for non-Abelian codes: For group multiplication states, the magic is determined by whether the group law is cyclic, providing an immediate diagnostic criterion to determine if the state is non-stabilizer by checking if the diagonal expectation is not confined to 0, 1.

Sources

Related papers