Towards position-dependent quantum logic operations