Fig. 7

Circuit scheme for Para50_3pix. We apply Para50 three times in parallel. The first index of the angle \(\theta\) is the result \(\{0,1,2\}\) of calculating the actual position of the input image patch modulo 3. That means, the first input image patch is encoded in the qubits \(qr_0-qr_2\), the second in \(qr_3-qr_5\), the third in \(qr_6-qr_8\), the fourth again in \(qr_0-qr_2\), and so on. The second index describes the direction \(m\in \{h,v,d\}\). It holds \(\gamma _m=(0,\pi )\), for all \(m\in \{h,v,d\}\), since in all cases the first pixel of the filter mask is black and the second white (see Fig. 1 a and b). In total, 18 SX- and 27 R\(_ {z}\)-gates are needed for this circuit, if we decompose the Hadamard and Phase gates into basis gates