Quantum Computing, Quantum Physics, Programming, Physics, Science.
just apply a self-inverse gate U before and after the chain of CXs such that σ_k=Uσ_zU, where k∈{x,y}. This gate would be the Hadamard gate for σ_x and Self-inverse gate for σ_y for σ_y. And if its the identity, you can just leave that qubit unaffected! Simulating general exponentials But this just