Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

QuantumFramework

Tutorials

  • Getting Started
  • Quantum Object Composition

Guides

  • Wolfram Quantum Computation Framework

Tech Notes

  • Bell's Theorem: CHSH inequality
  • Circuit Diagram
  • Exploring Fundamentals of Quantum Theory
  • QPU Service Connection
  • Quantum object abstraction
  • Quantum Optimization
  • Second Quantization Functions
  • Tensor Network
  • Quantum Computation

Symbols

  • CliffordChannel
  • EinsteinSummation
  • GraphState
  • LocalComplement
  • PauliStabilizer
  • QiskitTarget
  • QuantumBasis
  • QuantumChannel
  • QuantumCircuitMultiwayGraph [EXPERIMENTAL]
  • QuantumCircuitOperator
  • QuantumDistance
  • QuantumEntangledQ
  • QuantumEntanglementMonotone
  • QuantumEvolve
  • QuantumMeasurement
  • QuantumMeasurementOperator
  • QuantumMeasurementSimulation
  • QuantumMPS [EXPERIMENTAL]
  • QuantumOperator
  • QuantumPartialTrace
  • QuantumPhaseSpaceTransform
  • QuantumQASM
  • QuantumShortcut [EXPERIMENTAL]
  • QuantumSimilarity
  • QuantumStateEstimate [EXPERIMENTAL]
  • QuantumState
  • QuantumTensorProduct
  • QuantumWignerMICTransform [EXPERIMENTAL]
  • QuantumWignerTransform [EXPERIMENTAL]
  • QuditBasis
  • QuditName
  • StabilizerFrame
  • StabilizerStateQ
Wolfram`QuantumFramework`
StabilizerStateQ
​
StabilizerStateQ
[expr]
returns
True
if
expr
is a structurally valid stabilizer-state representation (a
PauliStabilizer
or a single-component
StabilizerFrame
), and
False
otherwise.
​
Details and Options
▪
StabilizerStateQ
is a structural predicate: it inspects the head and tableau shape of its argument and does not perform any state-vector tomography or numerical comparison.
▪
StabilizerStateQ
[ps]
returns
True
when
ps
is a
PauliStabilizer
with the required
"Signs"
and
"Tableau"
keys whose dimensions match (length-
m
sign vector and a
2×n×m
tableau).
▪
StabilizerStateQ
[sf]
returns
True
when
sf
is a
StabilizerFrame
whose
"Length"
is exactly one (a single-component frame is equivalent to a stabilizer state up to a scalar).
▪
StabilizerStateQ
returns
False
on every other input, including
QuantumState
expressions. Detecting whether an arbitrary
QuantumState
is a stabilizer state requires
n
4
Pauli tomography and is exposed separately via
PauliStabilizer
[qs]
, which returns a
PauliStabilizer
on success or
$Failed
otherwise.
▪
A multi-component
StabilizerFrame
(such as the result of applying a non-Clifford
T
gate) is
False
under
StabilizerStateQ
because it represents a superposition of stabilizer states rather than a stabilizer state itself.
▪
Stabilizer states form a non-generic measure-zero subset of the
n
2
-dimensional Hilbert space; their cardinality scales as
n
2
·
n
∏
k=1
(
k
2
+1)
(Aaronson-Gottesman 2004). The predicate is therefore a useful guard for fast-path dispatch in functions that accept either tableau or state-vector inputs.
​
Examples  
(16)
Basic Examples  
(1)
Test the empty (1-qubit) stabilizer register:
In[1]:=
StabilizerStateQ

PauliStabilizer
[]
Out[2]=
True
​
Test a 3-qubit |000〉 register:
In[1]:=
StabilizerStateQ

PauliStabilizer
[3]
Out[2]=
True
​
Test a Bell-state stabilizer constructed from Pauli strings:
In[1]:=
StabilizerStateQ

PauliStabilizer
[{"XX","ZZ"}]
Out[2]=
True
​
A QuantumState is not implicitly tomographed; the predicate returns False:
In[1]:=
StabilizerStateQ

QuantumState
[{1,0}]
Out[2]=
False
​
A single-component StabilizerFrame qualifies; a non-state value does not:
In[1]:=

StabilizerStateQ

StabilizerFrame

PauliStabilizer
[2],
StabilizerStateQ
[42]
Out[2]=
{True,False}
Scope  
(3)

Generalizations & Extensions  
(1)

Options  
(1)

Applications  
(2)

Properties & Relations  
(4)

Possible Issues  
(3)

Neat Examples  
(1)

SeeAlso
PauliStabilizer
 
▪
StabilizerFrame
 
▪
CliffordChannel
 
▪
GraphState
 
▪
LocalComplement
 
▪
QuantumState
 
▪
MatrixQ
 
▪
BooleanQ
RelatedGuides
▪
Wolfram Quantum Computation Framework
""

© 2026 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com