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
S
t
a
t
e
E
s
t
i
m
a
t
e
[
E
X
P
E
R
I
M
E
N
T
A
L
]
Q
u
a
n
t
u
m
S
t
a
t
e
E
s
t
i
m
a
t
e
[
q
m
o
1
r
e
s
u
l
t
1
,
q
m
o
2
r
e
s
u
l
t
2
,
.
.
.
]
r
e
p
r
e
s
e
n
t
s
a
q
u
a
n
t
u
m
s
t
a
t
e
e
s
t
i
m
a
t
e
w
i
t
h
q
u
a
n
t
u
m
m
e
a
s
u
r
e
m
e
n
t
o
p
e
r
a
t
o
r
s
q
m
o
i
,
a
m
n
d
t
h
e
e
x
p
e
r
i
m
e
n
t
a
l
(
o
r
s
i
m
u
l
a
t
e
d
)
r
e
s
u
l
t
s
r
e
s
u
l
t
i
.
D
e
t
a
i
l
s
a
n
d
O
p
t
i
o
n
s
Examples
(
1
)
Basic Examples
(
1
)
Define a 2D random mixed state:
I
n
[
1
]
:
=
s
t
a
t
e
=
Q
u
a
n
t
u
m
S
t
a
t
e
[
"
R
a
n
d
o
m
M
i
x
e
d
"
]
;
Simulate some measurement results for different measurement, given the above state:
I
n
[
2
]
:
=
r
e
s
u
l
t
=
Q
u
a
n
t
u
m
M
e
a
s
u
r
e
m
e
n
t
S
i
m
u
l
a
t
i
o
n
s
t
a
t
e
,
Q
u
a
n
t
u
m
M
e
a
s
u
r
e
m
e
n
t
O
p
e
r
a
t
o
r
/
@
{
"
X
"
,
"
Y
"
,
"
Z
"
}
,
1
0
0
O
u
t
[
2
]
=
Q
u
a
n
t
u
m
M
e
a
s
u
r
e
m
e
n
t
O
p
e
r
a
t
o
r
M
e
a
s
u
r
e
m
e
n
t
T
y
p
e
:
P
r
o
j
e
c
t
i
o
n
T
a
r
g
e
t
:
{
1
}
D
i
m
e
n
s
i
o
n
:
2
→
2
Q
u
d
i
t
s
:
1
→
1
{
5
1
,
4
9
}
,
Q
u
a
n
t
u
m
M
e
a
s
u
r
e
m
e
n
t
O
p
e
r
a
t
o
r
M
e
a
s
u
r
e
m
e
n
t
T
y
p
e
:
P
r
o
j
e
c
t
i
o
n
T
a
r
g
e
t
:
{
1
}
D
i
m
e
n
s
i
o
n
:
2
→
2
Q
u
d
i
t
s
:
1
→
1
{
4
,
9
6
}
,
Q
u
a
n
t
u
m
M
e
a
s
u
r
e
m
e
n
t
O
p
e
r
a
t
o
r
M
e
a
s
u
r
e
m
e
n
t
T
y
p
e
:
P
r
o
j
e
c
t
i
o
n
T
a
r
g
e
t
:
{
1
}
D
i
m
e
n
s
i
o
n
:
2
→
2
Q
u
d
i
t
s
:
1
→
1
{
6
3
,
3
7
}
Find the corresponding quantum state estimation
I
n
[
3
]
:
=
e
s
t
i
m
a
t
i
o
n
=
Q
u
a
n
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