
Preprint –ADepolarizing Noise-aware Transpiler for Optimal Amplitude Amplification 2
Now, it is worth mentioning that the probability of noise-free
execution is not equivalent to the probability of the outcome
being accurate. That is because even noisy outcomes have the
potential to produce the winning result when measured. This is
true for noisy quantum systems as it is true for noisy classical
systems. However, we will show the probability of noise-free
execution is closely correlated to the accuracy of the result, such
that making a prediction based on the former still results in a
near optimal circuit.
In summary, we make the following contributions:
•
We make the empirical observation that there some-
times exists an inflection point beyond which further
amplification iterations result in losses in accuracy.
•
We propose novel intrinsics in the OpenQASM lan-
guage that delineates iterations in an iterative quantum
algorithm such as amplitude amplification and also
conveys the amplification achieved in each iteration.
•
We implement an extension to the circuit transpiler
that utilizes Bayesian probabilistic model to estimate
the depolarizing noise generated by the gates in the
iteration delineated by the intrinsics, in order to predict
the inflection point.
•
We demonstrate that the estimated probability of the
winning outcome(s) being noise-free follows closely
the probability of the result being winning outcome(s),
by actual measurements on quantum circuit. As a result,
we show that our prediction of the inflection point is
highly accurate.
2 Background
First, we will cover the necessary background on amplitude
amplification to give the readers a comprehensive perspective on
the iterative execution of quantum circuit to find a solution with
higher probability. Then, this section describes depolarizing
channel, one of the most common noise models in quantum
computing considered by real quantum resources.
2.1 Amplitude Amplification
Grover’s quantum search algorithm uses a procedure called
amplitude amplification, which is how a quantum computer
significantly enhances the probability of a solution state. This
procedure amplifies or stretches out the amplitude of the marked
item(s), which shrinks the amplitude of the other items, such
that measuring the final state will return the right item(s) with
near-certainty. This section explains the basic steps invoked by
Grover’s quantum search algorithm as part of amplitude ampli-
fication, highlighting the geometrical interpretation in terms of
two reflections, which generate a rotation in a two-dimensional
plane.
Grover’s algorithm is an example of an unstructured quantum
search where we wish to locate one item with a unique property
in a large list of
N
items. At the beginning, we have no idea
where the marked item is. Therefore, any guess of its location
is as good as any other, which can be expressed in terms of a
uniform superposition:
|si
=
1
√NPN−1
x=0|xi
, where the dimension
of the problem is
N
. If at this point we were to measure in the
standard basis
{|xi}
, this superposition would collapse, according
to the fifth quantum law, to any one of the basis states with the
same probability of
1
N
=
1
2n
, where
n
is the number of qubits to
compose the problem. Our chances of guessing the right value
is therefore 1 in 2
n
, as could be expected. Hence, on average
we would need to try about
N
2
=2
n−1
times to guess the correct
item by a classical algorithm.
Step 1: Initial superposition state.
The amplitude amplifica-
tion procedure starts out in the uniform superposition
|si
, which
is constructed from
|si
=
H⊗n|0in
. The left graphic in Figure 1a
corresponds to the two-dimensional plane spanned by perpen-
dicular vectors
|wi
and
|s0i
. This allows to express the initial
state as
|si
=
sin
(
θ
)
|wi
+
cos
(
θ
)
|s0i
, where
θ
=
arcsin
(
hs|wi
),
and
|wi
and
|s0i
are respectively the winner and an additional
state perpendicular to
|wi
obtained from
|si
by removing
|wi
and
rescaling.The right graphic in Figure 1a denotes a bar graph of
the amplitudes of the state |si.
Step 2: Conditional phase shift by oracle.
Next, the oracle
reflection
Uf
is applied to the state
|si
. This oracle, described
as
Uf|xi
=(
−
1)
f(x)|xi
, is a diagonal matrix, where the entry
that corresponds to the marked item, that we are searching for,
will have a negative phase. Geometrically this corresponds to a
reflection of the state
|si
about
|s0i
shown in the left graphic of
Figure 1b. This transformation means that the amplitude in front
of the state corresponding to the marked item becomes negative,
which in turn means that the average amplitude, indicated by a
dashed line in right graphic of Figure 1b has been lowered.
Step 3: Inversion about the mean by diffuser.
Next, the
diffuser circuit maps the winning state, corresponding to the
marked item, to
UsUf|si
.
Us
=2
|sihs| −
1 corresponds to an
additional rotation about the state
|si
. The two reflections by
Uf
and
Us
geometrically corresponds to a rotation, shown in
left graphic of Figure 1c, that brings the initial state
|si
closer
towards the winner
|wi
. Since the average amplitude has been
lowered by the first reflection,
Uf
, this transformation boosts
the negative amplitude of
|wi
to roughly three times its original
value, while it decreases the other amplitudes, as shown in the
right graphic of Figure 1c.
The procedure of amplitude amplification corresponds to the
combination of
Step 2
and
Step 3
, which will be repeated sev-
eral times (as shown in Figure 2) to zero in on the winner, i.e,
when
|si
overlaps on
|wi
. It turns out the number of iterations
required for this is
O
(
√N
) and thus providing a quadratic speed
up over a classical counterpart.
Grover’s algorithm uses Hadamard gates,
H⊗n|0in
to create the
uniform superposition of all the states at the beginning of the
Grover operator. If some information on the good states is avail-
able, it might be useful to not start in a uniform superposition but
only initialize specific states. Also, the diffusion operator does
not reflect about the equal superposition state, but another state
specified via an operator
A
, where
Q
=
AS0A†Sf
. This gen-
eralized version of Grover’s operator (
Q
) is known as Quantum
Amplitude Amplification [4].
2.2 Quantum Depolarizing Channel
In quantum information theory, a quantum channel is a com-
munication channel which can transmit quantum information,
as well as classical information. A quantum depolarizing chan-