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
Q3mini
Guides
Fermionic Quantum Computation
Q3: Symbolic Quantum Simulation
Quantum Information Systems
Quantum Many-Body Systems
Quantum Spin Systems
Tech Notes
About Q3
Q3: Quick Start
Quantum Fourier Transform
Quantum Information Systems with Q3
Quantum Many-Body Systems with Q3
Quantum Operations
Quantum Spin Systems with Q3
Quantum States
Quantum Teleportation
Quick Quantum Computing with Q3
Symbols
Basis
Boson
Bra
CNOT
ControlledGate
ExpressionFor
Fermion
Heisenberg
Ket
Let
Majorana
Matrix
Multiply
NambuGreen
NambuHermitian
NambuMatrix
NambuUnitary
Pauli
Phase
QuantumCircuit
Qubit
Qudit
RandomWickCircuitSimulate
Rotation
Species
Spin
SWAP
WickCircuit
WickEntanglementEntropy
WickEntropy
WickGreenFunction
WickJump
WickLindbladSolve
WickLogarithmicNegativity
WickMeasurement
WickMonitor
WickMutualInformation
WickNonunitary
WickSimulate
WickState
WickUnitary
Overviews
The Postulates of Quantum Mechanics
Quantum Algorithms
Quantum Computation: Models
Quantum Computation: Overview
Quantum Error-Correction Codes
Quantum Information Theory
Quantum Noise and Decoherence
QuantumMob`Q3mini`
Q
u
b
i
t
Q
u
b
i
t
i
s
a
s
p
e
c
i
e
s
r
e
p
r
e
s
e
n
t
i
n
g
a
q
u
a
n
t
u
m
t
w
o
-
l
e
v
e
l
s
y
s
t
e
m
o
r
q
u
a
n
t
u
m
b
i
t
.
D
e
t
a
i
l
s
Examples
(
1
0
)
Basic Examples
(
7
)
Declare
S
as the symbol to refer to a quantum register of qubits.
I
n
[
1
]
:
=
L
e
t
[
Q
u
b
i
t
,
S
]
This is how you can manually specify the logical basis states.
I
n
[
2
]
:
=
v
e
c
=
K
e
t
[
S
[
1
]
1
,
S
[
2
]
1
]
O
u
t
[
2
]
=
1
S
1
1
S
2
I
n
[
3
]
:
=
v
e
c
/
/
I
n
p
u
t
F
o
r
m
O
u
t
[
3
]
/
/
I
n
p
u
t
F
o
r
m
=
Ket[<|S[1, $] -> 1, S[2, $] -> 1|>]
Here are short lists of the Pauli operators acting on qubit
S[1,$]
.
I
n
[
4
]
:
=
S
[
1
,
A
l
l
]
O
u
t
[
4
]
=
X
S
1
,
Y
S
1
,
Z
S
1
I
n
[
5
]
:
=
S
[
1
,
F
u
l
l
]
O
u
t
[
5
]
=
0
S
1
,
X
S
1
,
Y
S
1
,
Z
S
1
Here is a more complete list of elementary quantum operators acting on qubit
S[1,$]
.
I
n
[
6
]
:
=
S
[
1
,
0
]
(
*
I
d
e
n
t
i
t
y
o
p
e
r
a
t
o
r
*
)
S
[
1
,
1
]
(
*
P
a
u
l
i
X
o
p
e
r
a
t
o
r
*
)
S
[
1
,
2
]
(
*
P
a
u
l
i
Y
o
p
e
r
a
t
o
r
*
)
S
[
1
,
3
]
(
*
P
a
u
l
i
Z
o
p
e
r
a
t
o
r
*
)
S
[
1
,
4
]
(
*
P
a
u
l
i
r
a
i
s
i
n
g
o
p
e
r
a
t
o
r
*
)
S
[
1
,
5
]
(
*
P
a
u
l
i
l
o
w
e
r
i
n
g
o
p
e
r
a
t
o
r
*
)
S
[
1
,
6
]
(
*
H
a
d
a
m
a
r
d
g
a
t
e
*
)
S
[
1
,
7
]
(
*
Q
u
a
d
r
a
n
t
(
2
π
/
4
)
p
h
a
s
e
g
a
t
e
*
)
S
[
1
,
8
]
(
*
O
c
t
a
n
t
(
2
π
/
8
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
l
i
Z
*
)
D
a
g
g
e
r
@
S
[
1
,
C
[
2
]
]
(
*
Z
,
t
h
e
q
u
a
d
r
a
n
t
*
)
D
a
g
g
e
r
@
S
[
1
,
C
[
3
]
]
(
*
4
Z
,
t
h
e
o
c
t
a
n
t
*
)
D
a
g
g
e
r
@
S
[
1
,
C
[
4
]
]
(
*
5
Z
,
t
h
e
h
e
x
a
d
e
c
a
n
t
*
)
D
a
g
g
e
r
@
S
[
1
,
C
[
5
]
]
D
a
g
g
e
r
@
S
[
1
,
C
[
6
]
]
O
u
t
[
4
]
=
Z
S
1
You can get a list of elementary operators on a particular qubit S[1,$] by putting a list in the final flavor index.
You can get a list of operators of same type acting on different qubits by putting a list in the first flavor index.
O
u
t
[
1
]
/
/
T
e
X
F
o
r
m
=
S_1^{ ext{Z}}
O
u
t
[
2
]
/
/
T
e
X
F
o
r
m
=
S_1^{
rac{2 \pi }{2^5}}
O
u
t
[
3
]
/
/
T
e
X
F
o
r
m
=
S_1^{-
rac{2 \pi }{2^5}}
O
u
t
[
5
]
/
/
T
e
X
F
o
r
m
=
S_4^+