92 5. TOP-DOWN
a matrix which is unitary (and, in fact, an XU matrix), but unfortunately not a permutation
matrix. e cause of this problem is the lack of degrees of freedom in W
11
. e above matrix
W
11
is unique because det.u
11
/ D 1=4 and thus is non-zero. A non-zero determinant of u
11
appears whenever u
11
contains exclusively k k cycles G
k
with odd k. Here, G
k
is defined by
G
1
D .1/ and, for k > 1, by
G
k
D
1
2
0
B
B
B
B
B
B
B
@
1 1
1 1
1 1
:
:
:
:
:
:
1 1
1 1
1
C
C
C
C
C
C
C
A
:
Indeed, if k is even, then det.2G
k
/ D 0 and thus the polar decomposition of G
k
is not unique,
but if k is odd, then det.2G
k
/ D 2 and the decomposition is unique. us the conclusion of the
present section is: a dual classical decomposition exists but cannot always be found by means of
the quantum method of Section 4.4. It can be found by the classical method of Section 2.4.
us, whereas the primal decomposition of a permutation matrix according to the quan-
tum algorithm of Section 4.2 always supplies a decomposition into permutation matrices, the
dual decomposition of a permutation matrix according to the quantum algorithm of Section 4.4
does not always supply a decomposition into permutation matrices. If the n n matrix U is a
permutation matrix, then we can always get rid of the two HADAMARD gates in (4.5), but not
always the four HADAMARD gates in (4.10).