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

  • Bell's Theorem: CHSH inequality
  • Circuit Diagram
  • Exploring Fundamentals of Quantum Theory
  • Getting Started
  • An IBM Quantum Error Map
  • Connecting to QPU Services
  • Quantum Machine Learning in Phase Space
  • Quantum object abstraction
  • Quantum Object Composition
  • Quantum Optimization
  • Second Quantization Functions
  • Sending Queries to IBM QPUs
  • Tensor Network
  • Time Evolution
  • Fast Gates on a Transmon
  • Quantum Computation

Guides

  • Wolfram Quantum Computation Framework

Symbols

  • CliffordChannel
  • EinsteinSummation
  • GraphState
  • IBMJob
  • IBMJobSubmit
  • LocalComplement
  • PauliStabilizer
  • QiskitCircuit
  • 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`
QuantumCircuitMultiwayGraph
[
EXPERIMENTAL
]
​
QuantumCircuitMultiwayGraph[qc]
represents a multiway graph of the quantum circuit
qc
​
Details and Options
Examples  
(3)
Basic Examples  
(3)
Multiway graph of Bell circuit:
In[1]:=
QuantumCircuitMultiwayGraph
QuantumCircuitOperator
["Bell"],VertexLabelsAutomatic
Out[1]=
Using annotations on multiway graph, show corresponding operators of each edge:
In[2]:=
GraphQuantumCircuitMultiwayGraph
QuantumCircuitOperator
["Bell"],EdgeLabels_​​
KeyValuePattern["Operator"op_]

_​​Placed[Style[op["Label"],Bold],Center],​​PerformanceGoal"Quality"
Out[2]=
​
Create a circuit as composition of magic circuit and Fourier:
In[1]:=
QuantumCircuitOperator
[{"Magic","Fourier"}]["Diagram"]
Out[1]=
Create corresponding multiway graph, and label edges:
In[2]:=
QuantumCircuitMultiwayGraph
QuantumCircuitOperator
[{"Magic","Fourier"}],EdgeLabels_​​
KeyValuePattern["Operator"op_]

_​​Placed[Style[op["Label"],Bold],Center]
Out[2]=
As one can see, the gate CNOT is the one creating entanglement.
​
Create a graph of 4 vertexes and 5 edges:
In[1]:=
g=Graph[{12,13,14,23,24},VertexLabelsAutomatic]
Out[1]=
Create its corresponding graph circuit:
In[2]:=
QuantumCircuitOperator
["Graph"[g]]["Diagram"]
Out[2]=
In[3]:=
gr=QuantumCircuitMultiwayGraph
QuantumCircuitOperator
["Graph"[g]],EdgeLabels_​​
KeyValuePattern["Operator"op_]

_​​Placed[Style[Superscript[Replace[op["Label"],Head_[__]Head],op["InputOrder"]],Bold],Center]
Out[3]=
Find the leaf nodes (vertices with no outgoing edges) in a spanning tree of a graph (not including the loops):
In[4]:=
Fold[TreeInsert[#1,Tree[#2〚2〛,{}],#2〚3,"TreePosition"〛]&,Tree[First[VertexList[gr]],{},TreeElementLabelFunction_(VertexIndex[gr,#]&)],EdgeList[gr]]
Out[4]=
which is a nested list, with lists within it describe the corresponding state of each branch, in above graph.
Show the final state of the circuit is the same as linear combination of that nested list of states:

© 2026 Wolfram. All rights reserved.

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