Quantum gate 3rd to 4th dimension