
-bit register
of memory can exist in any of
logical
states, from
(
zeros) to
(
ones). 
particle, when measured, is
always found to be in one of two possible states, represented as 


-qubit system can exist in any superposition
of the form 
![]() ![]() |
(5) |
are (complex) numbers such that
The exponential “explosion"
represented by formula (5) distinguishes
quantum systems from classical ones: in a classical system, which is completely
described locally, a state is described by a number of parameters growing
only linearly with the size of the system, but, as we shall see in the next
section, quantum systems may not admit such a description (because quantum
states may be “entangled"). 
invented by Paul Dirac [54]. Row vectors, such as
, are known as “bra" vectors;
when you put together a column and a bra vector, you get a bracket, that
is the inner product of the two vectors,
, also written as
.

, a two dimensional space. Assume that a particular
complete orthonormal basis, denoted by
,
, has been fixed. These vectors,
and
, correspond to the classical bit values 0 and 1, respectively.

,
so for each qubit
, there
are two (complex) numbers
such that 
![]() ![]() |
(6) |


. 
and
. The angle through which the
vector is rotated about the vertical axis induces the so-called “phase".
So, different qubits may have the same proportion of
and
, but with different phase factors. Phase is irrelevant
for the whole states but it’s crucial for “quantum interference effects".

,
. Then we will obtain the outcome
with probability
, and the outcome
with probability
. With the exception of limit
cases
and
, the measurement irrevocably
disturbs the state: If the value of
the qubit is initially unknown, then there is no way to determine
and
with
any conceivable measurement. However, after
performing the measurement, the qubit
has been prepared in a known state (either
or
); this state is typically different from the previous state.



and
in (6
) encode more than just the probabilities of the outcomes of a measurement
in the
,
basis. For example, the relative
phase of
and
is crucial. 
, i.e.
the space
. Using Dirac notation, if
and
are the vectors of a basis in
then, the set 

; more precisely, 



qubits is represented by
copies of
tensored together. Therefore, the state space is
dimensional. A natural basis for this space
consists of
tensor products: 




with
,
, corresponds to the quantum
state
which is simply denoted
by
. If
and
are orthogonal unit vectors in
, then the set 

. 



is spanned
by the set
, the existence
of entangled states proves that the previous set is not a linear space. One
can easily find entangled states in an
qubit system, for any integer
. 

can be viewed as a single qubit gate. Considering
the basis
, the transformation
is fully specified by its effect on the basis vectors. In order to obtain
the associated matrix of an operator
,
we put the coordinates of
in the first column and the coordinates of
in the second one. So, the
general form of a transformation that acts on a single qubit is a
matrix 

into the
state
: 

, the rotation
is given by 

acts as follows: 

, hence
is unitary. Note that in the
special case
we get the identity transformation
of
: 

and
, is given by
, that is the matrix 





is defined by the following
operator:
so 

and
, the operators NOT and
are also unitary. The operator
is also a unitary transformation
and we have: 









![]() ![]() |
(7) |





is defined by 

,
creates a superposition state 

bits individually,
generates a superposition of all
possible states. To see this we need some
rudiments on tensor products. 
and
. The tensor product of
and
is
the operator
, with the property
, for any
and
. A convenient way is, again, to work with matrices. Let
be a
matrix and
a
matrix. The (right) Kronecker
product of
and
is the
matrix
defined as follows: 



matrices, then we have: 

(a) If and are matrices associated to the operators and , then
the matrix associated to is the Kronecker
product of and .![]() (b) The tensor products of two unitary transformations is also unitary. _ ![]() |
single qubit transformations, we can
obtain examples of unitary transformations acting on
qubits. 
be the
basis in
. Then,
can be expressed as

will be written as
. 
to
via
Hadamard operator. The Walsh–Hdamard transformation is defined recursively
by 

then 




























![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |




we get a superposition of all possible states:












![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |

![]() ![]() |
(8) |

is the “controlled-NOT" gate, _
defined as follows:
. 
,
, the output state produced
by
is
, where
(mod 2). The first bit is not
disturbed (it is a control bit) and the second one interchanges 0 and 1 if
and only if the first bit is 1, which corresponds to the logical exclusive-OR
(XOR). The transformation
is unitary. Its main feature is given by the following property:
cannot be written as a tensor product of two operators. ![]() |
, operating
on three qubits, which negates the rightmost bit if and only if the first
two are both
:

. 
