Wolfram Language
Paclet Repository
Community-contributed installable additions to the Wolfram Language
Primary Navigation
Categories
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
Create a Paclet
Get Started
Download Definition Notebook
QuantumFramework
Tutorials
Getting Started
Guides
Wolfram Quantum Computation Framework
Tech Notes
Diagram
Exploring Fundamentals of Quantum Theory
TensorNetwork
Quantum Computation
Symbols
QuantumBasis
QuantumChannel
QuantumCircuitMultiwayGraph[EXPERIMENTAL]
QuantumCircuitOperator
QuantumDistance
QuantumEntangledQ
QuantumEntanglementMonotone
QuantumEvolve
QuantumMeasurement
QuantumMeasurementOperator
QuantumMeasurementSimulation
QuantumMPS [EXPERIMENTAL]
QuantumOperator
QuantumPartialTrace
QuantumStateEstimate[EXPERIMENTAL]
QuantumState
QuantumTensorProduct
QuditBasis
QuditName
Wolfram`QuantumFramework`
Q
u
a
n
t
u
m
O
p
e
r
a
t
o
r
Q
u
a
n
t
u
m
O
p
e
r
a
t
o
r
[
r
e
p
,
o
r
d
e
r
,
q
b
]
r
e
p
r
e
s
e
n
t
s
a
n
o
p
e
r
a
t
o
r
w
i
t
h
m
a
t
r
i
x
r
e
p
r
e
s
e
n
t
a
t
i
o
n
r
e
p
t
h
a
t
a
c
t
s
o
n
a
s
t
a
t
e
a
t
t
h
e
q
u
b
i
t
s
i
n
d
e
x
e
d
i
n
o
r
d
e
r
,
i
n
t
h
e
q
u
a
n
t
u
m
b
a
s
i
s
q
b
.
Q
u
a
n
t
u
m
O
p
e
r
a
t
o
r
[
"
n
a
m
e
"
,
o
r
d
e
r
,
q
b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