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
Diagram
Exploring Fundamentals of Quantum Theory
Quantum Computation
Symbols
QuantumBasis
QuantumChannel
QuantumCircuitOperator
QuantumDistance
QuantumEntangledQ
QuantumEntanglementMonotone
QuantumMeasurement
QuantumMeasurementOperator
QuantumMeasurementSimulation
QuantumOperator
QuantumPartialTrace
QuantumStateEstimate
QuantumState
QuantumTensorProduct
QuditBasis
QuditName
"
D
i
a
g
r
a
m
"
(
Q
u
a
n
t
u
m
C
i
r
c
u
i
t
O
p
e
r
a
t
o
r
p
r
o
p
e
r
t
y
)
"
S
h
o
w
W
i
r
e
s
"
T
r
u
e
w
h
e
t
h
e
r
t
o
s
h
o
w
h
o
r
i
z
o
n
t
a
l
w
i
r
e
s
"
W
i
r
e
L
a
b
e
l
s
"
A
u
t
o
m
a
t
i
c
w
i
r
e
l
a
b
e
l
i
n
g
"
M
e
a
s
u
r
e
m
e
n
t
W
i
r
e
L
a
b
e
l
"
"
c
"
m
e
a
s
u
r
e
m
e
n
t
w
i
r
e
l
a
b
e
l
"
M
e
a
s
u
r
e
m
e
n
t
W
i
r
e
P
o
s
i
t
i
o
n
"
T
o
p
m
e
a
s
u
r
e
m
e
n
t
w
i
r
e
p
o
s
i
t
i
o
n
"
S
h
o
w
M
e
a
s
u
r
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
r
a
m
"
,
"
G
a
t
e
B
a
c
k
g
r
o
u
n
d
S
t
y
l
e
"
{
"
X
"
Y
e
l
l
o
w
,
"
Z
"
G
r
e
e
n
}
,
"
G
a
t
e
B
o
u
n
d
a
r
y
S
t
y
l
e
"
{
"
Y
"
D
i
r
e
c
t
i
v
e
[
T
h
i
c
k
n
e
s
s
[
0
.
0
2
]
,
R
e
d
]
}
]
O
u
t
[
3
8
6
]
=
"GateShapeFunction" can be specified to render gates with a custom function that takes {center, label, horizontalPositions, verticalPositions} arguments:
I
n
[
3
8
7
]
:
=
Q
u
a
n
t
u
m
C
i
r
c
u
i
t
O
p
e
r
a
t
o
r
[
{
"
X
"
,
"
S
W
A
P
"
,
"
S
W
A
P
"
{
1
,
3
}
}
]
[
"
D
i
a
g
r
a
m
"
,
"
G
a
t
e
S
h
a
p
e
F
u
n
c
t
i
o
n
"
"
S
W
A
P
"
F
u
n
c
t
i
o
n
[
{
c
e
n
t
e
r
,
l
a
b
e
l
,
h
P
o
s
,
v
P
o
s
}
,
{
E
d
g
e
F
o
r
m
[
R
e
d
]
,
F
a
c
e
F
o
r
m
[
D
i
r
e
c
t
i
v
e
[
R
e
d
,
O
p
a
c
i
t
y
[
0
.
2
5
]
]
]
,
R
e
c
t
a
n
g
l
e
[
c
e
n
t
e
r
-
{
.
3
7
5
,
.
7
5
(
M
a
x
[
v
P
o
s
]
-
M
i
n
[
v
P
o
s
]
)
}
,
c
e
n
t
e
r
+
{
.
3
7
5
,
.
7
5
(
M
a
x
[
v
P
o
s
]
-
M
i
n
[
v
P
o
s
]
)
}
,
R
o
u
n
d
i
n
g
R
a
d
i
u
s
0
.
1
]
,
T
e
x
t
[
S
t
y
l
e
[
R
o
t
a
t
e
[
l
a
b
e
l
,
P
i
/
2
]
,
2
0
,
B
l
u
e
]
,
c
e
n
t
e
r
]
}
]
]
O
u
t
[
3
8
7
]
=
"Size", "HorizontalGapSize" and "VerticalGapSize" correspondingly control gate size, distance between gates and a distance between wires:
I
n
[
3
8
8
]
:
=
Q
u
a
n
t
u
m
C
i
r
c
u
i
t
O
p
e
r
a
t
o
r
[
{
"
H
"
,
"
X
"
,
"
T
"
{
3
}
}
]
[
"
D
i
a
g
r
a
m
"
,
"
S
i
z
e
"
.
5
,
"
V
e
r
t
i
c
a
l
G
a
p
S
i
z
e
"
.
2
7
5
,
"
H
o
r
i
z
o
n
t
a
l
G
a
p
S
i
z
e
"
.
5
2
5
]
O
u
t
[
3
8
8
]
=
"SubcircuitLevel" specifies a level depth of sub-circuits to expand:
"SubcircuitOptions" can be used to pass options to sub-circuit diagrams:
"WireLabels" can be a list of labels or a list of rules: