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`
GraphState
​
GraphState
[g]
represents the graph state of the undirected graph
g
with identity vertex-operator-Paulis (VOPs) on every vertex.
​
​
GraphState
[ps]
converts a graph-form
PauliStabilizer
ps
into the corresponding
GraphState
; the input must have
X
i
at the diagonal of every stabilizer row and
Z
j
or
I
j
elsewhere.
​
Details and Options
▪
A
GraphState
stores a stabilizer state in the graph-state representation introduced by Anders & Briegel (arXiv:quant-ph/0504117). For a graph
G=(V,E)
the associated state is
|G〉=
∏
e∈E
CZ
e
|
⊗n
+
〉
, i.e. the application of a controlled-
Z
on every edge to the all-plus state.
▪
The internal representation is the Association
"Graph"g,"VOPs"{0,…}
. The
"VOPs"
field stores a list of integer indices into the 24-element single-qubit Clifford group; currently only the identity (index
0
) is exercised.
▪
The stabilizer generators of the graph state are read off the graph: for each vertex
i
,
K
i
=
X
i
⊗
∏
j∈N(i)
Z
j
, where
N(i)
is the neighbour set of
i
.
▪
The graph-state representation has memory cost
O(n·
d
)
where
d
is the average vertex degree, which is asymptotically smaller than the
O(
2
n
)
tableau for sparsely-connected codes.
▪
The
GraphState
[ps]
conversion succeeds only on graph-form stabilizers (one
X
on the diagonal,
Z
/
I
elsewhere); other inputs emit
GraphState::nongraph
and return
$Failed
. Use a local-Clifford transformation (AndBri05 Lemma 1) to bring an arbitrary stabilizer state into graph form before calling.
▪
Two graph states (with identity VOPs) are local-Clifford-equivalent if and only if their graphs are related by a sequence of local complementations (
LocalComplement
); this is the basis of the graph-state classification of stabilizer states (AndBri05 Theorem 1, Hein-Eisert-Briegel arXiv:quant-ph/0602096).
▪
Property access uses the dispatch syntax
gs["property"]
; the full list of recognised properties is given by
gs["Properties"]
. Conversion to a
PauliStabilizer
is done via
gs["PauliStabilizer"]
.
​
Examples  
(24)
Basic Examples  
(1)
The graph state of a 4-cycle:
In[1]:=
GraphState
[CycleGraph[4]]
Out[2]=
GraphState

Vertices: 4
Edges: 4

​
The graph state of a 3-path:
In[1]:=
GraphState
[PathGraph[{1,2,3}]]
Out[2]=
GraphState

Vertices: 3
Edges: 2

​
The graph state of a 4-vertex star (GHZ-equivalent under local Cliffords):
In[1]:=
GraphState
[StarGraph[4]]
Out[2]=
GraphState

Vertices: 4
Edges: 3

​
A graph-form PauliStabilizer is converted directly:
In[1]:=
GraphState

PauliStabilizer
[{"XZI","ZXZ","IZX"}]
Out[2]=
GraphState

Vertices: 3
Edges: 2

​
Inspecting stabilizers and the underlying graph:
In[1]:=
Module{gs},gs=
GraphState
[CycleGraph[4]];{gs["VertexCount"],gs["EdgeCount"],gs["Stabilizers"]}
Out[2]=
{4,4,{XZIZ,ZXZI,IZXZ,ZIZX}}
Scope  
(4)

Generalizations & Extensions  
(1)

Options  
(8)

Applications  
(2)

Properties & Relations  
(4)

Possible Issues  
(3)

Neat Examples  
(1)

SeeAlso
LocalComplement
 
▪
PauliStabilizer
 
▪
StabilizerStateQ
 
▪
StabilizerFrame
 
▪
CliffordChannel
 
▪
QuantumState
 
▪
QuantumCircuitOperator
 
▪
Graph
 
▪
AdjacencyMatrix
 
▪
PauliMatrix
RelatedGuides
▪
Wolfram Quantum Computation Framework
""

© 2026 Wolfram. All rights reserved.

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