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`
LocalComplement
​
LocalComplement
[g,v]
returns the graph obtained from
g
by complementing every edge between distinct neighbours of
v
.
​
​
LocalComplement
[gs,v]
applies local complementation to the underlying graph of a
GraphState
gs
and returns the resulting
GraphState
.
​
Details and Options
▪
LocalComplement
implements the local complementation operation of Anders & Briegel (arXiv:quant-ph/0504117, Definition 1): for the chosen vertex
v
, every pair of distinct neighbours
(a,b)
has the edge
a∼b
toggled (added if absent, removed if present).
▪
Local complementation generates the equivalence of graph states under local Clifford operations. The Anders-Briegel theorem (AndBri05 Theorem 1) states that two graph states
|G
1
and
|G
2
are local-Clifford-equivalent if and only if their graphs lie in the same orbit under successive local complementations.
▪
On a
GraphState
input,
LocalComplement
modifies the underlying graph but currently keeps the same vertex-operator-Pauli (VOP) assignments. Tracked-VOP local complementation per AndBri05 Eq (8) is on the roadmap; use the resulting
GraphState
's graph for combinatorial reasoning and the original
PauliStabilizer
for unitary evolution.
▪
Local complementation is involutive:
LocalComplement
applied twice at the same vertex restores the original graph.
▪
The local-complementation orbit of an
n
-vertex graph is finite (bounded by the
n
-vertex graph count) and is the equivalence class used to classify graph states up to local Cliffords; small representatives are tabulated in Hein et al. (arXiv:quant-ph/0602096).
▪
If
v
has fewer than two neighbours,
LocalComplement
returns
g
unchanged (no pairs to toggle).
​
Examples  
(15)
Basic Examples  
(1)
Local complementation at an isolated vertex is the identity:
In[1]:=
LocalComplement
[Graph[{1,2,3},{}],1]
Out[2]=
​
Apply local complementation to the centre of a 4-vertex star, producing a complete graph on the leaves:
In[1]:=
LocalComplement
[StarGraph[4],1]
Out[2]=
​
At the middle of a path graph, local complementation closes the path's outer arms into a triangle:
In[1]:=
Module{p3},p3=PathGraph[{1,2,3}];
LocalComplement
[p3,2]
Out[2]=
​
Local complementation on a GraphState returns a new GraphState:
In[1]:=
LocalComplement

GraphState
[StarGraph[4]],1
Out[2]=
GraphState

Vertices: 4
Edges: 6

​
Involutive at a single vertex:
In[1]:=
Module{g,twice},g=StarGraph[5];twice=
LocalComplement

LocalComplement
[g,1],1;IsomorphicGraphQ[g,twice]
Out[2]=
True
Scope  
(2)

Generalizations & Extensions  
(1)

Options  
(1)

Applications  
(2)

Properties & Relations  
(4)

Possible Issues  
(3)

Neat Examples  
(1)

SeeAlso
GraphState
 
▪
PauliStabilizer
 
▪
StabilizerStateQ
 
▪
StabilizerFrame
 
▪
CliffordChannel
 
▪
QuantumState
 
▪
QuantumOperator
 
▪
QuantumCircuitOperator
 
▪
Graph
 
▪
EdgeAdd
 
▪
EdgeDelete
 
▪
AdjacencyList
RelatedGuides
▪
Wolfram Quantum Computation Framework
""

© 2026 Wolfram. All rights reserved.

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