Table 2 Binary multiplication table.

From: A general quantum algorithm for numerical integration

0

0

0

x3

x2

x1

0

0

0

x3

x2

x1

0

0

0

x1x3

x1x2

x1

0

0

x2*x3

x2

x1x2

0

0

x3

x2*x3

x1x3

0

0

0

c4

0

0

0

0

c5

c3

c2

c1

0

0

c5

c3 + c4 + x3

c2

c1 + x2

0

x1