Two-dimensional hard-core Bose–Hubbard model with superconducting qubits