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
Learn More about
Wolfram Language
QuantumFramework
Tutorials
Getting Started
Guides
Wolfram Quantum Computation Framework
Tech Notes
Bell's theorem
Circuit Diagram
Exploring Fundamentals of Quantum Theory
Quantum object abstraction
Tensor Network
Symbols
QuantumBasis
QuantumChannel
QuantumCircuitMultiwayGraph[EXPERIMENTAL]
QuantumCircuitOperator
QuantumDistance
QuantumEntangledQ
QuantumEntanglementMonotone
QuantumEvolve
QuantumMeasurement
QuantumMeasurementOperator
QuantumMeasurementSimulation
QuantumMPS [EXPERIMENTAL]
QuantumOperator
QuantumPartialTrace
QuantumShortcut [EXPERIMENTAL]
QuantumStateEstimate [EXPERIMENTAL]
QuantumState
QuantumTensorProduct
QuantumWignerTransform
QuditBasis
QuditName
Getting Started
How to install and load the paclet
Install the paclet and load it:
I
n
[
1
]
:
=
P
a
c
l
e
t
I
n
s
t
a
l
l
[
"
W
o
l
f
r
a
m
/
Q
u
a
n
t
u
m
F
r
a
m
e
w
o
r
k
"
]
N
e
e
d
s
[
"
W
o
l
f
r
a
m
`
Q
u
a
n
t
u
m
F
r
a
m
e
w
o
r
k
`
"
]
O
u
t
[
1
]
=
P
a
c
l
e
t
O
b
j
e
c
t
N
a
m
e
:
W
o
l
f
r
a
m
/
Q
u
a
n
t
u
m
F
r
a
m
e
w
o
r
k
V
e
r
s
i
o
n
:
1
.
0
.
3
4
Check whether definitions are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of 2-qubit into Bell states:
I
n
[
1
2
3
]
:
=
q
c
Q
u
a
n
t
u
m
S
t
a
t
e
[
"
0
0
"
]
Q
u
a
n
t
u
m
S
t
a
t
e
[
"
P
h
i
P
l
u
s
"
]
O
u
t
[
1
2
3
]
=
T
r
u
e
I
n
[
1
1
9
]
:
=
q
c
Q
u
a
n
t
u
m
S
t
a
t
e
[
"
1
0
"
]
Q
u
a
n
t
u
m
S
t
a
t
e
[
"
P
s
i
P
l
u
s
"
]
O
u
t
[
1
1
9
]
=
T
r
u
e
I
n
[
1
2
0
]
:
=
q
c
Q
u
a
n
t
u
m
S
t
a
t
e
[
"
0
1
"
]
Q
u
a
n
t
u
m
S
t
a
t
e
[
"
P
h
i
M
i
n
u
s
"
]
O
u
t
[
1
2
0
]
=
T
r
u
e
I
n
[
1
2
1
]
:
=
q
c
Q
u
a
n
t
u
m
S
t
a
t
e
[
"
1
1
"
]
Q
u
a
n
t
u
m
S
t
a
t
e
[
"
P
s
i
M
i
n
u
s
"
]
O
u
t
[
1
2
1
]
=
T
r
u
e
Generate corresponding tensor network of the circuit
I
n
[
1
3
5
]
:
=
q
c
[
"
T
e
n
s
o
r
N
e
t
w
o
r
k
"
,
E
d
g
e
L
a
b
e
l
s
A
u
t
o
m
a
t
i
c
]
O
u
t
[
1
3
5
]
=
Add measurements into above circuit
I
n
[
1
3
0
]
:
=
q
c
2
=
{
{
1
}
,
{
2
}
}
@
*
q
c
;
q
c
2
[
"
D
i
a
g
r
a
m
"
]
O
u
t
[
1
3
1
]
=
Calculate the result of circuit on registered state:
I
n
[
1
9
]
:
=
m
e
a
=
q
c
2
[
]
O
u
t
[
1
9
]
=
Q
u
a
n
t
u
m
M
e
a
s
u
r
e
m
e
n
t
T
a
r
g
e
t
:
{
1
,
2
}
M
e
a
s
u
r
e
m
e
n
t
O
u
t
c
o
m
e
s
:
4
Represents the corresponding probabilities:
I
n
[
3
9
]
:
=
m
e
a
[
"
P
r
o
b
a
b
i
l
i
t
y
P
l
o
t
"
]
O
u
t
[
3
9
]
=
"
"