Cheat Sheet Circuit Magicians HM
Cheat Sheet Circuit Magicians HM
it m ag i ci ans
for circu
Instead of classical bits, quantum computers use Multiple qubits form a register. The number of computational states doubles Two or more qubits can be entangled,
quantum bits (or qubits for short). Measurement with each new qubit. A state with multiple qubits involved is often denoted like meaning that the state cannot be
One way to picture quantum states is = (where is the tensor product) factorized as a product of states:
The full state is not accessible in the circle notation:
one measurement, but multiple
state preparations and
Bit Qubit measurements are needed to the inner circles # qubits # basis states example
access the probability distribution. represents the the black line
0 Superposition 0
Linear combination 80%
amplitude indicates the 1 2
between two or more phase
possible linear
or states, e. g.
combination of
2 4
20% two-qubit states
1 1 0 1 phase Entanglement
Quantum states can also be
3 8 Entanglement between H
described using vectors: two qubits can be
we call this a ket created, for example, X
with this circuit
Swap test allows for checking how similar the states in two registers are.
Pauli-Z is a 180° this is often used to indicate that multiple
Z rotation around
the z-axis
Z qubits are represented with this line
register1
1 if registers are in
Gate Matrix Ket and circle notation register2
same state
control output H H X
qubit
CNOT applies a this is a controlled SWAP gate
Pauli-X gate to the (also called Fredkin gate)
target qubit if the
Hadamard maps H = state of the control
to and to ;
H used to create an X qubit state is
equal superposition target Amplitude Amplification converts phase differences into amplitude
H qubit differences. It can be used (multiple times) to increase the success
CZ with two
probability of query or search algorithms like Grover's algorithm.
control qubits
CZ applies a Pauli-Z
gate to the target H X X H
= qubit if the state of X X H X X H
the control qubit is
S is a 90° rotation
Z H X X H
IQM Quantum Computers CC-BY-SA Last updated: 03/2022 Please send us your feedback to [email protected]