Demonstration of a quantum error detection code using a square lattice of four superconducting qubits | Synapse