Quantum error correction in crossbar architectures