Next take the first qubit to be The black box will produce
Next we will perform a measurement that projects the first qubit onto the
basis : we will obtain if the function is balanced and in the opposite case. So, Deutsch’s
problem was solved with only one computation of . The explanation consists in the ability of a
quantum computer to be in a blend of states: we can compute and , but also, and more importantly, we can extract
some information about
which tells us whether
is equal or not to .
Can any function be implemented
by a quantum gate array ?
The answer is affirmative. Identifying the values 0 and 1 with the kets respectively , may be defined as the linear operator , which satisfies, for any the equality
(13)
To compute we apply to . Graphically, the transformation is presented in Figure 14. We shall argue that
for any function , is a unitary transformation.
We have
hence, in view of the
equality , it suffices to
prove that .
The function can be defined
in four ways: 1. ; 2. , ; 3. , ; and 4. .
We will investigate the matrix in each situation, taking into account the correspondences: