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
Quantum Computation
Symbols
QuantumBasis
QuantumChannel
QuantumCircuitMultiwayGraph[EXPERIMENTAL]
QuantumCircuitOperator
QuantumDistance
QuantumEntangledQ
QuantumEntanglementMonotone
QuantumEvolve
QuantumMeasurement
QuantumMeasurementOperator
QuantumMeasurementSimulation
QuantumOperator
QuantumPartialTrace
QuantumStateEstimate[EXPERIMENTAL]
QuantumState
QuantumTensorProduct
QuditBasis
QuditName
Wolfram`QuantumFramework`
Q
u
a
n
t
u
m
D
i
s
t
a
n
c
e
Q
u
a
n
t
u
m
D
i
s
t
a
n
c
e
[
q
s
1
,
q
s
2
,
t
]
r
e
t
u
r
n
s
t
h
e
d
i
s
t
a
n
c
e
b
e
t
w
e
e
n
t
w
o
q
u
a
n
t
u
m
d
i
s
c
r
e
t
e
s
t
a
t
e
s
u
s
i
n
g
m
e
a
s
u
r
e
t
.
D
e
t
a
i
l
s
a
n
d
O
p
t
i
o
n
s
Examples
(
7
)
Basic Examples
(
4
)
Find the distance between two pure states in terms of fidelity:
I
n
[
1
]
:
=
Q
u
a
n
t
u
m
D
i
s
t
a
n
c
e
Q
u
a
n
t
u
m
S
t
a
t
e
[
"
0
"
]
,
Q
u
a
n
t
u
m
S
t
a
t
e
[
"
1
"
]
O
u
t
[
1
]
=
0
Find the distance between two mixed states:
I
n
[
1
]
:
=
Q
u
a
n
t
u
m
D
i
s
t
a
n
c
e
Q
u
a
n
t
u
m
S
t
a
t
e
[
{
{
1
/
4
,
0
}
,
{
0
,
3
/
4
}
}
]
,
Q
u
a
n
t
u
m
S
t
a
t
e
[
{
{
1
,
0
}
,
{
0
,
1
}
}
]
O
u
t
[
1
]
=
1
2
+
3
2
Find the distance between a pure state and a mixed state:
I
n
[
1
]
:
=
Q
u
a
n
t
u
m
D
i
s
t
a
n
c
e
Q
u
a
n
t
u
m
S
t
a
t
e
[
{
{
1
/
4
,
0
}
,
{
0
,
3
/
4
}
}
]
,
Q
u
a
n
t
u
m
S
t
a
t
e
[
{
1
,
0
}
]
O
u
t
[
1
]
=
1
2
Find the distance between two quantum states using the trace metric:
I
n
[
1
]
:
=
Q
u
a
n
t
u
m
D
i
s
t
a
n
c
e
Q
u
a
n
t
u
m
S
t
a
t
e
[
{
{
1
/
4
,
1
}
,
{
1
,
3
/
4
}
}
]
,
Q
u
a
n
t
u
m
S
t
a
t
e
[
{
{
1
/
2
,
2
}
,
{
2
,
1
/
2
}
}
]
,
"
T
r
a
c
e
"
O
u
t
[
1
]
=
1
7
4
S
c
o
p
e
(
2
)
A
p
p
l
i
c
a
t
i
o
n
s
(
1
)
S
e
e
A
l
s
o
Q
u
a
n
t
u
m
S
t
a
t
e
T
e
c
h
N
o
t
e
s
▪
T
h
e
f
i
d
e
l
i
t
y
i
s
c
a
l
c
u
l
a
t
e
d
a
s
T
r
[
1
/
2
ρ
1
.
ρ
2
.
1
/
2
ρ
1
]
w
i
t
h
ρ
1
,
2
t
h
e
c
o
r
r
e
s
p
o
n
d
i
n
g
d
e
n
s
i
t
y
m
a
t
r
i
c
e
s
.
T
h
e
t
r
a
c
e
d
i
s
t
a
n
c
e
i
s
1
2
T
r
[
2
(
ρ
1
-
ρ
2
)
]
.
T
h
e
B
u
r
e
s
d
i
s
t
a
n
c
e
i
s
2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