I'm considering discrete-time quantum walk on $2\times2$ grid with periodic quantum walk. In particular focus on shift operator which has the form :
\begin{equation} S|i,j\rangle \otimes |x,y\rangle =|1-i,1-j\rangle \otimes |x+(-1)^i \delta_{ij},y+(-1)^j (1-\delta_{ij})\rangle\,. \end{equation}
In this case, If the position space qubits are $|00\rangle,|01\rangle ,|10\rangle ,|11\rangle$ where the first qubit stands for $x$-direction and second qubit stands for $y$-direction. We can write shift operator
$$S = (|11\rangle\langle 00| + |00\rangle \langle 11|)\otimes \sigma_x\otimes I + (|01\rangle\langle 10| + |10\rangle\langle 01|)\otimes I\otimes \sigma_x $$
Can you help me in constructing a circuit for such an operator? If it were usual shift operator in which there are term of kind $|00\rangle\langle 00|$ in coin space then it would be straight forward with control operator, but I'm not sure how to go about this.
Edit : I able to implement this but I'm not having problem with shift operator with open boundary condition.
In this case, the shift operator has explicit form
$$S = |11\rangle \langle 00| \otimes |1\rangle \langle 0|\otimes I + |00\rangle \langle 11|\otimes |0\rangle \langle 1|\otimes I + |00\rangle \langle 00|\otimes |0\rangle \langle 0| \otimes I + |11\rangle \langle 11|\otimes |1\rangle \langle 1|\otimes I + |10\rangle \langle 01|\otimes I \otimes |1\rangle \langle 0|+ |01\rangle \langle 10|\otimes I \otimes |0\rangle\langle 1| + |10\rangle \langle 10|\otimes I \otimes |1\rangle\langle 1| + |01\rangle \langle 01|\otimes I \otimes |0\rangle \langle 0| $$
Or,
$$|000i\rangle \rightarrow |111i\rangle \ \ \ |111i\rangle \rightarrow |000i\rangle \ \ \ |01i0\rangle \rightarrow |10i1\rangle \ \ \ |10i1\rangle \rightarrow |01i0\rangle$$ and all other goes to itself. Here $i = 0,1$.